diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-04-30 17:11:25 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-04-30 17:11:25 +0000 |
commit | 638d694d84aedb360309dd956b261e428d85f092 (patch) | |
tree | b2cbd4667ef9d395099460fd9be30ff0ec56ed29 /gcc/cpphash.h | |
parent | 3f49b8429cb6e4f440d796b8ed8bd75185ada516 (diff) | |
download | gcc-638d694d84aedb360309dd956b261e428d85f092.zip gcc-638d694d84aedb360309dd956b261e428d85f092.tar.gz gcc-638d694d84aedb360309dd956b261e428d85f092.tar.bz2 |
cppfiles.c (redundant_include_p): Provide length of token to cpp_defined.
* cppfiles.c (redundant_include_p): Provide length of token to
cpp_defined.
* cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
values are unsigned int.
(_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
(_cpp_lookup_slot): Do not calculate the hash, either.
* cpphash.h: Update prototypes.
* cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
Hashes are unsigned int. Calculate hash here, pass by value
to _cpp_lookup_slot.
From-SVN: r33551
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index edb61f7..5ccebad 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -103,7 +103,7 @@ struct ihash Used for include_next */ struct file_name_list *foundhere; - unsigned long hash; /* save hash value for future reference */ + unsigned int hash; /* save hash value for future reference */ const char *nshort; /* name of file as referenced in #include; points into name[] */ const U_CHAR *control_macro; /* macro, if any, preventing reinclusion - @@ -212,14 +212,14 @@ extern unsigned char _cpp_IStable[256]; /* In cpphash.c */ extern HASHNODE *_cpp_make_hashnode PARAMS ((const U_CHAR *, size_t, enum node_type, - unsigned long)); + 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 long *)); + unsigned int)); extern void _cpp_free_definition PARAMS ((HASHNODE *)); extern int _cpp_create_definition PARAMS ((cpp_reader *, cpp_toklist *, HASHNODE *)); |