summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/types.h b/types.h
index 46271aa..7b0e498 100644
--- a/types.h
+++ b/types.h
@@ -813,6 +813,20 @@ typedef enum {
DECL_END_LBRACE_COMMA
} DeclEndKind;
+#if COMPILE_TIME_FOREIGN_FN_SUPPORT
+typedef struct {
+ void *handle;
+} Library;
+#endif
+
+typedef struct {
+#if COMPILE_TIME_FOREIGN_FN_SUPPORT
+ StrHashTable libs_loaded; /* of Library */
+#else
+ char unused;
+#endif
+} ForeignFnManager;
+
typedef struct Evaluator {
Allocator *allocr;
struct Typer *typer;
@@ -820,6 +834,7 @@ typedef struct Evaluator {
Value ret_val;
void **to_free; /* an array of data to free for this scope. */
bool enabled;
+ ForeignFnManager ffmgr;
} Evaluator;
typedef struct Package {
@@ -887,7 +902,6 @@ typedef struct CGenerator {
char *pkg_prefix;
} CGenerator;
-
#ifdef TOC_DEBUG
#define add_ident_decls(b, d, flags) add_ident_decls_(__FILE__, __LINE__, b, d, flags)
#endif