Mail Archives: djgpp/2001/10/09/11:04:14
Thomas Hutto (huttothomas AT hotmail DOT com) wrote:
: See below for original question and a reasonable attempt to answer it.
Bad habit. Why should I need to jump up and down in the message to get
the context?
: bison -l -d -t -v -oreg.parser.c reg.y
: I had the -d option turned on originally.
: When I #include reg.parser.h I get a compiler error complaining about
: YYSTYPE being defined twice. And sure enough *.h has a definition for
: YYSTYPE and so does *.c.
Well, you don't need to #define YYPRINT in the C section. You only
need the prototype for yyprint, right?
If this is so you can put #define YYPRINT in a global header file.
If this isn't so perhaps #undef YYPRINT before #define YYPRINT can
help? (Not perfect but better than changing an auto-generated file.)
Right,
MartinS
- Raw text -