diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-23 19:05:37 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-23 19:05:37 +0000 |
commit | c83427596b9ac46f369ececc6596531892a44e1f (patch) | |
tree | 0572715a50d0060cffa9b65761eba955082eb2b8 /gcc/cpplib.h | |
parent | d193f25f58e670a93d1cc5b87733d3655f971a72 (diff) | |
download | ppe42-gcc-c83427596b9ac46f369ececc6596531892a44e1f.tar.gz ppe42-gcc-c83427596b9ac46f369ececc6596531892a44e1f.zip |
* c-lex.c (read_escape, read_ucs): Delete.
(lex_string): Use cpp_parse_escape.
* cpplex.c (read_ucs): Rename maybe_read_ucs. Do nothing
if not C++ or not C99. Warn if traditional.
(parse_escape): Rename cpp_parse_escape. Make the bitmask
unsigned. Warn for out-of-range escape sequences here.
Update to use maybe_read_ucs.
(cpp_interpret_charconst): Don't warn here.
* cpplib.h (cpp_parse_escape): New exported function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index cc42e347c59..bfc6a3fb6cd 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -601,6 +601,10 @@ extern int cpp_ideq PARAMS ((const cpp_token *, extern void cpp_output_line PARAMS ((cpp_reader *, FILE *)); extern void cpp_output_token PARAMS ((const cpp_token *, FILE *)); extern const char *cpp_type2name PARAMS ((enum cpp_ttype)); +extern unsigned int cpp_parse_escape PARAMS ((cpp_reader *, + const unsigned char **, + const unsigned char *, + unsigned HOST_WIDE_INT, int)); /* In cpphash.c */ |