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: cpplib: Patch to read_and_prescan



  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


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