src/array_list.c

changeset 1645
27037c1b14e0
parent 1643
045894204ca5
equal deleted inserted replaced
1644:bbe3199e37fc 1645:27037c1b14e0
354 return cx_array_insert_sorted_c_(allocator, array, elem_size, sorted_data, 354 return cx_array_insert_sorted_c_(allocator, array, elem_size, sorted_data,
355 n, cx_cmp_wrap, &wrapper, allow_duplicates); 355 n, cx_cmp_wrap, &wrapper, allow_duplicates);
356 } 356 }
357 357
358 #ifndef WITH_QSORT_R 358 #ifndef WITH_QSORT_R
359 static thread_local cx_compare_func2 cx_array_fn_for_qsort; 359 static _Thread_local cx_compare_func2 cx_array_fn_for_qsort;
360 static thread_local void *cx_array_context_for_qsort; 360 static _Thread_local void *cx_array_context_for_qsort;
361 static int cx_array_qsort_wrapper(const void *l, const void *r) { 361 static int cx_array_qsort_wrapper(const void *l, const void *r) {
362 return cx_array_fn_for_qsort(l, r, cx_array_context_for_qsort); 362 return cx_array_fn_for_qsort(l, r, cx_array_context_for_qsort);
363 } 363 }
364 #endif 364 #endif
365 365

mercurial