summaryrefslogtreecommitdiff
path: root/examples/c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-05 09:38:15 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-05 09:38:15 +0200
commit7aee4586caa3fb5bcd52ee200c0fbfd5bf20d82b (patch)
tree5d33582990f1eb3b03897413db394b1a524d5745 /examples/c
parent225a67321b4672db197e97a580c8fcbe907428a6 (diff)
parent6c44f2dce31f5d19d09dfae7f58921e767842e29 (diff)
downloadbison-7aee4586caa3fb5bcd52ee200c0fbfd5bf20d82b.tar.gz
Merge branch 'maint'
* maint: maint: post-release administrivia version 3.5.4 examples: reccalc: really compile cleanly in C99 news: announce that Bison 3.6 drops YYERROR_VERBOSE news: update for 3.5.4 style: fix spellos typo: succesful -> successful package: improve the readme java: check and fix support for api.token.raw java: style: prefer 'int[] foo' to 'int foo[]' build: fix syntax-check issues tests: recheck: work properly when the test suite was interrupted doc: c++: promote api.token.raw build: fix compatibility with old compilers examples: reccalc: compile cleanly in C99
Diffstat (limited to 'examples/c')
-rw-r--r--examples/c/reccalc/parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/c/reccalc/parse.y b/examples/c/reccalc/parse.y
index 6d645294..ae80942c 100644
--- a/examples/c/reccalc/parse.y
+++ b/examples/c/reccalc/parse.y
@@ -4,7 +4,11 @@
// Emitted in the header file, before the definition of YYSTYPE.
%code requires
{
+ #ifndef YY_TYPEDEF_YY_SCANNER_T
+ # define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
+ #endif
+
typedef struct
{
// Whether to print the intermediate results.
@@ -132,7 +136,6 @@ exp:
%%
// Epilogue (C code).
-
#include "scan.h"
result