Also see #103343. Couldn't move two files yet: * `softbody.c`: The corresponding regression test fails. It seems like the conversion to C++ changes floating point accuracy, but it's not clear where that happens exactly. * `writeffmpeg.c`: Is a bit more complex to convert because of the static array in `av_err2str`. Pull Request: https://projects.blender.org/blender/blender/pulls/110182
29 lines
487 B
C
29 lines
487 B
C
/* SPDX-FileCopyrightText: 2013 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Quick sort (re-entrant). */
|
|
typedef int (*BLI_sort_cmp_t)(const void *a, const void *b, void *ctx);
|
|
|
|
void BLI_qsort_r(void *a, size_t n, size_t es, BLI_sort_cmp_t cmp, void *thunk)
|
|
#ifdef __GNUC__
|
|
__attribute__((nonnull(1, 5)))
|
|
#endif
|
|
;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|