From: Sebastian B. <sb...@us...> - 2014-01-19 18:30:34
|
Update of /cvsroot/simplemail/simplemail In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22361 Modified Files: index_external.c Log Message: Added debugging method to dump the children of a node. Index: index_external.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/index_external.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- index_external.c 19 Jan 2014 18:30:10 -0000 1.9 +++ index_external.c 19 Jan 2014 18:30:32 -0000 1.10 @@ -263,6 +263,20 @@ } /** + * Dump the children of the given nodes. + */ +static void dump_node_children(struct index_external *idx, bnode *node, const char *prefix) +{ + int i; + printf("%s: ", prefix, node->lchild); + for (i=0;i<node->num_elements;i++) + { + printf("%d ",bnode_get_ith_element_of_node(idx, node, i)->gchild); + } + printf("\n"); +} + +/** * Inserts the given string into the bnode tree. * * @param idx |