diff options
author | pgen <p.gen.progs@gmail.com> | 2018-10-08 19:31:57 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2018-10-08 19:31:57 +0200 |
commit | 7ec39d7df253dd6f7dc92854e5582949dfa823a5 (patch) | |
tree | 1f83249dc7b6282d0411bbb958bd0d56908a5e0a /index.c | |
parent | 952504585c8e67a59114cbc68153ce46140aff5d (diff) |
Add/improve comments, reformat and clarify code
Diffstat (limited to 'index.c')
-rw-r--r-- | index.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |