From 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sat, 23 Aug 2025 01:28:41 +0300 Subject: Ungrateful changes, added more stuff --- src/un_mem_std.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/un_mem_std.c (limited to 'src/un_mem_std.c') diff --git a/src/un_mem_std.c b/src/un_mem_std.c new file mode 100644 index 0000000..0d5d288 --- /dev/null +++ b/src/un_mem_std.c @@ -0,0 +1,14 @@ +static ALLOCATOR_PROC_SIGNATURE(un_std_alloc_proc) { + UNUSED(data); + + switch (message) { + case UN_ALLOC_MSG_ALLOCATE: + return calloc(1, size); + case UN_ALLOC_MSG_FREE: + free(p); + break; + case UN_ALLOC_MSG_SELF_DELETE: break; + } + + return NULL; +} -- cgit v1.2.3-70-g09d2