Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/BLI_array.c')
-rw-r--r--source/blender/blenlib/intern/BLI_array.c34
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;
}