src/tree.c

changeset 908
f49f8a7060aa
parent 907
1f72fb9af87e
child 909
f4e00bb3f3b2
equal deleted inserted replaced
907:1f72fb9af87e 908:f49f8a7060aa
898 cxIteratorNext(visitor); 898 cxIteratorNext(visitor);
899 } 899 }
900 return visitor.depth; 900 return visitor.depth;
901 } 901 }
902 902
903 void cxTreeRemove(CxTree *tree, void *node) { 903 int cxTreeRemove(CxTree *tree, void *node) {
904 if (node == tree->root) return 1;
905
906
907
908 return 0;
909 }
910
911 void cxTreeRemoveSubtree(CxTree *tree, void *node) {
904 if (node == tree->root) { 912 if (node == tree->root) {
905 tree->root = NULL; 913 tree->root = NULL;
906 tree->size = 0; 914 tree->size = 0;
907 return; 915 return;
908 } 916 }

mercurial