mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 22:03:02 +00:00
* tests/glr-regression.at (Improper merging of GLR delayed action
sets): Declare yylex before using it.
This commit is contained in:
@@ -239,6 +239,7 @@ AT_DATA_GRAMMAR([glr-regr3.y],
|
||||
|
||||
static int MergeRule (int x0, int x1);
|
||||
static void yyerror(char const * s);
|
||||
int yylex (void);
|
||||
|
||||
#define RULE(x) (1 << (x))
|
||||
|
||||
@@ -298,7 +299,7 @@ int yylex (void)
|
||||
char inp[3];
|
||||
if (fscanf (yyin, "%2s", inp) == EOF)
|
||||
return 0;
|
||||
switch (inp[0])
|
||||
switch (inp[0])
|
||||
{
|
||||
case 'p': return P[inp[1] - '1'];
|
||||
case 't': return T[inp[1] - '1'];
|
||||
|
||||
Reference in New Issue
Block a user