20#if defined(__has_include)
21#if __has_include(<iniparser/iniparser.h>)
22#include <iniparser/dictionary.h>
23#include <iniparser/iniparser.h>
24#elif __has_include(<iniparser.h>)
25#include <dictionary.h>
28#error "iniparser headers not found"
31#include <iniparser/dictionary.h>
32#include <iniparser/iniparser.h>
45 for (
int i = 1; i < (int)(
sizeof(
g_ini) /
sizeof(
g_ini[0])); ++i) {
69 if (!
buf ||
cap == 0)
return;
dictionary * ini_get(int h)
Look up a dictionary pointer by registry handle.
int ini_free_handle(int h)
Free a previously allocated handle and close its dictionary.
int ini_alloc_handle(dictionary *d)
Allocate a registry handle for a newly created dictionary.
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.
INI handle registry for iniparser 4.2.6 used by INI VM opcodes.
One slot in the global INI handle registry.