From a2a76ce71b44712ae1979cb28c0978e30819b43e Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 11 Feb 2000 20:17:27 +0000 Subject: cpphash.c: Fix formatting, update commentary. * cpphash.c: Fix formatting, update commentary. (dump_definition): Take three separate arguments instead of a MACRODEF structure argument. * cpphash.h: Update prototype of dump_definition. * cppinit.c (cpp_finish): Update call of dump_definition. * cpplib.c (do_define): Always create new hash entry with T_MACRO type. Remove redundant check for redefinition of poisoned identifier. Update call of dump_definition. (do_undef): Don't call check_macro_name. Rename sym_length to len. (do_error, do_warning): Don't use copy_rest_of_line or SKIP_WHITE_SPACE. (do_warning): Don't use pedwarn for the actual warning, only the notice about its not being in the standard. (Fixes bug with #warning in system headers.) (do_ident): Stricter argument checking - accept only a single string after #ident. Also, macro-expand the line. (do_xifdef): Use cpp_defined. De-obfuscate. (do_pragma): Split out specific pragma handling to separate functions. Use get_directive_token. Update commentary. Do not pass on #pragma once or #pragma poison to the front end. (do_pragma_once, do_pragma_implementation, do_pragma_poison, do_pragma_default): New. From-SVN: r31931 --- gcc/cppinit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 9ca7e7e..d941546 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1040,16 +1040,12 @@ cpp_finish (pfile) { int i; HASHNODE *h; - MACRODEF m; for (i = HASHSIZE; --i >= 0;) { for (h = pfile->hashtab[i]; h; h = h->next) if (h->type == T_MACRO) { - m.defn = h->value.defn; - m.symnam = h->name; - m.symlen = h->length; - dump_definition (pfile, m); + dump_definition (pfile, h->name, h->length, h->value.defn); CPP_PUTC (pfile, '\n'); } } -- cgit v1.1