# HG changeset patch # User Mike Becker # Date 1633428729 -7200 # Node ID 005c2791c2e2a7c15eeacf466cf2e61605f9a752 # Parent e075009b33b73b722c15b5e2abf7b9ebe0f0c5d6 put attributes on separate lines diff -r e075009b33b7 -r 005c2791c2e2 src/cx/allocator.h --- a/src/cx/allocator.h Tue Oct 05 11:19:32 2021 +0200 +++ b/src/cx/allocator.h Tue Oct 05 12:12:09 2021 +0200 @@ -121,7 +121,8 @@ * @return a pointer to the allocated memory */ void *cxMalloc(CxAllocator allocator, size_t n) -__attribute__((__malloc__, __alloc_size__(2))); +__attribute__((__malloc__)) +__attribute__((__alloc_size__(2))); /** * Re-allocate the previously allocated block in \p mem, making the new block \p n bytes long. @@ -136,7 +137,8 @@ * @return a pointer to the re-allocated memory */ void *cxRealloc(CxAllocator allocator, void *mem, size_t n) -__attribute__((__warn_unused_result__, __alloc_size__(3))); +__attribute__((__warn_unused_result__)) +__attribute__((__alloc_size__(3))); /** * Re-allocate a previously allocated block and changes the pointer in-place, if necessary. @@ -165,7 +167,8 @@ * @return a pointer to the allocated memory */ void *cxCalloc(CxAllocator allocator, size_t nelem, size_t n) -__attribute__((__malloc__, __alloc_size__(2, 3))); +__attribute__((__malloc__)) +__attribute__((__alloc_size__(2, 3))); /** * Free a block allocated by this allocator.