mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-26 06:46:28 +03:00
Update brace style.
Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
This commit is contained in:
parent
5154ff32ee
commit
c4c2592c83
119 changed files with 2971 additions and 3572 deletions
|
|
@ -8,13 +8,12 @@ btalloc_n_proto(1)
|
|||
|
||||
#define btalloc_n_gen(n) \
|
||||
void * \
|
||||
btalloc_##n(size_t size, unsigned bits) \
|
||||
{ \
|
||||
btalloc_##n(size_t size, unsigned bits) { \
|
||||
void *p; \
|
||||
\
|
||||
if (bits == 0) \
|
||||
if (bits == 0) { \
|
||||
p = mallocx(size, 0); \
|
||||
else { \
|
||||
} else { \
|
||||
switch (bits & 0x1U) { \
|
||||
case 0: \
|
||||
p = (btalloc_0(size, bits >> 1)); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue