mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +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
|
|
@ -1,7 +1,6 @@
|
|||
#include "test/jemalloc_test.h"
|
||||
|
||||
TEST_BEGIN(test_new_delete)
|
||||
{
|
||||
TEST_BEGIN(test_new_delete) {
|
||||
tsd_t *tsd;
|
||||
ckh_t ckh;
|
||||
|
||||
|
|
@ -17,8 +16,7 @@ TEST_BEGIN(test_new_delete)
|
|||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_count_insert_search_remove)
|
||||
{
|
||||
TEST_BEGIN(test_count_insert_search_remove) {
|
||||
tsd_t *tsd;
|
||||
ckh_t ckh;
|
||||
const char *strs[] = {
|
||||
|
|
@ -105,8 +103,7 @@ TEST_BEGIN(test_count_insert_search_remove)
|
|||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_insert_iter_remove)
|
||||
{
|
||||
TEST_BEGIN(test_insert_iter_remove) {
|
||||
#define NITEMS ZU(1000)
|
||||
tsd_t *tsd;
|
||||
ckh_t ckh;
|
||||
|
|
@ -174,10 +171,12 @@ TEST_BEGIN(test_insert_iter_remove)
|
|||
}
|
||||
}
|
||||
|
||||
for (j = 0; j < i + 1; j++)
|
||||
for (j = 0; j < i + 1; j++) {
|
||||
assert_true(seen[j], "Item %zu not seen", j);
|
||||
for (; j < NITEMS; j++)
|
||||
}
|
||||
for (; j < NITEMS; j++) {
|
||||
assert_false(seen[j], "Item %zu seen", j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -204,8 +203,7 @@ TEST_BEGIN(test_insert_iter_remove)
|
|||
TEST_END
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
return (test(
|
||||
test_new_delete,
|
||||
test_count_insert_search_remove,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue