diff -r 1f72fb9af87e -r f49f8a7060aa src/tree.c --- a/src/tree.c Sat Oct 05 14:22:42 2024 +0200 +++ b/src/tree.c Sat Oct 05 14:42:14 2024 +0200 @@ -900,7 +900,15 @@ return visitor.depth; } -void cxTreeRemove(CxTree *tree, void *node) { +int cxTreeRemove(CxTree *tree, void *node) { + if (node == tree->root) return 1; + + + + return 0; +} + +void cxTreeRemoveSubtree(CxTree *tree, void *node) { if (node == tree->root) { tree->root = NULL; tree->size = 0;