45 size_t flen = strlen(
full);
46 if (flen <
sizeof(alt) && flen > 0) {
47 memcpy(alt,
full, flen + 1);
48 for (
size_t i = 0; i < flen; ++i)
54 const char *
s = iniparser_getstring(
d,
full,
def);
56 s = iniparser_getstring(
d, alt,
def);
push_value(vm, make_string(res))
dictionary * ini_get(int h)
Look up a dictionary pointer by registry handle.
void ini_make_full_key(char *buf, size_t cap, const char *sec, const char *key)
Build a fully qualified key "section:key" into a caller-provided buffer.
Tagged union representing a Fun value.
Value make_string(const char *s)
Construct a string Value by duplicating the given C string.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.