From e500d4286864b02e917a8e0dee3bdbbb497be21f Mon Sep 17 00:00:00 2001 From: ghazi Date: Tue, 23 Oct 2001 03:17:29 +0000 Subject: include: * libiberty.h (hex_init): Revert delete. libiberty: * hex.c (hex_init): Provide empty stub. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46421 138bc75d-0d04-0410-961f-82ee72b054a4 --- include/ChangeLog | 2 ++ include/libiberty.h | 1 + libiberty/ChangeLog | 2 ++ libiberty/hex.c | 6 ++++++ 4 files changed, 11 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index 605f094157e..6d15b6ed74a 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,5 +1,7 @@ 2001-10-22 Kaveh R. Ghazi + * libiberty.h (hex_init): Revert delete. + * libiberty.h (_hex_value): Const-ify. (hex_init): Delete. diff --git a/include/libiberty.h b/include/libiberty.h index 542eae54de4..455643d3a92 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -241,6 +241,7 @@ extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC; #define _hex_array_size 256 #define _hex_bad 99 extern const 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. */ diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5ef552f6fcc..ac7c0898b27 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,7 @@ 2001-10-22 Kaveh R. Ghazi + * hex.c (hex_init): Provide empty stub. + * hex.c (hex_init): Delete. (_hex_value): Const-ify and initialize at compile-time. diff --git a/libiberty/hex.c b/libiberty/hex.c index 1c1d292823b..3ba04ba83de 100644 --- a/libiberty/hex.c +++ b/libiberty/hex.c @@ -20,6 +20,12 @@ Boston, MA 02111-1307, USA. */ #include /* for EOF */ #include "libiberty.h" +/* Provided for ABI compatibility. */ +void +hex_init () +{ +} + /* Are we ASCII? */ #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \ && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21 \ -- cgit v1.2.1