* data/lalr1.cc (YYCDEBUG): Use 'if (yydebug_) (*yycdebug_)'

rather than a for-loop that declares a local bool variable.
This commit is contained in:
Paul Eggert
2006-07-12 18:01:19 +00:00
parent a5d80ba505
commit db7e5eb5ef
2 changed files with 12 additions and 4 deletions

View File

@@ -336,9 +336,7 @@ b4_defines_if([
#define YYUSE(e) ((void) (e))
/* A pseudo ostream that takes yydebug_ into account. */
# define YYCDEBUG \
for (bool yydebugcond_ = yydebug_; yydebugcond_; yydebugcond_ = false) \
(*yycdebug_)
# define YYCDEBUG if (yydebug_) (*yycdebug_)
/* Enable debugging if requested. */
#if YYDEBUG