2015-04-05 22:32:12 +02:00
|
|
|
#ifndef __INTAVLTREE_H
|
|
|
|
#define __INTAVLTREE_H
|
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
#include "mavl.h"
|
2015-04-05 22:32:12 +02:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
extern struct mavl * intavltree_create();
|
|
|
|
typedef struct mavl * intavltree_t;
|
|
|
|
int * intavltree_add(struct mavl * t, int val);
|
2015-04-05 22:32:12 +02:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
#define intavltree_destroy(t) mavl_destroy(t)
|
|
|
|
#define intavltree_foreach_asc(t,f,p) mavl_foreach_asc(t,f,p)
|
|
|
|
#define intavltree_foreach_desc(t,f,p) mavl_foreach_desc(t,f,p)
|
2015-04-05 22:32:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|