mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
tests: beware of gnulib's need for config.h
* tests/skeletons.at, tests/torture.at: Be sure to include config.h where appropriate.
This commit is contained in:
@@ -114,10 +114,10 @@ main (void)
|
|||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_DATA([[input-cmd-line.y]],
|
AT_DATA_GRAMMAR([[input-cmd-line.y]],
|
||||||
[AT_GRAM])
|
[AT_GRAM])
|
||||||
|
|
||||||
AT_DATA([[input-gram.y]],
|
AT_DATA_GRAMMAR([[input-gram.y]],
|
||||||
[[%skeleton "yacc.c"]
|
[[%skeleton "yacc.c"]
|
||||||
AT_GRAM])
|
AT_GRAM])
|
||||||
|
|
||||||
|
|||||||
@@ -269,6 +269,7 @@ print <<EOF;
|
|||||||
%error-verbose
|
%error-verbose
|
||||||
%debug
|
%debug
|
||||||
%{
|
%{
|
||||||
|
]AT_DATA_SOURCE_PROLOGUE[
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
@@ -383,7 +384,7 @@ m4_define([AT_DATA_STACK_TORTURE],
|
|||||||
[AT_BISON_OPTION_PUSHDEFS([$2])
|
[AT_BISON_OPTION_PUSHDEFS([$2])
|
||||||
# A grammar of parens growing the stack thanks to right recursion.
|
# A grammar of parens growing the stack thanks to right recursion.
|
||||||
# exp:
|
# exp:
|
||||||
AT_DATA([input.y],
|
AT_DATA_GRAMMAR([input.y],
|
||||||
[[%{
|
[[%{
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user