This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cpp: handling of DOS newlines after line continuation backslashes?
- To: gcc at gcc dot gnu dot org
- Subject: cpp: handling of DOS newlines after line continuation backslashes?
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sat, 7 Aug 1999 16:33:02 +0200 (MET DST)
How is cpp supposed to handle DOS newlines after line continuation
backslashes on a *nix platform?
#define a(b) (b*\^M
b)
main() {printf("%d\n", a(5));}
$ gcc foo.c
foo.c:2: parse error before `)'
foo.c:3: stray '\' in program
^M denotes the char with ASCII code 13. Without this char it works
like it should.
$ gcc -E foo.c
# 1 "foo.c"
b)
main() {printf("%d\n", ( 5 *\ );}