ucx/allocator.c

branch
newapi
changeset 324
ce13a778654a
parent 187
24ce2c326d85
--- a/ucx/allocator.c	Thu Oct 03 18:54:19 2024 +0200
+++ b/ucx/allocator.c	Sun Oct 06 12:00:31 2024 +0200
@@ -92,14 +92,14 @@
 // IMPLEMENTATION OF HIGH LEVEL API
 
 void *cxMalloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         size_t n
 ) {
     return allocator->cl->malloc(allocator->data, n);
 }
 
 void *cxRealloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void *mem,
         size_t n
 ) {
@@ -107,7 +107,7 @@
 }
 
 int cxReallocate(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void **mem,
         size_t n
 ) {
@@ -121,7 +121,7 @@
 }
 
 void *cxCalloc(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         size_t nelem,
         size_t n
 ) {
@@ -129,7 +129,7 @@
 }
 
 void cxFree(
-        CxAllocator const *allocator,
+        const CxAllocator *allocator,
         void *mem
 ) {
     allocator->cl->free(allocator->data, mem);

mercurial