Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
native.h File Reference

Native function and intrinsic registration. More...

#include <reduct/defs.h>
#include <reduct/rvsdg.h>
#include <reduct/sync.h>
Include dependency graph for native.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  reduct_native_t
 Native function definition structure. More...
 
struct  reduct_native_global_t
 Global native-related state structure. More...
 
struct  reduct_native_entry_t
 Native map entry. More...
 

Macros

#define REDUCT_NATIVE_MAP_INITIAL   256
 The initial size of the native map.
 
#define REDUCT_NATIVE_MAP_GROWTH   2
 The growth factor of the native map.
 

Functions

REDUCT_API void reduct_native_global_init (reduct_native_global_t *global)
 Initialize a global native state.
 
REDUCT_API void reduct_native_global_deinit (reduct_native_global_t *global)
 Deinitialize a global native state.
 
REDUCT_API reduct_native_entry_treduct_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_register (struct reduct *reduct, const reduct_native_t *array, size_t count)
 Register native functions.
 

Detailed Description

Native function and intrinsic registration.

Definition in file native.h.