diff options
author | pgen <p.gen.progs@gmail.com> | 2020-04-24 21:14:59 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-04-24 21:14:59 +0200 |
commit | 7b21190d07debb52b86251908c9cdd37fb84b3d2 (patch) | |
tree | 5ea6746a188d8d08a7bc1a8af135c9b67bd511aa /index.c | |
parent | bcb0c7ccde0393e5453fc2c31cb0baede4e88441 (diff) |
Improve comments
Diffstat (limited to 'index.c')
-rw-r--r-- | index.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -100,9 +100,9 @@ tst_traverse(tst_node_t * p, int (*callback)(void *), int first_call) } /* ======================================================================= */ -/* Traverse the word tst looking for a wchar and build a list of pointers */ -/* containing all the sub-tst * nodes after these node potentially leading */ -/* to words containing the next wchar os the search string */ +/* Traverses the word tst looking for a wchar and build a list of pointers */ +/* containing all the sub-tst potentially leading to words containing the */ +/* next wchar os the search string. */ /* ======================================================================= */ int tst_substring_traverse(tst_node_t * p, int (*callback)(void *), int first_call, @@ -141,11 +141,11 @@ tst_substring_traverse(tst_node_t * p, int (*callback)(void *), int first_call, return !!rc; } -/* ======================================================================= */ -/* Traverse the word tst looking for a wchar and build a list of pointers */ -/* containing all the sub-tst * nodes after these node potentially leading */ -/* to words containing the next wchar os the search string */ -/* ======================================================================= */ +/* ======================================================================== */ +/* Traverses the word tst looking for a wchar and build a list of pointers */ +/* containing all the sub-tst nodes potentially leading to words containing */ +/* the next wchar os the search string. */ +/* ======================================================================== */ int tst_fuzzy_traverse(tst_node_t * p, int (*callback)(void *), int first_call, wchar_t w) @@ -190,9 +190,9 @@ tst_fuzzy_traverse(tst_node_t * p, int (*callback)(void *), int first_call, return !!rc; } -/* ==================================================================== */ -/* Search a complete string in a ternary tree starting from a root node */ -/* ==================================================================== */ +/* ====================================================================== */ +/* Searches a complete string in a ternary tree starting from a root node */ +/* ====================================================================== */ void * tst_search(tst_node_t * root, wchar_t * w) { @@ -217,11 +217,11 @@ tst_search(tst_node_t * root, wchar_t * w) return NULL; } -/* =============================================================== */ -/* Search all strings beginning with the same prefix */ -/* the callback function will be applied to each of theses strings */ -/* returns NULL if no string matched the prefix */ -/* =============================================================== */ +/* ================================================================= */ +/* Searches all strings beginning with the same prefix. */ +/* the callback function will be applied to each of theses strings */ +/* returns NULL if no string matched the prefix */ +/* ================================================================= */ void * tst_prefix_search(tst_node_t * root, wchar_t * w, int (*callback)(void *)) { |