summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-11 23:48:21 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-11 23:48:21 +0000
commit8330799c24a0f37967d11ef4b5dc9ece7d7f4706 (patch)
treeeefc97fe7077fa7f6cfc9bb868638feb3419f0dd /gcc/cpplib.h
parentd194c51979a96a42a398d424c28e6e3bf1d119e7 (diff)
downloadppe42-gcc-8330799c24a0f37967d11ef4b5dc9ece7d7f4706.tar.gz
ppe42-gcc-8330799c24a0f37967d11ef4b5dc9ece7d7f4706.zip
* c-lex.c (lex_charconst): Convert into a simple wrapper
around cpp_interpret_charconst, to which most of the code body is moved. * cppexp.c (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE, MAX_LONG_TYPE_SIZE, MAX_INT_TYPE_SIZE, MAX_CHAR_TYPE_MASK, MAX_WCHAR_TYPE_MASK, parse_escape, parse_charconst): Remove. (lex): Use cpp_interpret_charconst. * cpplex.c (parse_escape, read_ucs, cpp_interpret_charconst, hex_digit_value): New functions. (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): New macros. * cpplib.h (cpp_interpret_charconst): New prototype. * Makefile.in: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41978 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index b9b706bd75e..dc4c763ed19 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -542,6 +542,11 @@ extern const cpp_lexer_pos *cpp_get_line PARAMS ((cpp_reader *));
extern const unsigned char *cpp_macro_definition PARAMS ((cpp_reader *,
const cpp_hashnode *));
+/* Evaluate a CPP_CHAR or CPP_WCHAR token. */
+extern HOST_WIDE_INT
+cpp_interpret_charconst PARAMS ((cpp_reader *, const cpp_token *,
+ int, int, unsigned int *));
+
extern void cpp_define PARAMS ((cpp_reader *, const char *));
extern void cpp_assert PARAMS ((cpp_reader *, const char *));
extern void cpp_undef PARAMS ((cpp_reader *, const char *));
OpenPOWER on IntegriCloud