line continuation problem

John Love-Jensen eljay@adobe.com
Tue Jun 17 13:06:00 GMT 2003


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




More information about the Gcc-help mailing list