removed libtoml allocator

This commit is contained in:
2025-11-10 10:34:10 +05:00
parent c49a8cb1e5
commit 52870920c1
2 changed files with 40 additions and 103 deletions

View File

@@ -33,9 +33,9 @@ typedef struct {
typedef struct TomlValue TomlValue;
typedef struct {
TomlValue* elements;
u64 len;
u64 _capacity;
TomlValue* elements;
u64 len;
u64 _capacity;
} TomlArray;
@@ -63,18 +63,6 @@ struct TomlValue {
} value;
};
typedef struct {
void* (*malloc)(void* context, u64 size);
void* (*realloc)(void* context, void* p, u64 size);
void (*free)(void* context, void* p);
} TomlAllocFuncs;
void toml_set_allocator(void* context, const TomlAllocFuncs *funcs);
void* toml_malloc(u64 size);
void* toml_realloc(void* p, u64 size);
void toml_free(void* p);
const TomlErr* toml_err(void);
void toml_err_clear(void);