libiberty.h (hex_init): Revert delete.

include:
	* libiberty.h (hex_init): Revert delete.

libiberty:
	* hex.c (hex_init): Provide empty stub.

From-SVN: r46421
This commit is contained in:
Kaveh R. Ghazi 2001-10-23 03:17:29 +00:00 committed by Kaveh Ghazi
parent aeb76991de
commit e5969ba63a
4 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h (hex_init): Revert delete.
* libiberty.h (_hex_value): Const-ify.
(hex_init): Delete.

View File

@ -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. */

View File

@ -1,5 +1,7 @@
2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* hex.c (hex_init): Provide empty stub.
* hex.c (hex_init): Delete.
(_hex_value): Const-ify and initialize at compile-time.

View File

@ -20,6 +20,12 @@ Boston, MA 02111-1307, USA. */
#include <stdio.h> /* 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 \