rbtree
diff src/rbtree.h @ 15:1b77b72688fe
- fixed bug in rb_init making it ignore comparison functions other than the builtin
- fixed rb_find and rb_findi return type, which should be struct rbnode*, not void*
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Nov 2014 11:00:27 +0200 |
parents | 5b955b3a4675 |
children |
line diff
1.1 --- a/src/rbtree.h Sun Nov 02 10:56:08 2014 +0200 1.2 +++ b/src/rbtree.h Sun Nov 02 11:00:27 2014 +0200 1.3 @@ -56,8 +56,8 @@ 1.4 int rb_delete(struct rbtree *rb, void *key); 1.5 int rb_deletei(struct rbtree *rb, int key); 1.6 1.7 -void *rb_find(struct rbtree *rb, void *key); 1.8 -void *rb_findi(struct rbtree *rb, int key); 1.9 +struct rbnode *rb_find(struct rbtree *rb, void *key); 1.10 +struct rbnode *rb_findi(struct rbtree *rb, int key); 1.11 1.12 void rb_foreach(struct rbtree *rb, void (*func)(struct rbnode*, void*), void *cls); 1.13