diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-15 05:12:58 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-15 05:12:58 -0500 |
| commit | 3e9426452656267dec8544a4517208b90849e6c3 (patch) | |
| tree | c0d70d154b3e0c0b103886008808fb5646832f93 | |
| parent | be07191d42be1cd88377a5ab7fe927c87f2e874e (diff) | |
| download | alftools-3e9426452656267dec8544a4517208b90849e6c3.tar.gz | |
alf: improve -vv (ASCII art), probably not touching this again.
| -rw-r--r-- | src/crunch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crunch.c b/src/crunch.c index 2027f46..6f5dad6 100644 --- a/src/crunch.c +++ b/src/crunch.c @@ -60,9 +60,10 @@ void indent(int level) { int i; if(!level) return; - fputs("+-", stdout); - for(i = 1; i < level; i++) - fputs("--", stdout); + for(i = 0; i < level; i++) + fputs("| ", stdout); + + fputs("`-", stdout); } /* -vv */ @@ -124,6 +125,7 @@ void dump_tokens(void) { expanded_tok[0] = i; print_tok(i, 0); dump_kids(i, 1); + putchar('\n'); } } |
