aboutsummaryrefslogtreecommitdiff
path: root/trie.inc.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 18:09:00 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 20:03:45 +0100
commit05b5d8547f5f98ca4b907bf6a21564e2384740a6 (patch)
treed1a5c0a856f938721b92076e328ef22647fcaddb /trie.inc.h
parentAdd toggle for node data output. (diff)
downloadcalp-05b5d8547f5f98ca4b907bf6a21564e2384740a6.tar.gz
calp-05b5d8547f5f98ca4b907bf6a21564e2384740a6.tar.xz
Improve FOR macro.
Diffstat (limited to 'trie.inc.h')
-rw-r--r--trie.inc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/trie.inc.h b/trie.inc.h
index c03cee22..3ac9acac 100644
--- a/trie.inc.h
+++ b/trie.inc.h
@@ -137,7 +137,8 @@ FMT_F(TRIE_NODE(TYPE)) {
if (n == NULL) { fmtf("\n"); }
while (n != NULL) {
fmtf("|");
- FOR(int, i, depth) fmtf(" ");
+ // FOR(int, i, depth) fmtf(" ");
+ for (int i = 0; i < depth; i++) fmtf(" ");
fmtf("%c ", n->c == '\0' ? '0' : n->c);
if (n->value != NULL) {
seek += FMT(TYPE)(n->value, buf + seek);