aboutsummaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorMarvin Borner2023-04-14 18:02:02 +0200
committerMarvin Borner2023-04-14 18:02:02 +0200
commit35702ebb4997f5f1aec25ba1c9ba257f352ea493 (patch)
treee3dd9e543a3344cba23e48dc6bf903d65bc7e2a3 /src/print.c
parent43996255f614ac57deb2fc0666f221853c60b343 (diff)
pqueue lib and fixes
this makes everything dramatically faster
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c
index d6636c5..ddbb730 100644
--- a/src/print.c
+++ b/src/print.c
@@ -56,11 +56,14 @@ void print_blc(struct term *term)
void print_bloc(struct bloc_parsed *bloc)
{
printf("\n=== START BLOC ===\n");
- printf("| number of entries: %ld\n", bloc->length);
- for (size_t i = 0; i < bloc->length; i++) {
- printf("| entry %ld: ", i);
+ printf("| entries:\t%ld\n", bloc->length);
+ for (size_t i = 0; i < bloc->length - 1; i++) {
+ printf("| entry %ld:\t", bloc->length - i - 2);
print_bruijn(bloc->entries[i]);
printf("\n");
}
+ printf("| final:\t");
+ print_bruijn(bloc->entries[bloc->length - 1]);
+ printf("\n");
printf("=== END BLOC ===\n\n");
}