diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-10 02:23:08 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-10 02:23:08 +0000 |
commit | bb52fa7f8606991a77af8ff6f0edabb8d7ffd280 (patch) | |
tree | a1c32725cdbb29b80f1f744fec3575eb7ad9997d /gcc/cppfiles.c | |
parent | ae6f3fe9f6035dd43b0eaa153e95843325f67f08 (diff) | |
download | gcc-bb52fa7f8606991a77af8ff6f0edabb8d7ffd280.zip gcc-bb52fa7f8606991a77af8ff6f0edabb8d7ffd280.tar.gz gcc-bb52fa7f8606991a77af8ff6f0edabb8d7ffd280.tar.bz2 |
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
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8bc313d..deb8bf0 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -68,6 +68,10 @@ static void hack_vms_include_specification PARAMS ((char *)); #define INO_T_EQ(a, b) ((a) == (b)) #endif +#ifndef INCLUDE_LEN_FUDGE +#define INCLUDE_LEN_FUDGE 0 +#endif + /* Merge the four include chains together in the order quote, bracket, system, after. Remove duplicate dirs (as determined by INO_T_EQ()). The system_include and after_include chains are never @@ -282,7 +286,7 @@ redundant_include_p (pfile, ihash, ilist) included again if the string is the name of a defined macro. */ return (i->control_macro && (i->control_macro[0] == '\0' - || cpp_lookup (pfile, i->control_macro, -1, -1))) + || cpp_lookup (pfile, i->control_macro, -1))) ? (struct include_hash *)-1 : i; return 0; |