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: http://review.tizen.org/git/?a=commitdiff_plain;h=60c8294801d179c1b038f1be3e45c8d5935c5240;p=platform%2Fupstream%2Fbison.git (b4_symbol_actions): Don't assume %union was used. --- diff --git a/data/c.m4 b/data/c.m4 index a72f059..c651f62 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])