diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-25 14:24:40 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-25 14:24:40 +0000 |
commit | 441bd0bfc30e2e1aa7f2e5e977b1825afcd54a0c (patch) | |
tree | 6a70d45559c3b1a18fd0998b7705e78d86303259 /gcc/cpplib.h | |
parent | 8b8232043f053ecbe1c8d70f0af39dc1b5f1b558 (diff) | |
download | gcc-441bd0bfc30e2e1aa7f2e5e977b1825afcd54a0c.tar.gz |
1999-02-25 17:14 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpphash.c (install): Rename to cpp_install, add cpp_reader*
first argument. All callers changed.
(hashtab): Removed.
(cpp_lookup, cpp_install): Change all refs to hashtab to
pfile->hashtab.
(cpp_hash_cleanup): Removed.
* cpphash.h: Adjust prototypes.
* cpplib.h (struct cpp_reader): Add hashtab pointer.
* cppinit.c (cpp_reader_init): Also allocate space for the
hashtab.
(cpp_cleanup): Delete all macros and free the hashtab.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25441 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index a943939829f..9ce146364ea 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -181,6 +181,10 @@ struct cpp_reader /* Current depth of buffer stack. */ int buffer_stack_depth; + /* Hash table of macros and assertions. See cpphash.c */ +#define HASHSIZE 1403 + struct hashnode **hashtab; + /* Hash table of other included files. See cppfiles.c */ #define ALL_INCLUDE_HASHSIZE 71 struct include_hash *all_include_files[ALL_INCLUDE_HASHSIZE]; @@ -245,10 +249,6 @@ struct cpp_reader /* Number of bytes since the last newline. */ int deps_column; - -#ifdef __cplusplus - ~cpp_reader () { cpp_cleanup (this); } -#endif }; #define CPP_FATAL_LIMIT 1000 |