mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-22 15:38:23 +00:00
* src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
user prologue. These are defaults. * tests/actions.at (Mid-rule actions): Make sure the user can define YYDEBUG and YYERROR_VERBOSE.
This commit is contained in:
1 parent
b9cecb91a0
commit
d99361e657
3 files changed
+27
-17
No files matched your search
+6
-4
@@ -31,10 +31,12 @@ AT_SETUP([Mid-rule actions])
|
||||
|
||||
AT_DATA([[input.y]],
|
||||
[[%{
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
static void yyerror (const char *msg);
|
||||
static int yylex (void);
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
static void yyerror (const char *msg);
|
||||
static int yylex (void);
|
||||
# define YYDEBUG 1
|
||||
# define YYERROR_VERBOSE 1
|
||||
%}
|
||||
%%
|
||||
exp: { putchar ('0'); }
|
||||
|
||||
Reference in new issue
Block a user