Use a custom allocator for everything.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3892 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-06-04 17:04:51 +00:00
parent cf61e68713
commit 9c90b2bc1d
24 changed files with 404 additions and 343 deletions

16
src/mem.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <stddef.h>
void tf_mem_replace_uv_allocator();
size_t tf_mem_get_uv_malloc_size();
void tf_mem_replace_tls_allocator();
size_t tf_mem_get_tls_malloc_size();
size_t tf_mem_get_tf_malloc_size();
void* tf_malloc(size_t size);
void* tf_realloc(void* ptr, size_t size);
void tf_free(void* ptr);
char* tf_strdup(const char* string);