diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenlib/intern/BLI_array.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/blenlib/intern/BLI_array.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_array.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/blenlib/intern/BLI_array.c b/source/blender/blenlib/intern/BLI_array.c index 6c22b128f5c..7a9cf416d91 100644 --- a/source/blender/blenlib/intern/BLI_array.c +++ b/source/blender/blenlib/intern/BLI_array.c @@ -59,26 +59,26 @@ * * \note The caller must adjust \a arr_len */ -void _bli_array_grow_func( - void **arr_p, const void *arr_static, - const int sizeof_arr_p, const int arr_len, const int num, - const char *alloc_str) +void _bli_array_grow_func(void **arr_p, + const void *arr_static, + const int sizeof_arr_p, + const int arr_len, + const int num, + const char *alloc_str) { - void *arr = *arr_p; - void *arr_tmp; + void *arr = *arr_p; + void *arr_tmp; - arr_tmp = MEM_mallocN( - sizeof_arr_p * - ((num < arr_len) ? - (arr_len * 2 + 2) : (arr_len + num)), alloc_str); + arr_tmp = MEM_mallocN(sizeof_arr_p * ((num < arr_len) ? (arr_len * 2 + 2) : (arr_len + num)), + alloc_str); - if (arr) { - memcpy(arr_tmp, arr, sizeof_arr_p * arr_len); + if (arr) { + memcpy(arr_tmp, arr, sizeof_arr_p * arr_len); - if (arr != arr_static) { - MEM_freeN(arr); - } - } + if (arr != arr_static) { + MEM_freeN(arr); + } + } - *arr_p = arr_tmp; + *arr_p = arr_tmp; } |