1 #ifndef LIBDERP_COMMON_H
2 #define LIBDERP_COMMON_H
12 typedef int comparator(const void *, const void *, void *aux);
13 typedef unsigned long hashfn(const void *);
14 typedef void dtor(void *, void *aux);
16 /* stdlib func wrappers that take (and ignore) aux param */
19 comparator derp_strcmp;
21 /* if you want something other than malloc/realloc/free */
23 void derp_use_alloc_funcs(
25 void *(*r)(void *p, size_t n),