diff options
Diffstat (limited to 'include/bh/bh.h')
| -rw-r--r-- | include/bh/bh.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/bh/bh.h b/include/bh/bh.h new file mode 100644 index 0000000..f9df864 --- /dev/null +++ b/include/bh/bh.h @@ -0,0 +1,22 @@ +#ifndef BHLIB_H +#define BHLIB_H + +#include <stddef.h> + +#define BH_INT_TO_PTR(x) \ + ((void *)((long)(x))) + +#define BH_UINT_TO_PTR(x) \ + ((void *)((unsigned long)(x))) + +#define BH_PTR_TO_INT(x) \ + ((long)(x)) + +#define BH_PTR_TO_UINT(x) \ + ((unsigned long)(x)) + +typedef int (*bh_equal_cb_t)(const void *, const void *); +typedef size_t (*bh_hash_cb_t)(const void *); + +#endif /* BHLIB_H */ + |
