mirror of git://gcc.gnu.org/git/gcc.git
(lbasename): Change function declaration to return a const char pointer.
From-SVN: r44782
This commit is contained in:
parent
db80cc1f2a
commit
0ef5547d0e
|
@ -1,3 +1,8 @@
|
||||||
|
2001-06-13 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* libiberty.h (lbasename): Change function declaration to return a
|
||||||
|
const char pointer.
|
||||||
|
|
||||||
2001-08-02 Mark Kettenis <kettenis@gnu.org>
|
2001-08-02 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* xregex.h (_REGEX_RE_COMP): Define.
|
* xregex.h (_REGEX_RE_COMP): Define.
|
||||||
|
|
|
@ -83,7 +83,7 @@ extern char *basename ();
|
||||||
|
|
||||||
/* A well-defined basename () that is always compiled in. */
|
/* A well-defined basename () that is always compiled in. */
|
||||||
|
|
||||||
extern char *lbasename PARAMS ((const char *));
|
extern const char *lbasename PARAMS ((const char *));
|
||||||
|
|
||||||
/* Concatenate an arbitrary number of strings, up to (char *) NULL.
|
/* Concatenate an arbitrary number of strings, up to (char *) NULL.
|
||||||
Allocates memory using xmalloc. */
|
Allocates memory using xmalloc. */
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2001-06-13 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* lbasename.c (lbasename): Change function definition to return a
|
||||||
|
const char pointer.
|
||||||
|
|
||||||
2001-08-07 Jason Merrill <jason_merrill@redhat.com>
|
2001-08-07 Jason Merrill <jason_merrill@redhat.com>
|
||||||
|
|
||||||
* cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
|
* cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
|
||||||
|
|
|
@ -23,7 +23,7 @@ NAME
|
||||||
lbasename -- return pointer to last component of a pathname
|
lbasename -- return pointer to last component of a pathname
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
char *lbasename (const char *name)
|
const char *lbasename (const char *name)
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Given a pointer to a string containing a typical pathname
|
Given a pointer to a string containing a typical pathname
|
||||||
|
@ -69,7 +69,7 @@ DESCRIPTION
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
lbasename (name)
|
lbasename (name)
|
||||||
const char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
|
@ -85,5 +85,5 @@ lbasename (name)
|
||||||
if (IS_DIR_SEPARATOR (*name))
|
if (IS_DIR_SEPARATOR (*name))
|
||||||
base = name + 1;
|
base = name + 1;
|
||||||
|
|
||||||
return (char *) base;
|
return base;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue