]> git.saurik.com Git - bison.git/blobdiff - data/c.m4
When yydebug, report semantic and location values for reductions.
[bison.git] / data / c.m4
index 8ee6275f7126e81e95a1a556d799d05c1094d17e..b0221e8ed0c7af9475545b6c9ffff44b68e11f01 100644 (file)
--- a/data/c.m4
+++ b/data/c.m4
@@ -413,10 +413,10 @@ m4_define_default([b4_yysymprint_generate],
 
 ]$1([yysymprint],
     [static void],
-    [[FILE *yyoutput],       [yyoutput]],
-    [[int yytype],           [yytype]],
-    [[YYSTYPE *yyvaluep],    [yyvaluep]][]dnl
-b4_location_if(            [, [[YYLTYPE *yylocationp], [yylocationp]]])[]dnl
+               [[FILE *yyoutput],                       [yyoutput]],
+               [[int yytype],                           [yytype]],
+               [[const YYSTYPE * const yyvaluep],       [yyvaluep]][]dnl
+b4_location_if([, [[const YYLTYPE * const yylocationp], [yylocationp]]])[]dnl
 m4_ifset([b4_parse_param], [, b4_parse_param]))[
 {
   YYUSE (yyvaluep);