* tests/glr-regression.at (Improper merging of GLR delayed action

sets): Declare yylex before using it.
This commit is contained in:
Paul Eggert
2005-07-14 21:42:40 +00:00
parent a22ff96f32
commit 1beb0b24f3
2 changed files with 4 additions and 1 deletions

View File

@@ -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'];