diff options
author | Neil Booth <neil@cat.daikokuya.demon.co.uk> | 2001-05-16 22:02:09 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-05-16 22:02:09 +0000 |
commit | a28c50359bbec52be630d0ecb8918ae00e2e6509 (patch) | |
tree | c0452482f8196e8f1922c3e67ab111a544d838e0 /gcc/cpplib.h | |
parent | a50882dcae3809cfbf09c9135874e5035c178192 (diff) | |
download | gcc-a28c50359bbec52be630d0ecb8918ae00e2e6509.zip gcc-a28c50359bbec52be630d0ecb8918ae00e2e6509.tar.gz gcc-a28c50359bbec52be630d0ecb8918ae00e2e6509.tar.bz2 |
cppexp.c (lex): Use NODE_NAME and NODE_LEN.
* cppexp.c (lex): Use NODE_NAME and NODE_LEN.
* cpphash.c (_cpp_lookup_with_hash): Similarly.
* cpplex.c (cpp_ideq, parse_identifier, cpp_token_len,
cpp_spell_token, cpp_output_token): Similarly.
* cpplib.c (lex_macro_node, do_undef, do_pragma,
do_pragma_poison, parse_assertion, do_assert): Similarly.
* cppmacro.c (builtin_macro, parse_args, funlike_invocation_p,
save_parameter, _cpp_create_definition, check_trad_stringification,
cpp_macro_definition): Similarly.
* cppmain.c (cb_define, cb_undef, dump_macro): Similarly.
* c-lex.c (cb_undef, c_lex): Similarly.
* fix-header.c (recognized_function): Similarly.
* cpplib.h (NODE_LEN, NODE_NAME): New.
(cpp_hashnode): Rename length len.
From-SVN: r42174
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index dc4c763..7730a24 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -466,17 +466,14 @@ enum builtin_type BT_STDC /* `__STDC__' */ }; -/* There is a slot in the hashnode for use by front ends when integrated - with cpplib. It holds a tree (see tree.h) but we mustn't drag that - header into every user of cpplib.h. cpplib does not do anything with - this slot except clear it when a new node is created. */ -union tree_node; +#define NODE_LEN(NODE) (NODE->len) +#define NODE_NAME(NODE) (NODE->name) struct cpp_hashnode { const unsigned char *name; /* Null-terminated name. */ unsigned int hash; /* Cached hash value. */ - unsigned short length; /* Length of name excluding null. */ + unsigned short len; /* Length of name excluding null. */ unsigned short arg_index; /* Macro argument index. */ unsigned char directive_index; /* Index into directive table. */ ENUM_BITFIELD(node_type) type : 8; /* Node type. */ |