]> git.saurik.com Git - bison.git/blobdiff - data/c.m4
%printer: support both yyo and yyoutput.
[bison.git] / data / c.m4
index 14db807b2b72e84463d742e5610f9ea9f757fdf1..e140ade85b340baf834ae9b5f8bcc5b220d461e1 100644 (file)
--- a/data/c.m4
+++ b/data/c.m4
@@ -495,7 +495,8 @@ m4_define_default([b4_yy_symbol_print_generate],
 b4_locations_if([, [[YYLTYPE const * const yylocationp], [yylocationp]]])[]dnl
 m4_ifset([b4_parse_param], [, b4_parse_param]))[
 {
-]b4_parse_param_use([yyoutput], [yylocationp])dnl
+  FILE *yyo = yyoutput;
+]b4_parse_param_use([yyo], [yylocationp])dnl
 [  if (!yyvaluep)
     return;]
 dnl glr.c does not feature yytoknum.