diff options
| author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-01 18:20:10 +0000 |
|---|---|---|
| committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-01 18:20:10 +0000 |
| commit | 3ba8b4970fccde027893c42805f2aee3a1722e8b (patch) | |
| tree | f86e627be1bd97d95d7ce2354cf47e7860868588 /gcc/cpphash.h | |
| parent | 6d20039dbfdd928f289e194e0c4220e46c550147 (diff) | |
| download | ppe42-gcc-3ba8b4970fccde027893c42805f2aee3a1722e8b.tar.gz ppe42-gcc-3ba8b4970fccde027893c42805f2aee3a1722e8b.zip | |
* cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
static. Allocate the hashnode and its string in the same
block of memory.
(del_HASHNODE): Don't free h->name.
(_cpp_lookup): If there is no entry for this string, create
one, of type T_VOID.
(_cpp_lookup_slot): Delete.
* cpphash.h: Update prototypes.
* cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
not hp == NULL.
* cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
node here, just fill in the value field properly. "Delete"
entries by setting the value field to T_VOID. Check for
hp->type == T_VOID, not hp == NULL.
* Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
* cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
hashtab.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33581 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
| -rw-r--r-- | gcc/cpphash.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 5ccebad392b..855df3bf069 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -210,16 +210,9 @@ extern unsigned char _cpp_IStable[256]; (CPP_BUFFER(PFILE)->cur - CPP_BUFFER(PFILE)->mark == 1) /* In cpphash.c */ -extern HASHNODE *_cpp_make_hashnode PARAMS ((const U_CHAR *, size_t, - enum node_type, - unsigned int)); extern unsigned int _cpp_calc_hash PARAMS ((const U_CHAR *, size_t)); extern HASHNODE *_cpp_lookup PARAMS ((cpp_reader *, const U_CHAR *, int)); -extern HASHNODE **_cpp_lookup_slot PARAMS ((cpp_reader *, - const U_CHAR *, int, - enum insert_option, - unsigned int)); extern void _cpp_free_definition PARAMS ((HASHNODE *)); extern int _cpp_create_definition PARAMS ((cpp_reader *, cpp_toklist *, HASHNODE *)); |

