This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: building 3.1 branch on Cygwin
On Thu, Mar 07, 2002 at 03:19:10PM -0800, Chris Meyer wrote:
> Hi Neil,
>
> Here's the updated patch using the macros.
I don't think this bit
> - if (*p == '\n' && prev != '\\')
> + if (IS_VSPACE(*p) && prev != '\\')
> printf ("\\n\\\n");
does what you want. DOS line breaks are \r\n; I think the above will
turn " \r\n" into " \\n\\\n\\n\\\n" (i.e. introducing an extra blank
line). Also, it leaves a backslashed newline alone, which may cause
problems with a compiler that treats \r as horizontal white space.
The rest of it appears to be safe.
zw