diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-05-23 19:05:37 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-05-23 19:05:37 +0000 |
commit | 62729350f1f7d6ce8a2b8ef153a715762285ed98 (patch) | |
tree | 0572715a50d0060cffa9b65761eba955082eb2b8 /gcc/cpplib.h | |
parent | ff867905f91c0a19a7c057cd8539734b40946c0b (diff) | |
download | gcc-62729350f1f7d6ce8a2b8ef153a715762285ed98.zip gcc-62729350f1f7d6ce8a2b8ef153a715762285ed98.tar.gz gcc-62729350f1f7d6ce8a2b8ef153a715762285ed98.tar.bz2 |
c-lex.c (read_escape, read_ucs): Delete.
* 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.
From-SVN: r42509
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 cc42e34..bfc6a3f 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 */ |