From 1beb0b24f3e7b484dbe3400b56d1d2c0bb60245d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 14 Jul 2005 21:42:40 +0000 Subject: [PATCH] * tests/glr-regression.at (Improper merging of GLR delayed action sets): Declare yylex before using it. --- ChangeLog | 2 ++ tests/glr-regression.at | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dca3af61..2b543983 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2005-07-14 Paul Eggert 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++. diff --git a/tests/glr-regression.at b/tests/glr-regression.at index fd822a18..df27f0a9 100644 --- a/tests/glr-regression.at +++ b/tests/glr-regression.at @@ -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']; -- 2.45.2