diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 00:45:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 00:45:51 +0400 |
commit | 5ba8b529238162acec20b33458a43c281a72fc52 (patch) | |
tree | 933a864e166019b48ef2cbc414ce8641ec6eac06 /source/blender/blenlib/intern/sort.c | |
parent | 4dd9353e563ebe56fce0835d7a63ffb6454f73ab (diff) |
set nonnull args for BLI_qsort_r
Diffstat (limited to 'source/blender/blenlib/intern/sort.c')
-rw-r--r-- | source/blender/blenlib/intern/sort.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/sort.c b/source/blender/blenlib/intern/sort.c index fdfdf5f67ca..44110564948 100644 --- a/source/blender/blenlib/intern/sort.c +++ b/source/blender/blenlib/intern/sort.c @@ -81,6 +81,11 @@ BLI_INLINE char *med3(char *a, char *b, char *c, BLI_sort_cmp_t cmp, void *thunk :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); } +/** + * Quick sort reentrant. + * + * \note Follows BSD arg order (incompatible with glibc). + */ void BLI_qsort_r(void *a, size_t n, size_t es, void *thunk, BLI_sort_cmp_t cmp) { char *pa, *pb, *pc, *pd, *pl, *pm, *pn; |