diff -r 2e8878770de0 -r 8aea65ae1eaf src/cx/allocator.h --- a/src/cx/allocator.h Sun Mar 06 13:57:36 2022 +0100 +++ b/src/cx/allocator.h Sat Apr 09 16:37:43 2022 +0200 @@ -124,7 +124,7 @@ * @return a pointer to the allocated memory */ void *cxMalloc( - CxAllocator *allocator, + CxAllocator const *allocator, size_t n ) __attribute__((__malloc__)) @@ -143,7 +143,7 @@ * @return a pointer to the re-allocated memory */ void *cxRealloc( - CxAllocator *allocator, + CxAllocator const *allocator, void *mem, size_t n ) @@ -166,7 +166,7 @@ * @return zero on success, non-zero on failure */ int cxReallocate( - CxAllocator *allocator, + CxAllocator const *allocator, void **mem, size_t n ) @@ -181,7 +181,7 @@ * @return a pointer to the allocated memory */ void *cxCalloc( - CxAllocator *allocator, + CxAllocator const *allocator, size_t nelem, size_t n ) @@ -197,7 +197,7 @@ * @param mem a pointer to the block to free */ void cxFree( - CxAllocator *allocator, + CxAllocator const *allocator, void *mem ) __attribute__((__nonnull__));