building 3.1 branch on Cygwin
Zack Weinberg
zack@codesourcery.com
Thu Mar 7 15:31:00 GMT 2002
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
More information about the Gcc
mailing list