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/cpphash.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/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 7f7f7d6..d304f1a 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -45,18 +45,16 @@ typedef struct hashnode HASHNODE; the hashf () function. Hashf () only exists for the sake of politeness, for use when speed isn't so important. */ -#define HASHSIZE 1403 #define HASHSTEP(old, c) ((old << 2) + c) #define MAKE_POS(v) (v & 0x7fffffff) /* make number positive */ -extern HASHNODE *install PARAMS ((U_CHAR *, int, enum node_type, - const char *, int)); -extern int hashf PARAMS ((const U_CHAR *, int, int)); -extern void delete_macro PARAMS ((HASHNODE *)); +extern HASHNODE *cpp_install PARAMS ((cpp_reader *, U_CHAR *, int, + enum node_type, const char *, int)); +extern int hashf PARAMS ((const U_CHAR *, int, int)); +extern void delete_macro PARAMS ((HASHNODE *)); extern MACRODEF create_definition PARAMS ((U_CHAR *, U_CHAR *, cpp_reader *, int)); extern int compare_defs PARAMS ((cpp_reader *, DEFINITION *, DEFINITION *)); extern void macroexpand PARAMS ((cpp_reader *, HASHNODE *)); -extern void cpp_hash_cleanup PARAMS ((cpp_reader *)); |