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 } |