* doc/bison.texinfo (Calc++ Scanner): The flex behavior is an

incompatibility, not a bug.  Mention that it wasn't fixed as of
flex 2.5.33.
This commit is contained in:
Paul Eggert
2006-05-11 16:54:01 +00:00
parent 3cf084ecae
commit eaea13f59f
2 changed files with 23 additions and 2 deletions

View File

@@ -7583,10 +7583,14 @@ parser's to get the set of defined tokens.
# include <string>
# include "calc++-driver.hh"
# include "calc++-parser.hh"
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
/* Work around an incompatibility in flex (at least versions
2.5.31 through 2.5.33): it generates code that does
not conform to C89. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
# undef yywrap
# define yywrap() 1
/* By default yylex returns int, we use token_type.
Unfortunately yyterminate by default returns 0, which is
not of token_type. */