diff --git a/examples/c/lexcalc/parse.y b/examples/c/lexcalc/parse.y index 5306de30..f2f29df1 100644 --- a/examples/c/lexcalc/parse.y +++ b/examples/c/lexcalc/parse.y @@ -86,9 +86,8 @@ void yyerror(int *nerrs, const char *msg) int main (void) { int nerrs = 0; - // Enable parser runtime debugging. - if (!!getenv ("YYDEBUG")) - yydebug = 1; + // Possibly enable parser runtime debugging. + yydebug = !!getenv ("YYDEBUG"); yyparse (&nerrs); // Exit on failure if there were errors. return !!nerrs;