This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: line continuation problem
- From: John Love-Jensen <eljay at adobe dot com>
- To: Jack G Zhang <jackgzhang at hotmail dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 17 Jun 2003 08:06:35 -0500
- Subject: Re: line continuation problem
Hi Jack,
The preprocessor line-continuation sequence is...
[\]\n
...not...
[\][[:space:]]*\n
Whitespace after the '\' character is not "throw-away" whitespace.
The proper way to fix the problem is to remove the whitespace after the '\'
character, not change the compiler to make a one-off preprocessor that
allows otherwise invalid source code to compile.
If you REALLY need to trim that excess whitespace, use sed, perl, awk, tcl,
or python to pre-preprocess your source code.
Sincerely,
--Eljay