This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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



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