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: Eager newline handling for cpplib [patch]




Zack Weinberg wrote:

> 1999-03-13 12:56 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
>
>         "Eager" newline handling for cpplib.
>
>         * cppfile.c (read_and_prescan): Map backslash-newline to '\r'
>         (which cannot otherwise appear in the processed buffer) and
>         move it out of tokens that it appears in the middle of.
>         Improve performance.
>         (find_position): New function.
>
>         * cpplib.c: \r (one character) indicates backslash
>         newline, not \\\n (two characters).  It cannot appear in the
>         middle of a token.

What about a raw carriage return that appears in the middle of a string or
char constant, or a comment? I hope we're not treating a lone \r as an end
of line indicator....

Dave



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