aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorNeil Booth <neil@cat.daikokuya.demon.co.uk>2001-05-16 22:02:09 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-05-16 22:02:09 +0000
commita28c50359bbec52be630d0ecb8918ae00e2e6509 (patch)
treec0452482f8196e8f1922c3e67ab111a544d838e0 /gcc/fix-header.c
parenta50882dcae3809cfbf09c9135874e5035c178192 (diff)
downloadgcc-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/fix-header.c')
-rw-r--r--gcc/fix-header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 380fe86..d2e7f78 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -532,8 +532,8 @@ recognized_function (fname, line, kind, have_arg_list)
missing_extern_C_count++;
#endif
- fn = lookup_std_proto ((const char *)fname->val.node->name,
- fname->val.node->length);
+ fn = lookup_std_proto ((const char *) NODE_NAME (fname->val.node),
+ NODE_LEN (fname->val.node));
/* Remove the function from the list of required function. */
if (fn)