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/cpplex.c | |
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/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index a1e1ad2..00e2ecb 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -139,7 +139,6 @@ static void process_directive PARAMS ((cpp_reader *, const cpp_token *)); /* An upper bound on the number of bytes needed to spell a token, including preceding whitespace. */ -#define TOKEN_SPELL(token) token_spellings[(token)->type].type #define TOKEN_LEN(token) (5 + (TOKEN_SPELL(token) == SPELL_STRING \ ? (token)->val.str.len \ : (TOKEN_SPELL(token) == SPELL_IDENT \ |