X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fa6aa7b3dde4c57dfceb389d6b36c1c49265ad98..d11ee647c32a0216902e8b4da5d9501c0fbc6d11:/data/yacc.c?ds=sidebyside diff --git a/data/yacc.c b/data/yacc.c index 19f77a5f..9f54c3a7 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -114,7 +114,7 @@ m4_define([b4_int_type], # -------------------- # Expansion of $$. m4_define([b4_lhs_value], -[(yyval[]m4_ifval([$1], [.$1]))]) +[b4_symbol_value(yyval, [$1])]) # b4_rhs_value(RULE-LENGTH, NUM, [TYPE]) @@ -122,7 +122,7 @@ m4_define([b4_lhs_value], # Expansion of $NUM, where the current rule has RULE-LENGTH # symbols on RHS. m4_define([b4_rhs_value], -[(yyvsp@{($2) - ($1)@}m4_ifval([$3], [.$3]))]) +[b4_symbol_value([yyvsp@{($2) - ($1)@}], [$3])])