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:
parent
aeb76991de
commit
e5969ba63a
@ -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.
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user