mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +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:
@@ -56,6 +56,7 @@ AT_DATA_GRAMMAR([input.y],
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#define YYERROR_VERBOSE 1
|
||||
]AT_YYERROR_DEFINE[
|
||||
@@ -66,8 +67,7 @@ static int
|
||||
yylex (void)
|
||||
{
|
||||
static size_t toknum;
|
||||
if (! (toknum <= strlen (input)))
|
||||
abort ();
|
||||
assert (toknum <= strlen (input));
|
||||
return input[toknum++];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user