yacc.c: provide the Bison version as an integral macro
commit21c147b6e5372563b7c4741deadaddb9354f4b09
authorAkim Demaille <akim.demaille@gmail.com>
Wed, 11 Nov 2020 07:42:16 +0000 (11 08:42 +0100)
committerAkim Demaille <akim.demaille@gmail.com>
Wed, 11 Nov 2020 08:08:57 +0000 (11 09:08 +0100)
tree745dd8622b4e306d1ad9a334b921bd3dfaa59832
parentd3c575a6c6639a129d5ca84b60cc693fbd0cde68
yacc.c: provide the Bison version as an integral macro

Suggested by Balazs Scheidler.
https://github.com/akimd/bison/issues/55

* src/muscle-tab.c (muscle_init): Move/rename `b4_version` to/as...
* src/output.c (prepare): `b4_version_string`.
Also define `b4_version`.
* data/skeletons/bison.m4, data/skeletons/c.m4, data/skeletons/d.m4,
* data/skeletons/java.m4: Adjust.
* doc/bison.texi: Document it.
NEWS
data/skeletons/bison.m4
data/skeletons/c.m4
data/skeletons/d.m4
data/skeletons/java.m4
doc/bison.texi
src/muscle-tab.c
src/output.c
src/parse-gram.c