mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* tests/glr-regression.at (Improper merging of GLR delayed action
sets): Declare yylex before using it.
This commit is contained in:
@@ -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++.
|
||||
|
||||
@@ -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