summaryrefslogtreecommitdiff
path: root/gcc/scan.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-10 02:23:08 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-10 02:23:08 +0000
commit73a176723b3415665944be1438a3b35aade0a027 (patch)
treea1c32725cdbb29b80f1f744fec3575eb7ad9997d /gcc/scan.h
parent22181af59b0212a1b32c11a1f8e549f20718b442 (diff)
downloadgcc-73a176723b3415665944be1438a3b35aade0a027.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan.h')
-rw-r--r--gcc/scan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/scan.h b/gcc/scan.h
index a2d964485e0..1c321f53159 100644
--- a/gcc/scan.h
+++ b/gcc/scan.h
@@ -62,6 +62,9 @@ extern void recognized_function _PARAMS((const char *, int, int, const char *, i
extern void recognized_extern _PARAMS((const char *, int, const char *, int));
extern unsigned int hashstr _PARAMS((const char *, unsigned int));
+struct cpp_reader;
+extern int scan_decls _PARAMS((struct cpp_reader *, int, char **));
+
/* get_token is a simple C lexer. */
#define IDENTIFIER_TOKEN 300
#define CHAR_TOKEN 301