mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
examples: include the generated header
* examples/c/bistromathic/parse.y, examples/c/lexcalc/parse.y, * examples/c/reccalc/parse.y: here. Add some comments. * src/parse-gram.y (api_version): Pull out of handle_require. Bump to 3.7.
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
#include "scan-code.h"
|
||||
#include "scan-gram.h"
|
||||
|
||||
/* Pretend to be at least that version, to check features published
|
||||
in that version while developping it. */
|
||||
static const char* api_version = "3.7";
|
||||
|
||||
static int current_prec = 0;
|
||||
static location current_lhs_loc;
|
||||
static named_ref *current_lhs_named_ref;
|
||||
@@ -1082,9 +1086,6 @@ handle_require (location const *loc, char const *version_quoted)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Pretend to be at least that version, to check features published
|
||||
in that version while developping it. */
|
||||
const char* api_version = "3.6";
|
||||
const char* package_version =
|
||||
0 < strverscmp (api_version, PACKAGE_VERSION)
|
||||
? api_version : PACKAGE_VERSION;
|
||||
|
||||
Reference in New Issue
Block a user