int count = 0;
int j;
for (j = m; j < n; j++)
- if (BITISSET (LA (m), j))
+ if (BITISSET (LA (j), i))
count++;
if (count >= 2)
if (expected_conflicts != -1 && !src_ok)
{
- complain_message_count++;
+ /* FIXME: BIG ATTROCIOUS HACK. For flames, complaints and so
+ on, see Bruno Haible. GNU Gettext's plural.y's %expect is
+ wrong, and newer Bison reject it. But then, Bruno will be
+ overwhelmed by bug reports, until a fixed Gettext is
+ released. So for the 1.3x generation only, we leave a puke
+ puke hack. */
+ if (!strsuffix (infile, "plural.y"))
+ complain_message_count++;
fprintf (stderr, ngettext ("expected %d shift/reduce conflict\n",
"expected %d shift/reduce conflicts\n",
expected_conflicts),
print_reductions (FILE *out, int state)
{
int i;
- int j;
int m;
int n;
shifts *shiftp;
}
else if (n - m >= 1)
{
- int k;
-
int cmax = 0;
int default_LA = -1;
int default_rule = 0;
for (i = m; i < n; i++)
{
int count = 0;
+ int j, k;
for (k = 0; k < tokensetsize; ++k)
lookaheadset[k] = LA (i)[k] & ~shiftset[k];
for (i = 0; i < ntokens; i++)
{
+ int j;
int defaulted = 0;
int count = BITISSET (shiftset, i);
for (j = m; j < n; j++)
{
- if (BITISSET (LA (m), j))
+ if (BITISSET (LA (j), i))
{
if (count == 0)
{