This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Delete more cpplib / C front end duplication


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]