diff options
author | Neil Booth <neilb@earthling.net> | 2000-07-12 14:37:47 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-07-12 14:37:47 +0000 |
commit | 2964d54fa66aceb9a7637a6c9b05e83da73fbf17 (patch) | |
tree | 72b34acb36220595f92d8f0fb9b891d3aafb73a4 /gcc/cpphash.h | |
parent | b9161f44f010d95884a05be53d062f26fe3d4c7d (diff) | |
download | gcc-2964d54fa66aceb9a7637a6c9b05e83da73fbf17.zip gcc-2964d54fa66aceb9a7637a6c9b05e83da73fbf17.tar.gz gcc-2964d54fa66aceb9a7637a6c9b05e83da73fbf17.tar.bz2 |
cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
* cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
* cpplex.c (TOKEN_SPELL) Move to cpphash.h.
* cpphash.c: (struct macro_info, alloc_macro, free_macro,
struct toklist_dummy): New.
(cpp_free_definition): Free macros with free_macro.
(count_params): Don't save paramter spellings. Save macro
information in a struct macro_info.
(parse_define): Don't allocate a token list.
(save_expansion): Allocate the macro's token list, and
save parameter spellings if necessary. Use TOKEN_SPELL.
(cpp_create_definition): Make list const.
From-SVN: r34985
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index e90f0e4..b527620 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -43,6 +43,7 @@ struct token_spelling }; extern const struct token_spelling token_spellings[]; +#define TOKEN_SPELL(token) (token_spellings[(token)->type].type) /* Chained list of answers to an assertion. */ struct answer |