forked from enlightenment/efl
parent
aa82395cc1
commit
5257321d9a
|
@ -20,14 +20,14 @@
|
|||
#define EINA_RBTREE_INLINE_H_
|
||||
|
||||
static inline Eina_Rbtree *
|
||||
eina_rbtree_inline_lookup(Eina_Rbtree *root, const void *key, int length, Eina_Rbtree_Cmp_Key_Cb cmp, const void *data)
|
||||
eina_rbtree_inline_lookup(const Eina_Rbtree *root, const void *key, int length, Eina_Rbtree_Cmp_Key_Cb cmp, const void *data)
|
||||
{
|
||||
int result;
|
||||
|
||||
while (root)
|
||||
{
|
||||
result = cmp(root, key, length, (void*) data);
|
||||
if (result == 0) return root;
|
||||
if (result == 0) return (Eina_Rbtree*) root;
|
||||
|
||||
root = root->son[result < 0 ? 0 : 1];
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ EAPI Eina_Rbtree *eina_rbtree_inline_insert(Eina_Rbtree *root, Eina_Rbtree *node
|
|||
EAPI Eina_Rbtree *eina_rbtree_inline_remove(Eina_Rbtree *root, Eina_Rbtree *node, Eina_Rbtree_Cmp_Node_Cb cmp, const void *data);
|
||||
EAPI void eina_rbtree_delete(Eina_Rbtree *root, Eina_Rbtree_Free_Cb func, void *data);
|
||||
|
||||
static inline Eina_Rbtree *eina_rbtree_inline_lookup(Eina_Rbtree *root, const void *key, int length, Eina_Rbtree_Cmp_Key_Cb cmp, const void *data);
|
||||
static inline Eina_Rbtree *eina_rbtree_inline_lookup(const Eina_Rbtree *root, const void *key, int length, Eina_Rbtree_Cmp_Key_Cb cmp, const void *data);
|
||||
|
||||
EAPI Eina_Iterator *eina_rbtree_iterator_prefix(const Eina_Rbtree *root);
|
||||
EAPI Eina_Iterator *eina_rbtree_iterator_infix(const Eina_Rbtree *root);
|
||||
|
|
Loading…
Reference in New Issue