diff options
Diffstat (limited to 'include/bh/bh.h')
| -rw-r--r-- | include/bh/bh.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/include/bh/bh.h b/include/bh/bh.h index f761518..277728e 100644 --- a/include/bh/bh.h +++ b/include/bh/bh.h @@ -1,25 +1,34 @@ -#ifndef BHLIB_H -#define BHLIB_H +#ifndef BH_H +#define BH_H #include <bh/config.h> #include <stddef.h> #include "platform.h" -#define BH_INT_TO_PTR(x) \ +#define BH_INT_TO_PTR(x) \ ((void *)((bh_intptr_t)(x))) -#define BH_UINT_TO_PTR(x) \ +#define BH_UINT_TO_PTR(x) \ ((void *)((bh_uintptr_t)(x))) -#define BH_PTR_TO_INT(x) \ +#define BH_PTR_TO_INT(x) \ ((bh_intptr_t)(x)) -#define BH_PTR_TO_UINT(x) \ +#define BH_PTR_TO_UINT(x) \ ((bh_uintptr_t)(x)) +#define BH_OK 0x0000 +#define BH_ERROR 0x0001 +#define BH_OOM 0x0002 +#define BH_INVALID 0x0003 +#define BH_NO_IMPL 0x0004 +#define BH_FOUND 0x0005 +#define BH_NOT_FOUND 0x0006 +#define BH_TIMEOUT 0x0007 + typedef int (*bh_equal_cb_t)(const void *, const void *); typedef size_t (*bh_hash_cb_t)(const void *); -#endif /* BHLIB_H */ +#endif /* BH_H */ |
