cpplib: new lexer
Zack Weinberg
zack@wolery.cumb.org
Tue Apr 25 11:01:00 GMT 2000
On Tue, Apr 25, 2000 at 01:41:33PM -0400, Horst von Brand wrote:
> Zack Weinberg <zack@wolery.cumb.org> said:
>
> [...]
>
> > > > There is a new warning emitted
> > > >
> > > > "The C Standard requires whitespsace after #define BLAH"
> > > >
> > > > This warning is refering to the C99 Standard so this should be
> > > > explicit in the error message.
>
> > I believe it was a constraint in C89 as well.
>
> You mean:
>
> #define FOO
>
> (with nothing between "FOO" and '\n') is illegal? Sounds rather strange...
> It is being used all over the place, so the noise level is unbearable. Not
> that it bootstraps, mind you ;-)
No, *that* is a bug, plain and simple. Which should be fixed in CVS now.
What C99 and I believe C89 both prohibit is
#define COMMA,
or the subtler
#define BLOCK\
{ ... } /* after \-newline replacement, no space between K and { */
zw
More information about the Gcc-patches
mailing list