src/cx/allocator.h

changeset 890
54565fd74e74
parent 726
44986c0e2b05
child 891
49d8cff6f0ee
--- a/src/cx/allocator.h	Wed Sep 18 00:02:18 2024 +0200
+++ b/src/cx/allocator.h	Sat Sep 28 15:47:28 2024 +0200
@@ -156,7 +156,7 @@
  * @return a pointer to the allocated memory
  */
 void *cxMalloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         size_t n
 )
 __attribute__((__malloc__))
@@ -175,7 +175,7 @@
  * @return a pointer to the re-allocated memory
  */
 void *cxRealloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void *mem,
         size_t n
 )
@@ -197,7 +197,7 @@
  * @return zero on success, non-zero on failure
  */
 int cxReallocate(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void **mem,
         size_t n
 )
@@ -212,7 +212,7 @@
  * @return a pointer to the allocated memory
  */
 void *cxCalloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         size_t nelem,
         size_t n
 )
@@ -228,7 +228,7 @@
  * @param mem a pointer to the block to free
  */
 void cxFree(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void *mem
 )
 __attribute__((__nonnull__));

mercurial