diff options
author | Zack Weinberg <zack@codesourcery.com> | 2001-10-06 23:11:27 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-10-06 23:11:27 +0000 |
commit | 47ad4138968382305b6f563c8745356c653dc9b4 (patch) | |
tree | 18e0a81db62c23158e5b9bb4e1bc8f943923ea29 /gcc/cpplib.h | |
parent | 7fb56130c433ad5492234da98506fe00dfbd00d4 (diff) | |
download | gcc-47ad4138968382305b6f563c8745356c653dc9b4.tar.gz |
cpplex.c (enum spell_type): Add SPELL_NUMBER.
* cpplex.c (enum spell_type): Add SPELL_NUMBER.
(cpp_token_len, cpp_spell_token, cpp_output_token,
_cpp_equiv_tokens): Handle it.
* cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
* cppexp.c (_cpp_parse_expr): Use the correct operator code in
error messages.
From-SVN: r46052
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 507126e6ad5..b258c726746 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -122,7 +122,7 @@ struct file_name_map_list; OP(CPP_ATSIGN, "@") /* used in Objective C */ \ \ TK(CPP_NAME, SPELL_IDENT) /* word */ \ - TK(CPP_NUMBER, SPELL_STRING) /* 34_be+ta */ \ + TK(CPP_NUMBER, SPELL_NUMBER) /* 34_be+ta */ \ \ TK(CPP_CHAR, SPELL_STRING) /* 'char' */ \ TK(CPP_WCHAR, SPELL_STRING) /* L'char' */ \ @@ -132,10 +132,11 @@ struct file_name_map_list; TK(CPP_WSTRING, SPELL_STRING) /* L"string" */ \ TK(CPP_HEADER_NAME, SPELL_STRING) /* <stdio.h> in #include */ \ \ - TK(CPP_COMMENT, SPELL_STRING) /* Only if output comments. */ \ + TK(CPP_COMMENT, SPELL_NUMBER) /* Only if output comments. */ \ + /* SPELL_NUMBER happens to DTRT. */ \ TK(CPP_MACRO_ARG, SPELL_NONE) /* Macro argument. */ \ - OP(CPP_PADDING, "") /* Whitespace for cpp0. */ \ - OP(CPP_EOF, "EOL") /* End of line or file. */ + TK(CPP_PADDING, SPELL_NONE) /* Whitespace for cpp0. */ \ + TK(CPP_EOF, SPELL_NONE) /* End of line or file. */ #define OP(e, s) e, #define TK(e, s) e, |