Get something working
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Failing after 13s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Failing after 16s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 12s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 14s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 16s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 13s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-01 07:38:13 +03:00
parent 80af330d1b
commit 1d40c785f8
5 changed files with 571 additions and 68 deletions

View File

@@ -75,6 +75,8 @@ typedef enum dcfg_ValueKind {
dcfg_ValueType_FunctionCall,
} dcfg_ValueType;
typedef dcfg_Value *(*dcfg_BuiltIn)(dcfg_Value **argv, size_t argc);
typedef uint64_t dcfg_Version;
#define DCFG_GET_MAJOR(v) (((v) >> 48) & 0xFFFF)
#define DCFG_GET_MINOR(v) (((v) >> 32) & 0xFFFF)
@@ -140,6 +142,10 @@ bool dcfg_call_function(dcfg_Value *function, dcfg_Value **args,
size_t arg_count, dcfg_Value **out_value);
// Allocates new values
bool dcfg_Value_evaluate(dcfg_Value *value, dcfg_Value **out_value);
// Allocates new values
bool dcfg_Value_evaluate_toplevel(dcfg_Value *top, dcfg_Value **out_value,
dcfg_StringView *function_names, dcfg_BuiltIn *functions,
size_t function_count);
#ifdef __cplusplus
}