Sync to the latest version.

Can be broken or partially implemented.
This commit is contained in:
2024-04-23 23:45:43 +03:00
parent ec499b6cfc
commit 692b5b4297
26 changed files with 785 additions and 60 deletions

View File

@@ -3,18 +3,20 @@
#include <bh/config.h>
#include <stddef.h>
#include "platform.h"
#define BH_INT_TO_PTR(x) \
((void *)((long)(x)))
((void *)((bh_intptr_t)(x)))
#define BH_UINT_TO_PTR(x) \
((void *)((unsigned long)(x)))
((void *)((bh_uintptr_t)(x)))
#define BH_PTR_TO_INT(x) \
((long)(x))
((bh_intptr_t)(x))
#define BH_PTR_TO_UINT(x) \
((unsigned long)(x))
((bh_uintptr_t)(x))
typedef int (*bh_equal_cb_t)(const void *, const void *);
typedef size_t (*bh_hash_cb_t)(const void *);