mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 06:21:09 +00:00
Simplified SDL random function names and added thread-safe versions
This commit is contained in:
@@ -961,9 +961,11 @@ SDL3_0.0.0 {
|
||||
SDL_powf;
|
||||
SDL_qsort;
|
||||
SDL_qsort_r;
|
||||
SDL_rand_bits;
|
||||
SDL_rand_float;
|
||||
SDL_rand_n;
|
||||
SDL_rand;
|
||||
SDL_rand_bits_r;
|
||||
SDL_rand_r;
|
||||
SDL_randf;
|
||||
SDL_randf_r;
|
||||
SDL_realloc;
|
||||
SDL_round;
|
||||
SDL_roundf;
|
||||
|
||||
@@ -986,9 +986,11 @@
|
||||
#define SDL_powf SDL_powf_REAL
|
||||
#define SDL_qsort SDL_qsort_REAL
|
||||
#define SDL_qsort_r SDL_qsort_r_REAL
|
||||
#define SDL_rand_bits SDL_rand_bits_REAL
|
||||
#define SDL_rand_float SDL_rand_float_REAL
|
||||
#define SDL_rand_n SDL_rand_n_REAL
|
||||
#define SDL_rand SDL_rand_REAL
|
||||
#define SDL_rand_bits_r SDL_rand_bits_r_REAL
|
||||
#define SDL_rand_r SDL_rand_r_REAL
|
||||
#define SDL_randf SDL_randf_REAL
|
||||
#define SDL_randf_r SDL_randf_r_REAL
|
||||
#define SDL_realloc SDL_realloc_REAL
|
||||
#define SDL_round SDL_round_REAL
|
||||
#define SDL_roundf SDL_roundf_REAL
|
||||
|
||||
@@ -995,9 +995,11 @@ SDL_DYNAPI_PROC(double,SDL_pow,(double a, double b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_powf,(float a, float b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_qsort,(void *a, size_t b, size_t c, SDL_CompareCallback d),(a,b,c,d),)
|
||||
SDL_DYNAPI_PROC(void,SDL_qsort_r,(void *a, size_t b, size_t c, SDL_CompareCallback_r d, void *e),(a,b,c,d,e),)
|
||||
SDL_DYNAPI_PROC(Uint32,SDL_rand_bits,(void),(),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_rand_float,(void),(),return)
|
||||
SDL_DYNAPI_PROC(Sint32,SDL_rand_n,(Sint32 a),(a),return)
|
||||
SDL_DYNAPI_PROC(Sint32,SDL_rand,(Sint32 a),(a),return)
|
||||
SDL_DYNAPI_PROC(Uint32,SDL_rand_bits_r,(Uint64 *a),(a),return)
|
||||
SDL_DYNAPI_PROC(Sint32,SDL_rand_r,(Uint64 *a, Sint32 b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_randf,(void),(),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_randf_r,(Uint64 *a),(a),return)
|
||||
SDL_DYNAPI_PROC(void*,SDL_realloc,(void *a, size_t b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(double,SDL_round,(double a),(a),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_roundf,(float a),(a),return)
|
||||
|
||||
Reference in New Issue
Block a user