From: Sebastian B. <sb...@us...> - 2014-01-19 18:45:56
|
Update of /cvsroot/simplemail/simplemail In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24216 Modified Files: index_external.c Log Message: Added a new field for restricting the length of searched strings. It is not used yet. Index: index_external.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/index_external.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- index_external.c 19 Jan 2014 18:45:31 -0000 1.36 +++ index_external.c 19 Jan 2014 18:45:54 -0000 1.37 @@ -79,6 +79,12 @@ /** Identifies the block for the root node. TODO: Make this persistent */ int root_node; + /** + * Defines the maximum length for which a substring search is accurate. + * Searches with longer substring will shorten the substring to this length. + */ + int max_substring_len; + bnode *tmp; bnode *tmp2; bnode *tmp3; @@ -704,6 +710,7 @@ idx->tmp->leaf = 1; idx->root_node = bnode_add_block(idx, idx->tmp); + idx->max_substring_len = 32; return &idx->index; bailout: |