summaryrefslogtreecommitdiffstats
path: root/index.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-10-08 19:31:57 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-08 19:31:57 +0200
commit7ec39d7df253dd6f7dc92854e5582949dfa823a5 (patch)
tree1f83249dc7b6282d0411bbb958bd0d56908a5e0a /index.c
parent952504585c8e67a59114cbc68153ce46140aff5d (diff)
Add/improve comments, reformat and clarify code
Diffstat (limited to 'index.c')
-rw-r--r--index.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.c b/index.c
index 6a58b3c..e021b29 100644
--- a/index.c
+++ b/index.c
@@ -3,6 +3,7 @@
/* Inspired by: https://www.cs.princeton.edu/~rs/strings/tstdemo.c */
/* *************************************************************** */
+#include <stdlib.h>
#include <unistd.h>
#include <wchar.h>
#include <string.h>
@@ -47,7 +48,6 @@ tst_insert(tst_node_t * p, wchar_t * w, void * data)
return (p);
}
-#if 0 /* here for coherency but not used. */
/* ===================================== */
/* Ternary search tree deletion function */
/* user data area not cleaned */
@@ -64,7 +64,6 @@ tst_cleanup(tst_node_t * p)
free(p);
}
}
-#endif
/* ========================================================== */
/* Recursive traversal of a ternary tree. A callback function */