X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/bc82c5a5938c88f921dc2ce1f4edb06c4097e966..e62f1a899168bdf1658dd6d934dea407491a80ff:/data/glr.c diff --git a/data/glr.c b/data/glr.c index bed15214..0a0638a3 100644 --- a/data/glr.c +++ b/data/glr.c @@ -429,17 +429,17 @@ static const ]b4_int_type_for([b4_stos])[ yystos[] = do \ if (N) \ { \ - (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ - YYRHSLOC(Rhs, 0).last_line; \ + YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ - YYRHSLOC(Rhs, 0).last_column; \ + YYRHSLOC (Rhs, 0).last_column; \ } \ while (0) @@ -536,10 +536,6 @@ int yydebug; SIZE_MAX < YYMAXDEPTH * sizeof (GLRStackItem) evaluated with infinite-precision integer arithmetic. */ -#if YYMAXDEPTH == 0 -# undef YYMAXDEPTH -#endif - #ifndef YYMAXDEPTH # define YYMAXDEPTH ]b4_stack_depth_max[ #endif @@ -741,6 +737,7 @@ yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp, switch (yyn) { b4_actions + default: break; } return yyok;