mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
Merge remote-tracking branch 'origin/maint'
* origin/maint: tests: do not output m4 set up. tests: use the generic yyerror function. tests: use assert instead of plain abort. tests: improve the generic yylex implementation. tests: generalize the compilation macros. tests: fix confusion between api.prefix and name-prefix. maint: gitignores. yacc: work around the ylwrap limitation. Conflicts: NEWS tests/local.at
This commit is contained in:
@@ -41,7 +41,7 @@ program: 'x';
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-o input.c input.y])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([input.o])
|
||||
AT_COMPILE([input.o], [-DYYDEBUG -c input.c])
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -71,7 +71,7 @@ program: { $$ = ""; };
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-o input.c input.y])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([input.o])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -111,7 +111,7 @@ exp: MY_TOKEN;
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-y -o input.c input.y])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([input.o])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -156,7 +156,7 @@ exp: MY_TOKEN;
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-o input.c input.y])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([input.o])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -527,7 +527,7 @@ exp:
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-o input.c input.y])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([input.o])
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
@@ -901,6 +901,7 @@ yyparse ()
|
||||
}
|
||||
])
|
||||
|
||||
#include <assert.h>
|
||||
static int
|
||||
yylex (AT_LALR1_CC_IF([int *lval], [void]))
|
||||
[{
|
||||
@@ -910,8 +911,7 @@ yylex (AT_LALR1_CC_IF([int *lval], [void]))
|
||||
};
|
||||
static size_t toknum;
|
||||
]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC. */])[
|
||||
if (! (toknum < sizeof tokens / sizeof *tokens))
|
||||
abort ();
|
||||
assert (toknum < sizeof tokens / sizeof *tokens);
|
||||
return tokens[toknum++];
|
||||
}]
|
||||
|
||||
@@ -986,6 +986,7 @@ yyparse ()
|
||||
}
|
||||
])[
|
||||
|
||||
#include <assert.h>
|
||||
static int
|
||||
yylex (]AT_LALR1_CC_IF([int *lval], [void])[)
|
||||
{
|
||||
@@ -995,8 +996,7 @@ yylex (]AT_LALR1_CC_IF([int *lval], [void])[)
|
||||
};
|
||||
static size_t toknum;
|
||||
]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC. */])[
|
||||
if (! (toknum < sizeof tokens / sizeof *tokens))
|
||||
abort ();
|
||||
assert (toknum < sizeof tokens / sizeof *tokens);
|
||||
return tokens[toknum++];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user