From c45ea80190de9745bcfaabb4858815a85d93c92a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Sep 2021 17:56:13 -0400 Subject: Fix whitespace in allocator function type definitions --- include/zix/allocator.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'include/zix/allocator.h') 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 { -- cgit v1.2.1