From 3afe18fd1fdc467e6662158275c5d8c3b7121e83 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 19 Sep 2013 14:58:57 +0200 Subject: [PATCH] glr: better use of tracing macros * data/glr.c (yydestroyGLRState): Use YY_SYMBOL_PRINT instead of yy_symbol_print. --- data/glr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/data/glr.c b/data/glr.c index ff70890f..bd132333 100644 --- a/data/glr.c +++ b/data/glr.c @@ -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 -- 2.47.2