This is the mail archive of the gcc-bugs@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]

CRLF escaping under CygWin


Not really a bug, but a feature I would really like to see:
an option to allow escapes ('\') before <CR><LF>s to
escape both:

Under CygWin the sources often have <CR><LF>
instead of just <LF> as line terminators. The precompiler
then generates errors on macros which escape the line
terminator. For instance:

#define DBG_OUT(x) \
   fprintf(stderr, (x))

generates:
temp.c:4: parse error before `('
temp.c:4: parse error before `)'

and later in the program, where it is used:
temp.c:8: stray '\' in program

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