This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Delete more cpplib / C front end duplication
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: Delete more cpplib / C front end duplication
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 23 May 2001 07:37:12 +0100
- References: <20010521195915.A3691@daikokuya.demon.co.uk>
Neil Booth wrote:-
> * 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.
I'm going to apply this. It has no regressions, Joseph has no issues
with it, and it's basically CPP land anyway.
Neil.