diff options
author | David Robillard <d@drobilla.net> | 2021-09-14 17:56:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-09-14 17:56:13 -0400 |
commit | c45ea80190de9745bcfaabb4858815a85d93c92a (patch) | |
tree | 846a09d503de0957da488a10f9f09eba87094b63 /include | |
parent | 19235b7127bcf5597fb0436deb45c2e6af5843c6 (diff) | |
download | zix-c45ea80190de9745bcfaabb4858815a85d93c92a.tar.gz zix-c45ea80190de9745bcfaabb4858815a85d93c92a.tar.bz2 zix-c45ea80190de9745bcfaabb4858815a85d93c92a.zip |
Fix whitespace in allocator function type definitions
Diffstat (limited to 'include')
-rw-r--r-- | include/zix/allocator.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/include/zix/allocator.h b/include/zix/allocator.h index aa7d820..809067d 100644 --- a/include/zix/allocator.h +++ b/include/zix/allocator.h @@ -36,8 +36,9 @@ typedef struct ZixAllocatorImpl ZixAllocator; This works like the standard C malloc(), except has an additional handle parameter for implementing stateful allocators without static data. */ -typedef void* ZIX_ALLOCATED ( - *ZixMallocFunc)(ZixAllocator* ZIX_NULLABLE allocator, size_t size); +typedef void* ZIX_ALLOCATED (*ZixMallocFunc)( // + ZixAllocator* ZIX_NULLABLE allocator, + size_t size); /** General calloc-like memory allocation function. @@ -45,10 +46,10 @@ typedef void* ZIX_ALLOCATED ( This works like the standard C calloc(), except has an additional handle parameter for implementing stateful allocators without static data. */ -typedef void* ZIX_ALLOCATED (*ZixCallocFunc)(ZixAllocator* ZIX_NULLABLE - allocator, - size_t nmemb, - size_t size); +typedef void* ZIX_ALLOCATED (*ZixCallocFunc)( // + ZixAllocator* ZIX_NULLABLE allocator, + size_t nmemb, + size_t size); /** General realloc-like memory reallocation function. @@ -56,10 +57,10 @@ typedef void* ZIX_ALLOCATED (*ZixCallocFunc)(ZixAllocator* ZIX_NULLABLE This works like the standard C remalloc(), except has an additional handle parameter for implementing stateful allocators without static data. */ -typedef void* ZIX_ALLOCATED (*ZixReallocFunc)(ZixAllocator* ZIX_NULLABLE - allocator, - void* ZIX_NULLABLE ptr, - size_t size); +typedef void* ZIX_ALLOCATED (*ZixReallocFunc)( // + ZixAllocator* ZIX_NULLABLE allocator, + void* ZIX_NULLABLE ptr, + size_t size); /** General free-like memory deallocation function. @@ -67,8 +68,9 @@ typedef void* ZIX_ALLOCATED (*ZixReallocFunc)(ZixAllocator* ZIX_NULLABLE This works like the standard C remalloc(), except has an additional handle parameter for implementing stateful allocators without static data. */ -typedef void (*ZixFreeFunc)(ZixAllocator* ZIX_NULLABLE allocator, - void* ZIX_NULLABLE ptr); +typedef void (*ZixFreeFunc)( // + ZixAllocator* ZIX_NULLABLE allocator, + void* ZIX_NULLABLE ptr); /// Definition of ZixAllocator struct ZixAllocatorImpl { |