Tue, 05 Oct 2021 12:12:09 +0200
put attributes on separate lines
src/cx/allocator.h | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cx/allocator.h Tue Oct 05 11:19:32 2021 +0200 1.2 +++ b/src/cx/allocator.h Tue Oct 05 12:12:09 2021 +0200 1.3 @@ -121,7 +121,8 @@ 1.4 * @return a pointer to the allocated memory 1.5 */ 1.6 void *cxMalloc(CxAllocator allocator, size_t n) 1.7 -__attribute__((__malloc__, __alloc_size__(2))); 1.8 +__attribute__((__malloc__)) 1.9 +__attribute__((__alloc_size__(2))); 1.10 1.11 /** 1.12 * Re-allocate the previously allocated block in \p mem, making the new block \p n bytes long. 1.13 @@ -136,7 +137,8 @@ 1.14 * @return a pointer to the re-allocated memory 1.15 */ 1.16 void *cxRealloc(CxAllocator allocator, void *mem, size_t n) 1.17 -__attribute__((__warn_unused_result__, __alloc_size__(3))); 1.18 +__attribute__((__warn_unused_result__)) 1.19 +__attribute__((__alloc_size__(3))); 1.20 1.21 /** 1.22 * Re-allocate a previously allocated block and changes the pointer in-place, if necessary. 1.23 @@ -165,7 +167,8 @@ 1.24 * @return a pointer to the allocated memory 1.25 */ 1.26 void *cxCalloc(CxAllocator allocator, size_t nelem, size_t n) 1.27 -__attribute__((__malloc__, __alloc_size__(2, 3))); 1.28 +__attribute__((__malloc__)) 1.29 +__attribute__((__alloc_size__(2, 3))); 1.30 1.31 /** 1.32 * Free a block allocated by this allocator.