]> gcc.gnu.org Git - gcc.git/commit - gcc/cpphash.c
cpplib.h: Provide HASHNODE typedef and forward decl of struct hashnode only.
authorZack Weinberg <zack@wolery.cumb.org>
Thu, 10 Feb 2000 02:23:08 +0000 (02:23 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Thu, 10 Feb 2000 02:23:08 +0000 (02:23 +0000)
commitbb52fa7f8606991a77af8ff6f0edabb8d7ffd280
treea1c32725cdbb29b80f1f744fec3575eb7ad9997d
parentae6f3fe9f6035dd43b0eaa153e95843325f67f08
cpplib.h: Provide HASHNODE typedef and forward decl of struct hashnode only.

* cpplib.h: Provide HASHNODE typedef and forward decl of
struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
DEFINITION, struct hashnode, struct macrodef, struct
definition, scan_decls prototype, default defn of
INCLUDE_LEN_FUDGE moved elsewhere.

* cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
definition, and struct hashnode moved here. Remove the unused
'predefined' field from struct definition.  Replace the 'args'
union with its sole member.  All users updated (cpphash.c).
Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
multiple include guard.

* cpphash.c (hashf): Make static; use better algorithm; drop
HASHSIZE parameter; return an unsigned int.
(cpp_lookup): Drop HASH parameter.  PFILE parameter is
used. Calculate HASHSIZE modulus here.
(cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
here.
(create_definition): Drop PREDEFINITION parameter.
* cpplib.c (do_define): Don't calculate a hash value here.
Don't pass (keyword == NULL) to create_definition.

* scan.h: Prototype scan_decls here.
* cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
* cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
callers of cpp_lookup and cpp_install updated.

From-SVN: r31881
gcc/ChangeLog
gcc/cppexp.c
gcc/cppfiles.c
gcc/cpphash.c
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplib.c
gcc/cpplib.h
gcc/fix-header.c
gcc/scan.h
This page took 0.062933 seconds and 5 git commands to generate.