From 260e50d627aea535abcd9d9902c1b4ae56da4c54 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 20 Sep 2026 17:10:21 -0400 Subject: add config for io and thread --- include/kpl.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/kpl.h') diff --git a/include/kpl.h b/include/kpl.h index 15933ee..c4450ca 100644 --- a/include/kpl.h +++ b/include/kpl.h @@ -6,14 +6,18 @@ #include "kpl/macro.h" #include "kpl/io.h" #include "kpl/thread.h" -#include "kpl/memory.h" + +typedef enum : uint32_t { + KPL_CONFIG_FLAG_EVAL = 1 << 0, + KPL_CONFIG_FLAG_REPL = 1 << 1 +} kpl_config_flags; typedef struct { + uint32_t flags; int32_t argc, main_module_arg_index; const char **argv, *module_extension; kpl_config_io io; kpl_config_thread thread; - kpl_config_memory memory; } kpl_config; void kpl_config_init(kpl_config *config); @@ -21,3 +25,7 @@ void kpl_config_init(kpl_config *config); bool kpl_config_valid_module_exension(kpl_config *config, const char *module_name); int32_t kpl_config_parse_args(kpl_config *config, const int32_t argc, const char *argv[]); + +typedef struct { + kpl_config config; +} kpl_env; -- cgit v1.2.3