74
74
static void rb_delete_fixup(TREE *tree,TREE_ELEMENT ***parent);
77
void init_tree(TREE *tree, ulong default_alloc_size, ulong memory_limit,
77
void init_tree(TREE *tree, uint32_t default_alloc_size, uint32_t memory_limit,
78
78
int size, qsort_cmp2 compare, bool with_delete,
79
79
tree_element_free free_element, void *custom_arg)
81
81
if (default_alloc_size < DEFAULT_ALLOC_SIZE)
82
82
default_alloc_size= DEFAULT_ALLOC_SIZE;
83
83
default_alloc_size= MY_ALIGN(default_alloc_size, DEFAULT_ALIGN_SIZE);
85
85
tree->root= &tree->null_element;
87
87
tree->size_of_element=size > 0 ? (uint) size : 0;