X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/771dc643242bf582944be05d2d3566aac21887d5..bcbbf654863dd285b176a0f54a75a28c4bdac1d3:/data/lalr1.cc diff --git a/data/lalr1.cc b/data/lalr1.cc index 5e83ee32..17a8f22c 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -298,25 +298,8 @@ m4_if(b4_prefix, [yy], [], # endif #endif -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - #define YYRHSLOC(Rhs, K) ((Rhs)[K]) -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (N) \ - { \ - (Current).begin = YYRHSLOC (Rhs, 1).begin; \ - (Current).end = YYRHSLOC (Rhs, N).end; \ - } \ - else \ - { \ - (Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \ - } \ - while (false) -#endif +]b4_yylloc_default_define[ /* Suppress unused-variable warnings by "using" E. */ #define YYUSE(e) ((void) (e))