diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2000-04-20 19:33:11 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-04-20 19:33:11 +0000 |
commit | 1368ee700d0d2fd0f0c118e182dda14218dcff5b (patch) | |
tree | b131b13cc8013ec316c7583f27a31866d32d9a99 /gcc/cppexp.c | |
parent | 70994f30394bd41eeb3173fcbd40b3db609cb445 (diff) | |
download | gcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.zip gcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.tar.gz gcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.tar.bz2 |
cpplib.h (enum cpp_ttype): Add token types for all punctuators.
* cpplib.h (enum cpp_ttype): Add token types for all
punctuators. Distinguish pp-numbers from valid C numbers.
Give some tokens better names. Initialize from macro.
(struct cpp_name, cpp_token, cpp_toklist): New data
structures.
Update prototypes.
* cpplex.c (bump_column, expand_name_space,
expand_token_space, init_token_list, cpp_output_list,
_cpp_scan_line): New functions.
(output_line_command): Add third argument, new line number.
* cpphash.h: Update prototypes.
* cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
token names.
From-SVN: r33289
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 91ffc5d..1489dc9 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -348,7 +348,7 @@ parse_defined (pfile) pfile->no_macro_expand++; token = _cpp_get_directive_token (pfile); - if (token == CPP_LPAREN) + if (token == CPP_OPEN_PAREN) { paren++; CPP_SET_WRITTEN (pfile, old_written); @@ -364,7 +364,7 @@ parse_defined (pfile) if (paren) { - if (_cpp_get_directive_token (pfile) != CPP_RPAREN) + if (_cpp_get_directive_token (pfile) != CPP_CLOSE_PAREN) goto oops; } CPP_SET_WRITTEN (pfile, old_written); |