summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-22 19:28:00 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-22 19:28:00 +0000
commitbc205914531d551c6d7526da0ae70533b99c7a3c (patch)
tree0004496cf3900a93b9e0ad258622e9c33e36e97d /gcc/cpplib.h
parent008a77ec2740a275f6e06e8752b5ee785a675e28 (diff)
downloadppe42-gcc-bc205914531d551c6d7526da0ae70533b99c7a3c.tar.gz
ppe42-gcc-bc205914531d551c6d7526da0ae70533b99c7a3c.zip
* c-lex.c (c_lex): Handle CPP_OTHER differently.
* cppexp.c (_cpp_parse_expr): Similarly. * cpplex.c (SPELL_CHAR): Remove. (_cpp_lex_direct): Stray chars are saved as byte strings. (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't handle SPELL_CHAR. (cpp_avoid_paste): Update handling of CPP_OTHER. * cpplib.h: Spell CPP_OTHER like a number. (struct cpp_token): Remove member c. * cppmacro.c (stringify_arg): Update handling of CPP_OTHER. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index a9bdb1d8e85..875fe5bf0b1 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -128,7 +128,7 @@ struct file_name_map_list;
\
TK(CPP_CHAR, SPELL_STRING) /* 'char' */ \
TK(CPP_WCHAR, SPELL_STRING) /* L'char' */ \
- TK(CPP_OTHER, SPELL_CHAR) /* stray punctuation */ \
+ TK(CPP_OTHER, SPELL_NUMBER) /* stray punctuation */ \
\
TK(CPP_STRING, SPELL_STRING) /* "string" */ \
TK(CPP_WSTRING, SPELL_STRING) /* L"string" */ \
@@ -184,7 +184,6 @@ struct cpp_token
const cpp_token *source; /* Inherit padding from this token. */
struct cpp_string str; /* A string, or number. */
unsigned int arg_no; /* Argument no. for a CPP_MACRO_ARG. */
- unsigned char c; /* Character represented by CPP_OTHER. */
} val;
};
OpenPOWER on IntegriCloud