aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-01-12 03:43:19 +0000
committerKen Raeburn <raeburn@cygnus>1995-01-12 03:43:19 +0000
commitba1c97e74792eafab9e0ea54b28bba520b24ff1a (patch)
tree5de6ffd7ce9c90571cf6e8a4e77fe05a5708ec1e /include
parent9c84b228d84ac003c9f24c725d52dc8348f6c95a (diff)
downloadgdb-ba1c97e74792eafab9e0ea54b28bba520b24ff1a.zip
gdb-ba1c97e74792eafab9e0ea54b28bba520b24ff1a.tar.gz
gdb-ba1c97e74792eafab9e0ea54b28bba520b24ff1a.tar.bz2
* libiberty.h (_hex_array_size, _hex_bad, _hex_value, hex_init, hex_p,
hex_value): New macros and declarations, for hex.c.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/libiberty.h21
2 files changed, 22 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index efb0a5d..e476eba 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan 11 22:36:40 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
+
+ * libiberty.h (_hex_array_size, _hex_bad, _hex_value, hex_init,
+ hex_p, hex_value): New macros and declarations, for hex.c.
+
Fri Jan 6 17:44:14 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
* dis-asm.h: Make idempotent.
diff --git a/include/libiberty.h b/include/libiberty.h
index 32ba288..bc2e67c 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -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) */