2#define REDUCT_NATIVE_H 1
38#define REDUCT_NATIVE_MAP_INITIAL 256
39#define REDUCT_NATIVE_MAP_GROWTH 2
47 struct reduct_native_entry*
map;
71typedef struct reduct_native_entry
reduct_handle_t(* reduct_native_fn)(struct reduct *reduct, size_t argc, reduct_handle_t *argv)
Native function pointer type.
struct reduct_rvsdg_origin *(* reduct_native_intrinsic_fn)(struct reduct_builder *builder, struct reduct_list *expr)
Intrinsic handler function type.
REDUCT_API void reduct_native_register(struct reduct *reduct, const reduct_native_t *array, size_t count)
Register native functions.
REDUCT_API reduct_native_entry_t * reduct_native_map_find(struct reduct *reduct, uint32_t hash, const char *str, size_t len)
Find a native entry in the map.
REDUCT_API void reduct_native_global_deinit(reduct_native_global_t *global)
Deinitialize a global native state.
REDUCT_API void reduct_native_global_init(reduct_native_global_t *global)
Initialize a global native state.
Intermediate Representation.
reduct_native_intrinsic_fn intrinsicFn
reduct_native_fn nativeFn
Global native-related state structure.
struct reduct_native_entry * map
Native function definition structure.
reduct_native_intrinsic_fn intrinsicFn
reduct_native_fn nativeFn
Read-Write Mutex structure.
Syncronization primitives.