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]

Re: Multi-line Macros


On Mon, Jan 24, 2000 at 02:22:34PM -0700, Ron Weigel wrote:
> During porting of code from NT, I had problems with multi-line macros that
> would report the error "stray '\' in program".  I traced the problem to
> MSDOS/Windows line terminators (CRLF) as opposed to Unix line terminators
> (LF).  Apparently the preprocessor is interpreting the CR as an extra
> character after the backslash.  Since this is the only problem I found that
> resulted from the difference in terminators, it seems to me that this one
> problem in the preprocessor should be fixed.

This is a commonly reported problem.  It has already been fixed in the
experimental new preprocessor ("cpplib"); if you are prepared to
compile your own version of gcc 2.95.2, supply --enable-cpplib to
configure and your problem will go away.  (You may then encounter
other problems with the preprocessor, which you should report.)

To my knowledge there are no plans to fix the problem in the older
preprocessor, because we want to scrap it instead.

zw

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