rbtree
annotate test/rbshell/sym.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 | |
children |
rev | line source |
---|---|
nuclear@6 | 1 #ifndef SYM_H_ |
nuclear@6 | 2 #define SYM_H_ |
nuclear@6 | 3 |
nuclear@6 | 4 int init_sym(void); |
nuclear@6 | 5 void destroy_sym(void); |
nuclear@6 | 6 |
nuclear@6 | 7 int add_sym(const char *name, int id, int arity); |
nuclear@6 | 8 |
nuclear@6 | 9 int sym_lookup(const char *str); |
nuclear@6 | 10 int sym_arity(const char *str); |
nuclear@6 | 11 |
nuclear@6 | 12 #endif /* SYM_H_ */ |