73,6 → 73,7 |
|
void mavlnode_destroy(struct mavl *t, struct mavlnode *n); |
struct mavlnode * mavlnode_create(struct mavl *t, const void *data); |
struct mavlnode * mavlnode_get(struct mavl *t ,const void *data); |
|
#define mavlnode_dataptr(node) \ |
((void*)(((char*)((void*)(node))) + sizeof(struct mavlnode))) |
89,6 → 90,8 |
void (*pcb)(char*,struct mavlnode *), int width); |
void * mavl_get(struct mavl *t ,const void *data); |
|
|
|
void mavl_destroy(struct mavl *t); |
|
|
124,8 → 127,9 |
#define MAVL_FIND_FIRST 1 |
#define MAVL_FIND_LAST 2 |
void * mavl_get_ext(struct mavl *t ,const void *search, int mode); |
#define mavl_get_first(tree,search) mavl_get_ext(tree,search,MAVL_FIND_FIRST) |
#define mavl_get_last(tree,search) mavl_get_ext(tree,search,MAVL_FIND_LAST) |
|
|
|
|
#endif |