This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Patch to read_and_prescan
- To: Neil Booth <NeilB at earthling dot net>
- Subject: Re: cpplib: Patch to read_and_prescan
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 15 Feb 2000 19:27:08 -0700
- cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zack at wolery dot cumb dot org>
- Reply-To: law at cygnus dot com
In message <E12KEBP-0005wN-00@monkey.rosenet.ne.jp>you write:
> Fixes a bug where
>
> \n\r\n\r\0xxx
>
> gets translated to 3 newlines rather than 2, where \0 represents end
> of buffer and xxx is a normal character after the buffer refill.
>
> Also, small optimization for the \-newline-in-middle-of-identifier case.
>
> Neil.
>
> * cppfiles.c(read_and_prescan) Fixes parsing of
> \n\r\n\r\0xxx case. Small optimization when
> \-newline comes in the middle of an identifier.
Zack -- I'm leaving this one up to you. It would probably be good to install
a testcase for this into the testsuite if we can come up with a reasonable
way to test it.
jeff