]> git.saurik.com Git - bison.git/blobdiff - data/yacc.c
java: fix location handling bug.
[bison.git] / data / yacc.c
index a408b304a733a491784216f9eacd49aa1a2bf4a6..7ff163a2ebfa6aefc38287e54639bead0765baef 100644 (file)
@@ -29,8 +29,8 @@ m4_case(b4_percent_define_get([[api.push-pull]]),
         [push], [m4_define([b4_pull_flag], [[0]])])
 
 # Handle BISON_USE_PUSH_FOR_PULL for the test suite.  So that push parsing
-# tests function as written, don't let BISON_USE_PUSH_FOR_PULL modify Bison's
-# behavior at all when push parsing is already requested.
+# tests function as written, do not let BISON_USE_PUSH_FOR_PULL modify the
+# behavior of Bison at all when push parsing is already requested.
 b4_define_flag_if([use_push_for_pull])
 b4_use_push_for_pull_if([
   b4_push_if([m4_define([b4_use_push_for_pull_flag], [[0]])],
@@ -233,7 +233,7 @@ m4_define([b4_declare_parser_state_variables], [b4_pure_if([[
 m4_changecom()
 m4_divert_push(0)dnl
 @output(b4_parser_file_name@)@
-b4_copyright([Skeleton implementation for Bison's Yacc-like parsers in C],
+b4_copyright([Bison implementation for Yacc-like parsers in C],
              [1984, 1989-1990, 2000-2011])[
 
 /* C LALR(1) parser skeleton written by Richard Stallman, by
@@ -1134,7 +1134,7 @@ yy_lac (yytype_int16 *yyesa, yytype_int16 **yyes,
               }
             *++yyesp = yystate;
           }
-        YYDPRINTF ((stderr, " G%d", *yyesp));
+        YYDPRINTF ((stderr, " G%d", yystate));
       }
     }
 }]])[
@@ -2067,7 +2067,7 @@ yypushreturn:]])[
 ]b4_epilogue
 b4_defines_if(
 [@output(b4_spec_defines_file@)@
-b4_copyright([Skeleton interface for Bison's Yacc-like parsers in C],
+b4_copyright([Bison interface for Yacc-like parsers in C],
              [1984, 1989-1990, 2000-2011])
 
 b4_percent_code_get([[requires]])[]dnl