X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6721294104e47dd932e755d4d5352407859a4663..d397d9f08cc963c5b90ce62549498b82bf499cc1:/etc/bench.pl.in diff --git a/etc/bench.pl.in b/etc/bench.pl.in index 2290fd28..b6fd1ced 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -1,6 +1,6 @@ #! /usr/bin/perl -w -# Copyright (C) 2006, 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. # # This file is part of Bison, the GNU Compiler Compiler. # @@ -246,7 +246,6 @@ sub generate_grammar_triangular ($$@) or die; print $out < #include @@ -318,7 +317,9 @@ yyerror (const char *msg) int main (void) { +#if YYDEBUG yydebug = !!getenv ("YYDEBUG"); +#endif return yyparse (); } EOF @@ -543,6 +544,10 @@ main (int argc, const char **argv) int count = 0; int status; +#if YYDEBUG + yydebug = !!getenv ("YYDEBUG"); +#endif + input = fopen ("calc.input", "r"); if (!input) {