]> git.saurik.com Git - bison.git/commitdiff
glr: better use of tracing macros
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 19 Sep 2013 12:58:57 +0000 (14:58 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 19 Sep 2013 13:57:59 +0000 (15:57 +0200)
* data/glr.c (yydestroyGLRState): Use YY_SYMBOL_PRINT instead of
yy_symbol_print.

data/glr.c

index ff70890f334f6b739e94d09d82004ae438ee099f..bd132333443d621a1ed6977a62b0b070a1443181 100644 (file)
@@ -836,12 +836,10 @@ yydestroyGLRState (char const *yymsg, yyGLRState *yys]b4_user_formals[)
       if (yydebug)
         {
           if (yys->yysemantics.yyfirstVal)
-            YYFPRINTF (stderr, "%s unresolved ", yymsg);
+            YYFPRINTF (stderr, "%s unresolved", yymsg);
           else
-            YYFPRINTF (stderr, "%s incomplete ", yymsg);
-          yy_symbol_print (stderr, yystos[yys->yylrState],
-                           YY_NULL]b4_locuser_args([&yys->yyloc])[);
-          YYFPRINTF (stderr, "\n");
+            YYFPRINTF (stderr, "%s incomplete", yymsg);
+          YY_SYMBOL_PRINT ("", yystos[yys->yylrState], YY_NULL, &yys->yyloc);
         }
 #endif