c-lex.c (lex_charconst): Convert into a simple wrapper around cpp_interpret_charconst...
authorNeil Booth <neil@daikokuya.demon.co.uk>
Fri, 11 May 2001 23:48:21 +0000 (23:48 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 11 May 2001 23:48:21 +0000 (23:48 +0000)
commitc8a96070172673d05574e3c9fe21e28750610223
treeeefc97fe7077fa7f6cfc9bb868638feb3419f0dd
parentf42974dc81a20a5ea306fab56faef8c322bf26d2
c-lex.c (lex_charconst): Convert into a simple wrapper around cpp_interpret_charconst...

* 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.

From-SVN: r41978
gcc/ChangeLog
gcc/Makefile.in
gcc/c-lex.c
gcc/cppexp.c
gcc/cppinternals.texi
gcc/cpplex.c
gcc/cpplib.h