[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] glr: better use of tracing macros
From: |
Akim Demaille |
Subject: |
[PATCH 4/7] glr: better use of tracing macros |
Date: |
Thu, 19 Sep 2013 16:26:04 +0200 |
* 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 ff70890..bd13233 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
--
1.8.4
- [PATCH 0/7] {maint} minor issues, Akim Demaille, 2013/09/19
- [PATCH 1/7] tests: remove stray debugging traces, Akim Demaille, 2013/09/19
- [PATCH 3/7] examples: improve the output of the "variant" example, Akim Demaille, 2013/09/19
- [PATCH 4/7] glr: better use of tracing macros,
Akim Demaille <=
- [PATCH 6/7] glr: shorten scopes, Akim Demaille, 2013/09/19
- [PATCH 2/7] variant: remove useless assertion, Akim Demaille, 2013/09/19
- [PATCH 7/7] glr: more assertions, Akim Demaille, 2013/09/19
- [PATCH 5/7] glr: formatting changes, Akim Demaille, 2013/09/19