![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
INI handle registry implementation used by VM INI opcodes. More...
#include <iniparser/dictionary.h>#include <iniparser/iniparser.h>#include <ctype.h>#include <stdio.h>#include <string.h>#include "handles.h"Go to the source code of this file.
Functions | |
| int | ini_alloc_handle (dictionary *d) |
| Allocate a registry handle for a newly created dictionary. | |
| 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. | |
| 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. | |
Variables | |
| IniSlot | g_ini [64] |
INI handle registry implementation used by VM INI opcodes.
Provides a tiny fixed-size registry mapping small integer handles to iniparser dictionary pointers. Not thread-safe. Handles are positive integers in range [1, 63].
Definition in file handles.c.
| int ini_alloc_handle | ( | dictionary * | d | ) |
| int ini_free_handle | ( | int | h | ) |
| dictionary * ini_get | ( | int | h | ) |
Look up a dictionary pointer by registry handle.
| h | Handle id previously returned by ini_alloc_handle(). |
| void ini_make_full_key | ( | char * | buf, |
| size_t | cap, | ||
| const char * | sec, | ||
| const char * | key ) |