c-lex.c (read_escape, read_ucs): Delete.
commit62729350f1f7d6ce8a2b8ef153a715762285ed98
authorNeil Booth <neil@daikokuya.demon.co.uk>
Wed, 23 May 2001 19:05:37 +0000 (23 19:05 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 23 May 2001 19:05:37 +0000 (23 19:05 +0000)
tree0572715a50d0060cffa9b65761eba955082eb2b8
parentff867905f91c0a19a7c057cd8539734b40946c0b
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
gcc/ChangeLog
gcc/c-lex.c
gcc/cpplex.c
gcc/cpplib.h