summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-10-22 22:32:57 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-10-22 22:32:57 +0000
commit26ad2982d82ef74fd741eb7dfdb664defaaa8027 (patch)
treeae9cc4c1fbfeb68fe417370772331169716d4a6c /include
parentf20a609feb9b6f7c2bd4f6faf792915024d02cf3 (diff)
downloadgcc-26ad2982d82ef74fd741eb7dfdb664defaaa8027.tar.gz
libiberty.h (_hex_value): Const-ify.
include: * libiberty.h (_hex_value): Const-ify. (hex_init): Delete. libiberty: * hex.c (hex_init): Delete. (_hex_value): Const-ify and initialize at compile-time. From-SVN: r46417
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/libiberty.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 391e1777013..605f094157e 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * libiberty.h (_hex_value): Const-ify.
+ (hex_init): Delete.
+
2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* demangle.h (demangler_engine): Const-ify.
diff --git a/include/libiberty.h b/include/libiberty.h
index 9501365c6ee..542eae54de4 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -240,8 +240,7 @@ extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC;
#define _hex_array_size 256
#define _hex_bad 99
-extern char _hex_value[_hex_array_size];
-extern void hex_init PARAMS ((void));
+extern const char _hex_value[_hex_array_size];
#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. */