* 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

@@ -1,6 +1,8 @@
2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
Fix problems reported by twlevo@xs4all.nl.
* tests/glr-regression.at (Improper merging of GLR delayed action
sets): Declare yylex before using it.
* tests/Makefile.am (maintainer-check-g++): Fix a stray
$(GXX) that escaped the renaming of GXX to CXX. Remove bogus
test for valgrind; valgrind is independent of g++.

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