CRLF translations by CPP?
Matthew D. Langston
langston@SLAC.Stanford.EDU
Sun Jan 25 21:35:00 GMT 1998
Quick Description
-----------------
Is there a mechanism to enable egcs to properly parse multi-line cpp
macros that end with Backslash-CarriageReturn-LineFeed instead of
Backslash-LineFeed?
Detailed Description
--------------------
I help develop a library written in C that is primarily developed under
WinNT, e.g. each line of the source code ends with a
CarriageReturn-LineFeed. The author of this library develops under
WinNT. I develop under Linux using egcs.
This library makes heavy use of multi-line cpp macros. Since this
library is developed under WinNT, these multi-line macros end with
Backslash-CarriageReturn-LineFeed instead of Backslash-LineFeed. This
prevents egcs from successfully compiling the source files in the
library which use multi-line cpp macros.
Is there a way to enable egcs to properly parse files with lines ending
in CarriageReturn-LineFeed? I was hoping for a solution that didn't
require me to use the `dos2unix' program (or an equivalent program) on
all of the source files of the library every time I receive patches to
the library source code.
--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU
More information about the Gcc
mailing list