This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Multi-line Macros
- To: Ron Weigel <RonWeigel1 at compuserve dot com>
- Subject: Re: Multi-line Macros
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Mon, 24 Jan 2000 13:52:40 -0800
- Cc: gnu-gcc-bug at moderators dot isc dot org
- References: <86ifm2$2gm$1@ssauraac-i-1.production.compuserve.com>
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