CRLF translations by CPP?
Per Bothner
bothner@cygnus.com
Sun Jan 25 23:26:00 GMT 1998
> Is there a mechanism to enable egcs to properly parse multi-line cpp
> macros that end with Backslash-CarriageReturn-LineFeed instead of
> Backslash-LineFeed?
Cpp (and cpplib and the various lexers) should be modified so that they
treat any of CR, LF, or CR-followed-by-LF as a newline - without
requiring any special flags, independent of host operating system.
This is the most useful and convenient apprach (for the user) for
any program that reads "text" input.
But actually doing the work is tedious. Note that Cygnus is
working on making the cpplib the default, so long-term, fixing
cpplib will take care of C, C++, and cpp. There is reason to
believe this will happen soon (by mid-year).
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
More information about the Gcc
mailing list