This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C preprocessor failure
- To: Stephen Olsen <Stephen_Olsen at mentorg dot com>
- Subject: Re: C preprocessor failure
- From: Neil Booth <NeilB at earthling dot net>
- Date: Mon, 15 May 2000 07:58:18 +0900
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <391E49EB.AE68FFEF@esd.mentorg.com>
Thanks for your bug report. It is not a GCC bug, but a bug in your
code; see below.
Stephen Olsen wrote:-
> > #ifdef DO_NOT_PROCESS
> > <input type=\"text\" name=\"designation\">vendor description
> >
> > #endif
You cannot put random text in a source file. Regardless of the
setting of DO_NOT_PROCESS, the text in that block must be breakable
into preprocessing tokens.
The preprocessor does this, as follows:-
<
input
type
=
\
"
where the " starts a string but the string never terminates because
the other quotes are escaped.
Neil.