bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Token enums


From: Paul Eggert
Subject: Re: FYI: Token enums
Date: Fri, 3 May 2002 11:13:20 -0700 (PDT)

> From: Akim Demaille <address@hidden>
> Date: 03 May 2002 10:42:38 +0200

>    enum yytokentype {
>      enum a = 258,
>      enum b = 259,

Only the first 'enum' keyword should be output.  But I see that
CVS Bison already does the right thing.

> #ifndef YYTOKENTYPE
> # if defined (__STDC__) || defined (__cplusplus)
> ...
> #  define YYTOKENTYPE int
> # endif
> #endif

A minor typo: to support K&R C, the last three lines should be:

# endif
# define YYTOKENTYPE int
#endif

I just installed a patch for that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]