From: Paul Eggert Date: Thu, 22 Jul 2004 14:39:03 +0000 (+0000) Subject: (b4_symbol_actions): Don't assume %union was used. X-Git-Tag: BISON-2_0~133 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/60c8294801d179c1b038f1be3e45c8d5935c5240?ds=sidebyside (b4_symbol_actions): Don't assume %union was used. --- diff --git a/data/c.m4 b/data/c.m4 index a72f059a..c651f62c 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -327,7 +327,8 @@ m4_define([b4_syncline], # SYMBOL-ACTION, SYMBOL-TYPENAME) # ------------------------------------------------- m4_define([b4_symbol_actions], -[m4_pushdef([b4_dollar_dollar], [yyvaluep->$6])dnl +[m4_pushdef([b4_dollar_dollar], + [m4_ifval([$6], [(yyvaluep->$6)], [(*yyvaluep)])])dnl m4_pushdef([b4_at_dollar], [(*yylocationp)])dnl case $4: /* $3 */ b4_syncline([$2], [$1])