diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2021-10-26 01:55:33 -0600 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2021-10-26 01:55:33 -0600 |
commit | 2c94d5baaec9e65550df942cf976db48bd36d9b5 (patch) | |
tree | 6eb68deb9ab93d53539ef3cab283991140ddf0e6 /tests/test_map.c | |
parent | 969c054e5b1aee7fb034667f09240216ea0c6abf (diff) | |
download | stm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.tar.gz stm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.tar.bz2 stm32l4-2c94d5baaec9e65550df942cf976db48bd36d9b5.zip |
run clang-format.
Diffstat (limited to 'tests/test_map.c')
-rw-r--r-- | tests/test_map.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_map.c b/tests/test_map.c index 29704f0..db0fd9a 100644 --- a/tests/test_map.c +++ b/tests/test_map.c @@ -34,8 +34,8 @@ MAP_DECL(int, int_ptr); MAP_IMPL(int, int_ptr, integer_cmp_, kfree); static inline void loose_map_print( - avl_tree_node_t(map_entry_t(int, int_ptr))* node, - int tab) { + avl_tree_node_t(map_entry_t(int, int_ptr)) * node, int tab) +{ if (node) { loose_map_print(node->right, tab + 1); } @@ -49,8 +49,7 @@ static inline void loose_map_print( printf("(%d => %d)\n", node->value.key, *node->value.value); loose_map_print(node->left, tab + 1); } -static inline void map_debug_print( - map_t(int, int_ptr) * map) +static inline void map_debug_print(map_t(int, int_ptr) * map) { printf("------\n"); if (map->tree) { @@ -96,7 +95,7 @@ TEST(map, stress) erased[e] = 1; } - for (int i = 0; i < N; ++ i) { + for (int i = 0; i < N; ++i) { if (erased[i]) { continue; } |