* libiberty.h (basename): Change argument to be const.

This commit is contained in:
Ian Lance Taylor
1995-02-09 19:21:01 +00:00
parent 506af7a79c
commit df8d508216
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 9 14:20:27 1995 Ian Lance Taylor <ian@cygnus.com>
* libiberty.h (basename): Change argument to be const.
Wed Feb 8 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com> Wed Feb 8 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
* bfdlink.h (struct bfd_link_hash_entry): Change format of common * bfdlink.h (struct bfd_link_hash_entry): Change format of common

View File

@ -23,7 +23,7 @@ extern void freeargv PARAMS ((char **));
/* Return the last component of a path name. */ /* Return the last component of a path name. */
extern char *basename PARAMS ((char *)); extern char *basename 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. */
@ -117,7 +117,7 @@ extern PTR xrealloc ();
#define _hex_bad 99 #define _hex_bad 99
extern char _hex_value[_hex_array_size]; extern char _hex_value[_hex_array_size];
extern void hex_init PARAMS ((void)); extern void hex_init PARAMS ((void));
#define hex_p(c) (hex_value (c) == _hex_bad) #define hex_p(c) (hex_value (c) != _hex_bad)
/* If you change this, note well: Some code relies on side effects in /* If you change this, note well: Some code relies on side effects in
the argument being performed exactly once. */ the argument being performed exactly once. */
#define hex_value(c) (_hex_value[(unsigned char) (c)]) #define hex_value(c) (_hex_value[(unsigned char) (c)])