src/cx/allocator.h

changeset 1134
60edcd57d54c
parent 1087
128324af5164
--- a/src/cx/allocator.h	Sat Jan 18 14:07:52 2025 +0100
+++ b/src/cx/allocator.h	Sat Jan 18 14:10:51 2025 +0100
@@ -145,7 +145,7 @@
  */
 cx_attr_nonnull
 cx_attr_nodiscard
-int cx_reallocate(
+int cx_reallocate_(
         void **mem,
         size_t n
 );
@@ -169,7 +169,7 @@
  */
 cx_attr_nonnull
 cx_attr_nodiscard
-int cx_reallocatearray(
+int cx_reallocatearray_(
         void **mem,
         size_t nmemb,
         size_t size
@@ -188,7 +188,7 @@
  * @retval non-zero failure
  * @see cx_reallocatearray()
  */
-#define cx_reallocate(mem, n) cx_reallocate((void**)(mem), n)
+#define cx_reallocate(mem, n) cx_reallocate_((void**)(mem), n)
 
 /**
  * Re-allocate a previously allocated block and changes the pointer in-place,
@@ -207,7 +207,7 @@
  * @retval non-zero failure
  */
 #define cx_reallocatearray(mem, nmemb, size) \
-    cx_reallocatearray((void**)(mem), nmemb, size)
+    cx_reallocatearray_((void**)(mem), nmemb, size)
 
 /**
  * Free a block allocated by this allocator.
@@ -310,7 +310,7 @@
  */
 cx_attr_nodiscard
 cx_attr_nonnull
-int cxReallocate(
+int cxReallocate_(
         const CxAllocator *allocator,
         void **mem,
         size_t n
@@ -333,7 +333,7 @@
  * @retval non-zero failure
  */
 #define cxReallocate(allocator, mem, n) \
-    cxReallocate(allocator, (void**)(mem), n)
+    cxReallocate_(allocator, (void**)(mem), n)
 
 /**
  * Re-allocate a previously allocated block and changes the pointer in-place,
@@ -356,7 +356,7 @@
  */
 cx_attr_nodiscard
 cx_attr_nonnull
-int cxReallocateArray(
+int cxReallocateArray_(
         const CxAllocator *allocator,
         void **mem,
         size_t nmemb,
@@ -383,7 +383,7 @@
  * @retval non-zero failure
  */
 #define cxReallocateArray(allocator, mem, nmemb, size) \
-        cxReallocateArray(allocator, (void**) (mem), nmemb, size)
+        cxReallocateArray_(allocator, (void**) (mem), nmemb, size)
 
 /**
  * Allocate @p nelem elements of @p n bytes each, all initialized to zero.

mercurial