]> gcc.gnu.org Git - gcc.git/commit - gcc/cpplib.c
[multiple changes]
authorZack Weinberg <zack@gcc.gnu.org>
Tue, 18 Jul 2000 00:59:49 +0000 (00:59 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 18 Jul 2000 00:59:49 +0000 (00:59 +0000)
commit711b88243b220e3cd737696da51de70f32bb7d5c
treea8929adb35764d62c4016b482a4cb4b619be00cb
parent5d8fcdcb2ddbd52a35621a7880cf268c50a54027
[multiple changes]

2000-02-17  Zack Weinberg  <zack@wolery.cumb.org>

* cpphash.c: Don't include hashtab.h.  Most macro-handling code
moved to cppmacro.c.
(hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
dump_hash_helper): Delete.
(expand_hash, higher_prime_number, _cpp_lookup_with_hash,
cpp_forall_identifiers): New. Implement specialized version of
Vlad's expandable hash table.
(cpp_lookup): Use new functions.
(_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
implementation.
* cppmacro.c: New file.
* cppinit.c (dump_macros_helper): New.
(cpp_finish): Iterate over the identifier table directly.
* cpplex.c (parse_name): Calculate the hash of the identifier
while we scan it.  Use _cpp_lookup_with_hash when we can.

* cpphash.h: Update prototypes.
(xcnewvec, HASHSTEP): New helper macros.
* cpplib.h: Update prototypes.
* Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
(cppmacro.o): New rule.
(cpphash.o): Update deps.

* cppmain.c: Do not set pfile->printer if no_output is on.

2000-02-15  Neil Booth  <neilb@earthling.net>

* cpplib.c: Change all directive-handler functions to return
void, not int.
* cpphash.h: Update typedefs.

From-SVN: r35113
gcc/ChangeLog
gcc/Makefile.in
gcc/cpphash.c
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h
gcc/cppmacro.c [new file with mode: 0644]
gcc/cppmain.c
This page took 0.056443 seconds and 5 git commands to generate.