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:
Akim Demaille
2020-07-05 07:21:07 +02:00
parent 7c0d36b760
commit 964fb2aa6f
4 changed files with 32 additions and 6 deletions

View File

@@ -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;