src/tree.c

changeset 1109
89ec23988b88
parent 1108
c3bde8ff1c0b
equal deleted inserted replaced
1108:c3bde8ff1c0b 1109:89ec23988b88
842 tree->size = 0; 842 tree->size = 0;
843 843
844 return tree; 844 return tree;
845 } 845 }
846 846
847 void cxTreeFree(CxTree *tree) {
848 if (tree == NULL) return;
849 if (tree->root != NULL) {
850 cxTreeClear(tree);
851 }
852 cxFree(tree->allocator, tree);
853 }
854
847 CxTree *cxTreeCreateWrapped( 855 CxTree *cxTreeCreateWrapped(
848 const CxAllocator *allocator, 856 const CxAllocator *allocator,
849 void *root, 857 void *root,
850 ptrdiff_t loc_parent, 858 ptrdiff_t loc_parent,
851 ptrdiff_t loc_children, 859 ptrdiff_t loc_children,

mercurial