43 *
this = node = new_node =
new(Tree, search);
51 while (NULL != node) {
52 comparison =
comp(node->data, search);
72 if (0 == comparison) {
81 node->left =
new(Tree, search);
85 node->right =
new(Tree, search);
149 return new_node->data;
#define TREE_PARENT(node)
static int comp(const void *_a, const void *_b)
void treeRotateRight(Tree *, Tree)
int(* TreeComp)(const void *, const void *)
void treeRotateLeft(Tree *, Tree)
#define TREE_GRANDPARENT(node)
void * treeInsert(Tree *this, const void *search, TreeComp comp)