summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-16 22:02:09 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-16 22:02:09 +0000
commitc86dbc5b5758a0e795c7a25570d27b862c96f3e3 (patch)
treec0452482f8196e8f1922c3e67ab111a544d838e0 /gcc/cpplib.h
parent614e0ab75213eed9ba31cf0752fbdbfba7e0f17a (diff)
downloadppe42-gcc-c86dbc5b5758a0e795c7a25570d27b862c96f3e3.tar.gz
ppe42-gcc-c86dbc5b5758a0e795c7a25570d27b862c96f3e3.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index dc4c763ed19..7730a24a02a 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. */
OpenPOWER on IntegriCloud