From a28c50359bbec52be630d0ecb8918ae00e2e6509 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 16 May 2001 22:02:09 +0000 Subject: 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 --- gcc/c-lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/c-lex.c') diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 3a321ac..5585a16 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -347,7 +347,7 @@ cb_undef (pfile, node) cpp_reader *pfile ATTRIBUTE_UNUSED; cpp_hashnode *node; { - debug_undef (lineno, (const char *) node->name); + debug_undef (lineno, (const char *) NODE_NAME (node)); } /* Parse a '\uNNNN' or '\UNNNNNNNN' sequence. @@ -997,7 +997,7 @@ c_lex (value) goto retry; case CPP_NAME: - *value = get_identifier ((const char *)tok.val.node->name); + *value = get_identifier ((const char *) NODE_NAME (tok.val.node)); break; case CPP_INT: -- cgit v1.1