[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/22] cex: fix traces: add missing end-of-lines
From: |
Akim Demaille |
Subject: |
[PATCH 10/22] cex: fix traces: add missing end-of-lines |
Date: |
Sat, 23 Jan 2021 15:55:49 +0100 |
In 430ca0fc632f5e8072fe468b8a99c640985f6926, I completely forgot that
`puts` adds a `\n`.
* src/lssi.c, src/state-item.c: Restore missing end-of-lines in the
output.
---
src/lssi.c | 4 ++--
src/state-item.c | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/lssi.c b/src/lssi.c
index 8c26ade0f..44dd819be 100644
--- a/src/lssi.c
+++ b/src/lssi.c
@@ -111,7 +111,7 @@ lssi_print (lssi *l)
symbol_number sin;
BITSET_FOR_EACH (biter, l->lookahead, sin, 0)
fprintf (out, "%s, \n", symbols[sin]->tag);
- fprintf (out, "}");
+ fprintf (out, "}\n");
}
}
#endif
@@ -253,7 +253,7 @@ shortest_path_from_start (state_item_number target,
symbol_number next_sym)
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);
const void *sip;
while (gl_list_iterator_next (&it, &sip, NULL))
diff --git a/src/state-item.c b/src/state-item.c
index 5080a4c89..5ca9795ad 100644
--- a/src/state-item.c
+++ b/src/state-item.c
@@ -499,9 +499,10 @@ state_items_report (FILE *out)
if (SI_DISABLED (j))
{
item_print (si->item, NULL, out);
- fputs (" DISABLED", out);
+ fputs (" DISABLED\n", out);
continue;
}
+ putc ('\n', out);
if (si->trans >= 0)
{
fputs (" -> ", out);
@@ -524,6 +525,7 @@ state_items_report (FILE *out)
}
}
}
+ putc ('\n', out);
}
}
fprintf (out, "FIRSTS\n");
@@ -535,7 +537,7 @@ state_items_report (FILE *out)
BITSET_FOR_EACH (iter, FIRSTS (i), j, 0)
fprintf (out, " %s\n", symbols[j]->tag);
}
- fputc ('\n', out);
+ fputs ("\n\n", out);
}
void
--
2.30.0
- [PATCH 00/22] maint: prepare 3.7.5, Akim Demaille, 2021/01/23
- [PATCH 01/22] c: adjust _Noreturn to pedantic clang, Akim Demaille, 2021/01/23
- [PATCH 02/22] autoconf: update, Akim Demaille, 2021/01/23
- [PATCH 03/22] examples: avoid "unbound variable" errors, Akim Demaille, 2021/01/23
- [PATCH 04/22] c++: use noexcept where appropriate, Akim Demaille, 2021/01/23
- [PATCH 05/22] tables: avoid warnings and save bits, Akim Demaille, 2021/01/23
- [PATCH 06/22] glr.cc: don't "leak" yyparse, Akim Demaille, 2021/01/23
- [PATCH 07/22] c++: I'm tired of Flex's warnings, Akim Demaille, 2021/01/23
- [PATCH 08/22] cex: send traces to stderr, not stdout, Akim Demaille, 2021/01/23
- [PATCH 09/22] cex: add support for $TIME_LIMIT, Akim Demaille, 2021/01/23
- [PATCH 10/22] cex: fix traces: add missing end-of-lines,
Akim Demaille <=
- [PATCH 11/22] cex: fix traces: fix display of disabled items, Akim Demaille, 2021/01/23
- [PATCH 12/22] package: codespell, Akim Demaille, 2021/01/23
- [PATCH 13/22] style: YYUSE is private, make it YY_USE, Akim Demaille, 2021/01/23
- [PATCH 14/22] skeletons: introduce "slot"s for symbols, Akim Demaille, 2021/01/23
- [PATCH 15/22] %merge: clearer tests on diagnostics, Akim Demaille, 2021/01/23
- [PATCH 16/22] %merge: let mergers record a typing-symbol, rather than a type, Akim Demaille, 2021/01/23
- [PATCH 17/22] %merge: delegate the generation of calls to mergers to m4, Akim Demaille, 2021/01/23
- [PATCH 18/22] %merge: fix compatibility with api.value.type=union, Akim Demaille, 2021/01/23
- [PATCH 19/22] %merge: associate it to its first definition, not the latest, Akim Demaille, 2021/01/23
- [PATCH 20/22] package: bump copyrights to 2021, Akim Demaille, 2021/01/23