aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-03-28 21:45:02 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-03-28 21:45:02 +0000
commit29a72a4f09d8606f1414e5380c5eeb2ad5fc6737 (patch)
treeed8035556cbbe82211a22a58d3beaeef00e865d0 /gcc/cpphash.h
parent1e9d75e87b82126fc5249149e5e85f2f1f308eea (diff)
downloadgcc-29a72a4f09d8606f1414e5380c5eeb2ad5fc6737.zip
gcc-29a72a4f09d8606f1414e5380c5eeb2ad5fc6737.tar.gz
gcc-29a72a4f09d8606f1414e5380c5eeb2ad5fc6737.tar.bz2
cppfiles.c (hash_IHASH): Just return i->hash.
2000-03-28 Zack Weinberg <zack@wolery.cumb.org> * cppfiles.c (hash_IHASH): Just return i->hash. (cpp_included): Set dummy.hash using _cpp_calc_hash. Use htab_find_with_hash. (cpp_read_file): Likewise. (find_include_file): Likewise. Properly initialize ih->nshort. Share ih->name and ih->nshort if possible. * cpphash.c (_cpp_calc_hash): New function. (hash_HASHNODE): Just return h->hash. (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use htab_find_with_hash. * cpphash.h: Prototype _cpp_calc_hash. * cppinit.c (initialize_builtins): Provide a valid hash to _cpp_make_hashnode, using _cpp_calc_hash. * cpphash.c (collect_expansion): # is not a special character in object-like macros. In -traditional mode, /**/ is not token paste at the beginning or end of the line. * cpplib.c (do_include, do_import, do_include_next): If parse_include fails, return immediately. From-SVN: r32792
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 704cab4..2cfbad7 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -255,6 +255,7 @@ enum file_change_code {same_file, rename_file, enter_file, leave_file};
extern HASHNODE *_cpp_make_hashnode PARAMS ((const U_CHAR *, size_t,
enum node_type,
unsigned long));
+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 *,