From: Ian Lance Taylor Date: Thu, 9 Feb 1995 19:21:01 +0000 (+0000) Subject: * libiberty.h (basename): Change argument to be const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df8d50821648d7585ca1b402f7e0855f440a5bac;p=binutils-gdb.git * libiberty.h (basename): Change argument to be const. --- diff --git a/include/ChangeLog b/include/ChangeLog index a69e04670dd..a1908c8266a 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 9 14:20:27 1995 Ian Lance Taylor + + * libiberty.h (basename): Change argument to be const. + Wed Feb 8 17:35:38 1995 Ian Lance Taylor * bfdlink.h (struct bfd_link_hash_entry): Change format of common diff --git a/include/libiberty.h b/include/libiberty.h index bc2e67c59d3..7e4fdaacec5 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -23,7 +23,7 @@ extern void freeargv PARAMS ((char **)); /* 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. Allocates memory using xmalloc. */ @@ -117,7 +117,7 @@ extern PTR xrealloc (); #define _hex_bad 99 extern char _hex_value[_hex_array_size]; 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 the argument being performed exactly once. */ #define hex_value(c) (_hex_value[(unsigned char) (c)])