mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
cex: fix traces
In 430ca0fc63, I completely forgot that
`puts` adds a `\n`.
* src/lssi.c, src/state-item.c: Restore missing end-of-lines in the
output.
This commit is contained in:
@@ -111,7 +111,7 @@ lssi_print (lssi *l)
|
|||||||
symbol_number sin;
|
symbol_number sin;
|
||||||
BITSET_FOR_EACH (biter, l->lookahead, sin, 0)
|
BITSET_FOR_EACH (biter, l->lookahead, sin, 0)
|
||||||
fprintf (out, "%s, \n", symbols[sin]->tag);
|
fprintf (out, "%s, \n", symbols[sin]->tag);
|
||||||
fprintf (out, "}");
|
fprintf (out, "}\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -253,7 +253,7 @@ shortest_path_from_start (state_item_number target, symbol_number next_sym)
|
|||||||
|
|
||||||
if (trace_flag & trace_cex)
|
if (trace_flag & trace_cex)
|
||||||
{
|
{
|
||||||
fputs ("REDUCE ITEM PATH:", stderr);
|
fputs ("REDUCE ITEM PATH:\n", stderr);
|
||||||
gl_list_iterator_t it = gl_list_iterator (res);
|
gl_list_iterator_t it = gl_list_iterator (res);
|
||||||
const void *sip;
|
const void *sip;
|
||||||
while (gl_list_iterator_next (&it, &sip, NULL))
|
while (gl_list_iterator_next (&it, &sip, NULL))
|
||||||
|
|||||||
@@ -505,9 +505,10 @@ state_items_report (FILE *out)
|
|||||||
if (SI_DISABLED (j))
|
if (SI_DISABLED (j))
|
||||||
{
|
{
|
||||||
item_print (si->item, NULL, out);
|
item_print (si->item, NULL, out);
|
||||||
fputs (" DISABLED", out);
|
fputs (" DISABLED\n", out);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
putc ('\n', out);
|
||||||
if (si->trans >= 0)
|
if (si->trans >= 0)
|
||||||
{
|
{
|
||||||
fputs (" -> ", out);
|
fputs (" -> ", out);
|
||||||
@@ -530,6 +531,7 @@ state_items_report (FILE *out)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
putc ('\n', out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf (out, "FIRSTS\n");
|
fprintf (out, "FIRSTS\n");
|
||||||
@@ -541,7 +543,7 @@ state_items_report (FILE *out)
|
|||||||
BITSET_FOR_EACH (iter, FIRSTS (i), j, 0)
|
BITSET_FOR_EACH (iter, FIRSTS (i), j, 0)
|
||||||
fprintf (out, " %s\n", symbols[j]->tag);
|
fprintf (out, " %s\n", symbols[j]->tag);
|
||||||
}
|
}
|
||||||
fputc ('\n', out);
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user