diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-15 18:09:00 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-15 20:03:45 +0100 |
commit | 05b5d8547f5f98ca4b907bf6a21564e2384740a6 (patch) | |
tree | d1a5c0a856f938721b92076e328ef22647fcaddb /trie.inc.h | |
parent | Add toggle for node data output. (diff) | |
download | calp-05b5d8547f5f98ca4b907bf6a21564e2384740a6.tar.gz calp-05b5d8547f5f98ca4b907bf6a21564e2384740a6.tar.xz |
Improve FOR macro.
Diffstat (limited to '')
-rw-r--r-- | trie.inc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |