aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-04-27 00:58:50 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-04-27 00:58:50 +0000
commitcfd5b8b852ce51b5d7bc2d168f31ace425958308 (patch)
tree7abe614eb0bc0abac0f8818cf0cfdfcc6ca1dece /gcc/cpplib.h
parent72a107fe0a444e4b1b656f598fae711294edfe55 (diff)
downloadgcc-cfd5b8b852ce51b5d7bc2d168f31ace425958308.zip
gcc-cfd5b8b852ce51b5d7bc2d168f31ace425958308.tar.gz
gcc-cfd5b8b852ce51b5d7bc2d168f31ace425958308.tar.bz2
cpplex.c (spell_other, spell_char): Remove.
* cpplex.c (spell_other, spell_char): Remove. (SPELL_CHAR): New. (token_spelling, trigraph_map): Use unsigned chars. (_cpp_lex_line): Tidy up the switch statement. * cpplib.h: Implement spell_char with spell_string. (C): New. From-SVN: r33454
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index aca02a9..0ddbba3 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -108,14 +108,14 @@ typedef struct cpp_name cpp_name;
T(CPP_DOT_STAR, ".*") \
T(CPP_MIN, "<?") /* extension */ \
T(CPP_MAX, ">?") \
- H(CPP_OTHER, spell_other) /* stray punctuation */ \
+ C(CPP_OTHER, 0) /* stray punctuation */ \
\
H(CPP_NAME, spell_name) /* word */ \
N(CPP_INT, 0) /* 23 */ \
N(CPP_FLOAT, 0) /* 3.14159 */ \
H(CPP_NUMBER, spell_name) /* 34_be+ta */ \
- H(CPP_CHAR, spell_char) /* 'char' */ \
- H(CPP_WCHAR, spell_char) /* L'char' */ \
+ H(CPP_CHAR, spell_string) /* 'char' */ \
+ H(CPP_WCHAR, spell_string) /* L'char' */ \
H(CPP_STRING, spell_string) /* "string" */ \
H(CPP_WSTRING, spell_string) /* L"string" */ \
\
@@ -138,6 +138,7 @@ typedef struct cpp_name cpp_name;
#define T(e, s) e,
#define H(e, s) e,
+#define C(e, s) e,
#define N(e, s) e,
#define E(e, s) e,
enum cpp_ttype
@@ -147,6 +148,7 @@ enum cpp_ttype
};
#undef T
#undef H
+#undef C
#undef N
#undef E