X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/07a6e87d46f32a8248c2160ddd2345333f1c84b4..3c5362b825a9d01eafe257943b7faad92ea43a05:/etc/bench.pl.in diff --git a/etc/bench.pl.in b/etc/bench.pl.in index b6143c08..cfa055d3 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -1,6 +1,6 @@ #! /usr/bin/perl -w -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2009 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) { @@ -891,7 +896,7 @@ sub bench_push_parser () qw( [ %d api.pure ] & - [ %d api.push_pull=both ] + [ %d api.push-pull=both ] )); }