src/allocator.c

changeset 1318
12fa1d37fe48
parent 1188
b0300de92b72
--- a/src/allocator.c	Thu May 15 15:43:30 2025 +0200
+++ b/src/allocator.c	Thu May 15 16:02:54 2025 +0200
@@ -60,18 +60,19 @@
     free(mem);
 }
 
-static cx_allocator_class cx_default_allocator_class = {
+static cx_allocator_class cx_stdlib_allocator_class = {
         cx_malloc_stdlib,
         cx_realloc_stdlib,
         cx_calloc_stdlib,
         cx_free_stdlib
 };
 
-struct cx_allocator_s cx_default_allocator = {
-        &cx_default_allocator_class,
+struct cx_allocator_s cx_stdlib_allocator = {
+        &cx_stdlib_allocator_class,
         NULL
 };
-const CxAllocator * const cxDefaultAllocator = &cx_default_allocator;
+const CxAllocator * const cxStdlibAllocator = &cx_stdlib_allocator;
+const CxAllocator * cxDefaultAllocator = cxStdlibAllocator;
 
 int cx_reallocate_(
         void **mem,

mercurial