+2001-06-13 Andrew Cagney <ac131313@redhat.com>
+
+ * libiberty.h (lbasename): Change function declaration to return a
+ const char pointer.
+
2001-08-10 Richard Sandiford <rsandifo@redhat.com>
* opcode/mips.h (INSN_GP32): Remove.
/* 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.
Allocates memory using xmalloc. */
+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>
* cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
lbasename -- return pointer to last component of a pathname
SYNOPSIS
- char *lbasename (const char *name)
+ const char *lbasename (const char *name)
DESCRIPTION
Given a pointer to a string containing a typical pathname
# endif
#endif
-char *
+const char *
lbasename (name)
const char *name;
{
if (IS_DIR_SEPARATOR (*name))
base = name + 1;
- return (char *) base;
+ return base;
}