mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00: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:
@@ -1449,8 +1449,7 @@ static const uint64_t init_by_array_64_expected[] = {
|
||||
KQU(15570163926716513029), KQU(13356980519185762498)
|
||||
};
|
||||
|
||||
TEST_BEGIN(test_gen_rand_32)
|
||||
{
|
||||
TEST_BEGIN(test_gen_rand_32) {
|
||||
uint32_t array32[BLOCK_SIZE] JEMALLOC_ATTR(aligned(16));
|
||||
uint32_t array32_2[BLOCK_SIZE] JEMALLOC_ATTR(aligned(16));
|
||||
int i;
|
||||
@@ -1484,8 +1483,7 @@ TEST_BEGIN(test_gen_rand_32)
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_by_array_32)
|
||||
{
|
||||
TEST_BEGIN(test_by_array_32) {
|
||||
uint32_t array32[BLOCK_SIZE] JEMALLOC_ATTR(aligned(16));
|
||||
uint32_t array32_2[BLOCK_SIZE] JEMALLOC_ATTR(aligned(16));
|
||||
int i;
|
||||
@@ -1520,8 +1518,7 @@ TEST_BEGIN(test_by_array_32)
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_gen_rand_64)
|
||||
{
|
||||
TEST_BEGIN(test_gen_rand_64) {
|
||||
uint64_t array64[BLOCK_SIZE64] JEMALLOC_ATTR(aligned(16));
|
||||
uint64_t array64_2[BLOCK_SIZE64] JEMALLOC_ATTR(aligned(16));
|
||||
int i;
|
||||
@@ -1556,8 +1553,7 @@ TEST_BEGIN(test_gen_rand_64)
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_by_array_64)
|
||||
{
|
||||
TEST_BEGIN(test_by_array_64) {
|
||||
uint64_t array64[BLOCK_SIZE64] JEMALLOC_ATTR(aligned(16));
|
||||
uint64_t array64_2[BLOCK_SIZE64] JEMALLOC_ATTR(aligned(16));
|
||||
int i;
|
||||
@@ -1594,8 +1590,7 @@ TEST_BEGIN(test_by_array_64)
|
||||
TEST_END
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
return (test(
|
||||
test_gen_rand_32,
|
||||
test_by_array_32,
|
||||
|
||||
Reference in New Issue
Block a user