From: Joel E. Denny Date: Fri, 6 Jan 2006 20:09:31 +0000 (+0000) Subject: * data/c.m4 (b4_yy_symbol_print_generate): In yy_symbol_print, accept X-Git-Tag: v2.3b~505 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/05449a2c1b09dec9d032cc39b2fc155572d893ce?hp=fd2493f7c4e37b2fc22f6a22f6d829705b1ae377 * data/c.m4 (b4_yy_symbol_print_generate): In yy_symbol_print, accept !yyvaluep as signal that no semantic value is available to print. * data/glr.c (yydestroyGLRState): If state is not resolved, don't try to print a semantic value. --- diff --git a/ChangeLog b/ChangeLog index 6617ca08..dfdb3529 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-06 Joel E. Denny + + * data/c.m4 (b4_yy_symbol_print_generate): In yy_symbol_print, accept + !yyvaluep as signal that no semantic value is available to print. + * data/glr.c (yydestroyGLRState): If state is not resolved, don't try + to print a semantic value. + 2006-01-06 Joel E. Denny * tests/glr-regression.at: For consistency with my newer test cases, diff --git a/data/c.m4 b/data/c.m4 index c4942555..630fdebd 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -464,7 +464,8 @@ m4_define_default([b4_yy_symbol_print_generate], b4_location_if([, [[const YYLTYPE * const yylocationp], [yylocationp]]])[]dnl m4_ifset([b4_parse_param], [, b4_parse_param]))[ { - YYUSE (yyvaluep); + if (!yyvaluep) + return; ]b4_location_if([ YYUSE (yylocationp); ])dnl b4_parse_param_use[]dnl diff --git a/data/glr.c b/data/glr.c index 975ec578..e488f7c9 100644 --- a/data/glr.c +++ b/data/glr.c @@ -973,7 +973,7 @@ yydestroyGLRState (char const *yymsg, yyGLRState *yys]b4_user_formals[) { YYFPRINTF (stderr, "%s unresolved ", yymsg); yy_symbol_print (stderr, yystos[yys->yylrState], - &yys->yysemantics.yysval]b4_location_if([, &yys->yyloc])[]b4_user_args[); + NULL]b4_location_if([, &yys->yyloc])[]b4_user_args[); YYFPRINTF (stderr, "\n"); } #endif