removed libtoml allocator
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user