X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/70986d84bc674b0fbd9a4dcf5ee192e2cec364bf..544b863511c3cb996d05ccabdbf6be92b36c9b68:/data/lalr1.cc diff --git a/data/lalr1.cc b/data/lalr1.cc index 4179deaf..99b8e9e8 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -157,6 +157,8 @@ dnl FIXME: This is wrong, we want computed header guards. b4_variant_define b4_namespace_close])[ +]b4_null_define[ + /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG ]b4_parse_trace_if([1], [0])[ @@ -713,7 +715,7 @@ m4_popdef([b4_at_dollar])])dnl location values to have been already stored, initialize these stacks with a primary value. */ yystack_ = stack_type (0); - yypush_ (0, 0, yyla); + yypush_ (YY_NULL, 0, yyla); // A new symbol was pushed on the stack. yynewstate: @@ -851,14 +853,14 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param)));])[ // in the debug trace, it's possibly junk. Hence yymsg = 0. // Besides, that keeps exactly the same traces as with the other // Bison skeletons. - yy_destroy_ (0, yystack_[i]);]])[ + yy_destroy_ (YY_NULL, yystack_[i]);]])[ yypop_ (yylen); yylen = 0; YY_STACK_PRINT (); /* Shift the result of the reduction. */ - yypush_ (0, yylhs); + yypush_ (YY_NULL, yylhs); goto yynewstate; /*--------------------------------------. @@ -1056,7 +1058,7 @@ b4_error_verbose_if([state_type yystate, int yytoken], } } - char const* yyformat = 0; + char const* yyformat = YY_NULL; switch (yycount) { #define YYCASE_(N, S) \