mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* data/lalr1.cc (YYCDEBUG): Use 'if (yydebug_) (*yycdebug_)'
rather than a for-loop that declares a local bool variable.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user