]> git.saurik.com Git - bison.git/commit
build: do not prototype flex-generated functions.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 15 May 2012 09:22:34 +0000 (11:22 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 21 May 2012 12:48:52 +0000 (14:48 +0200)
commit86b08b49b3b1b9fc27a3c64d8421a6f30c12d942
treeb094823f39ab9b4327690e10c2a67f16d2a17057
parent7fb72c6e53f25f2d0b10fc9e0b412b8c7cde9101
build: do not prototype flex-generated functions.

Some versions of Flex, possibly modified by the distribution package
maintainers, have incompatible signatures.  Since newer versions of
Flex prototype their functions, avoid the conflicts in that case.
Reported by Stefano Lattarini.
<http://lists.gnu.org/archive/html/bug-bison/2012-05/msg00012.html>.

* src/flex-scanner.h (FLEX_VERSION_GT): New.
Use it to issue prototypes for flex-generated functions only for
versions up to 2.5.31, in accordance with the comment.
See commit dc9701e848f27ae64b6ddcf809580998667d60f2.
Use it to define yylex_destroy when needed.
NEWS
src/flex-scanner.h