diff -r e06249e09f99 -r c8d692131b1e src/array_list.c --- a/src/array_list.c Sun Jan 14 13:50:17 2024 +0100 +++ b/src/array_list.c Mon Jan 15 20:59:18 2024 +0100 @@ -106,8 +106,7 @@ #ifndef CX_ARRAY_SWAP_SBO_SIZE #define CX_ARRAY_SWAP_SBO_SIZE 128 #endif - -bool CX_DISABLE_ARRAY_LIST_SWAP_SBO = false; +unsigned cx_array_swap_sbo_size = CX_ARRAY_SWAP_SBO_SIZE; void cx_array_swap( void *arr, @@ -124,7 +123,7 @@ void *tmp; // decide if we can use the local buffer - if (elem_size > CX_ARRAY_SWAP_SBO_SIZE || CX_DISABLE_ARRAY_LIST_SWAP_SBO) { + if (elem_size > CX_ARRAY_SWAP_SBO_SIZE) { tmp = malloc(elem_size); // we don't want to enforce error handling if (tmp == NULL) abort();