* srconv.c (wr_tr): Write out handcrafted tr block.
[deliverable/binutils-gdb.git] / include / libiberty.h
index 32ba288094a19fad35391b11f5a167c73663ced6..7e4fdaacec5bad738c59fdc8b29f3fc4dad3c762 100644 (file)
@@ -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.  */
@@ -61,10 +61,12 @@ extern int strtoerrno PARAMS ((const char *));
 
 extern int signo_max PARAMS ((void));
 
-/* Return a signal message string for a signal number (e.g., strsignal
-   (SIGHUP) returns something like "Hangup").  */
+/* Return a signal message string for a signal number
+   (e.g., strsignal (SIGHUP) returns something like "Hangup").  */
+/* This is commented out as it can conflict with one in system headers.
+   We still document its existence though.  */
 
-extern const char *strsignal PARAMS ((int));
+/*extern const char *strsignal PARAMS ((int));*/
 
 /* Return the name of a signal number (e.g., strsigno (SIGHUP) returns
    "SIGHUP").  */
@@ -85,7 +87,7 @@ extern int xatexit PARAMS ((void (*fn) (void)));
 extern void xexit PARAMS ((int status));
 #else
 typedef void libiberty_voidfn PARAMS ((int status));
-volatile libiberty_voidfn xexit;
+__volatile__ libiberty_voidfn xexit;
 #endif
 
 /* Set the program name used by xmalloc.  */
@@ -109,4 +111,15 @@ extern PTR xmalloc ();
 
 extern PTR xrealloc ();
 
+/* hex character manipulation routines */
+
+#define _hex_array_size 256
+#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)
+/* 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)])
+
 #endif /* ! defined (LIBIBERTY_H) */
This page took 0.023751 seconds and 4 git commands to generate.