put attributes on separate lines

Tue, 05 Oct 2021 12:12:09 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 05 Oct 2021 12:12:09 +0200
changeset 461
005c2791c2e2
parent 460
e075009b33b7
child 462
1bcf7c8d4b47

put attributes on separate lines

src/cx/allocator.h file | annotate | diff | comparison | revisions
--- 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.

mercurial