diff options
author | Zack Weinberg <zack@rabi.columbia.edu> | 1999-02-25 14:24:40 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 1999-02-25 14:24:40 +0000 |
commit | 122ae89b144a0eaf31107f871f26ead27df8daad (patch) | |
tree | 6a70d45559c3b1a18fd0998b7705e78d86303259 /gcc/cpplib.h | |
parent | 9ab70a9bd7c8ee4fcf2f074459525e981ed1ca2e (diff) | |
download | gcc-122ae89b144a0eaf31107f871f26ead27df8daad.zip gcc-122ae89b144a0eaf31107f871f26ead27df8daad.tar.gz gcc-122ae89b144a0eaf31107f871f26ead27df8daad.tar.bz2 |
cpphash.c (install): Rename to cpp_install, add cpp_reader* first argument.
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.
From-SVN: r25441
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 a943939..9ce1463 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 |