summaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-20 19:33:11 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-20 19:33:11 +0000
commit50fd6b48dca019bdefd2ec1f4caa93b42ce02574 (patch)
treeb131b13cc8013ec316c7583f27a31866d32d9a99 /gcc/cppexp.c
parent093c0196840c23ac9627794ab75e0618cc05a7c6 (diff)
downloadgcc-50fd6b48dca019bdefd2ec1f4caa93b42ce02574.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33289 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 91ffc5d20e7..1489dc96123 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);