SDL/include/SDL3
Ryan C. Gordon 1e8b006d43 stdlib: qsort and bsearch changes.
- Always use internal qsort and bsearch implementation.
- add "_r" reentrant versions.

The reasons for always using the internal versions is that the C runtime
versions' callbacks are not mark STDCALL, so we would have add bridge
functions for them anyhow, The C runtime qsort_r/qsort_s have different
orders of arguments on different platforms, and most importantly: qsort()
isn't a stable sort, and isn't guaranteed to give the same ordering for
two objects marked as equal by the callback...as such, Visual Studio and
glibc can give different sort results for the same data set...in this
sense, having one piece of code shared on all platforms makes sense here,
for reliabillity.

bsearch does not have a standard _r version at all, and suffers from the
same SDLCALL concern. Since the code is simple and we would have to work
around the C runtime, it's easier to just go with the built-in function
and remove all the CMake C runtime tests.

Fixes #9159.
2024-03-01 08:28:12 -05:00
..
SDL.h camera: Renamed "video_capture" files to "camera" and moved to own subdir. 2024-02-20 15:56:26 -05:00
SDL_assert.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_atomic.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_audio.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_begin_code.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_bits.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_blendmode.h blendmode: Corrected docs for `SDL_BLENDOPERATION_[REV_]SUBTRACT`. 2024-01-25 17:48:12 -05:00
SDL_camera.h Sync SDL3 wiki -> header 2024-02-20 20:57:27 +00:00
SDL_clipboard.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_close_code.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_copying.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_cpuinfo.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_egl.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_endian.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_error.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_events.h camera: Patched to compile after rebasing to latest in main. 2024-02-20 15:56:26 -05:00
SDL_filesystem.h Fix typo in SDL_filesystem.h 2024-02-27 08:58:45 -08:00
SDL_gamepad.h Fixed the documentation for SDL_GetGamepadMappings() 2024-03-01 01:55:56 -08:00
SDL_guid.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_haptic.h Note that SDL_GetHaptics() is useful in combination with SDL_OpenHaptic() 2024-01-25 08:21:01 -08:00
SDL_hidapi.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_hints.h Removed SDL_ClearHints() from the public API 2024-02-24 21:07:50 -08:00
SDL_init.h camera: Reworked to operate with a driver interface, like other subsystems. 2024-02-20 15:56:26 -05:00
SDL_intrin.h SDL_intrin.h: adjust for new SDL_PLATFORM_WINDOWS meaning. 2024-01-24 21:20:50 +03:00
SDL_joystick.h Document that SDL_UpdateJoysticks() needs to be called to handle rumble processing 2024-02-08 10:43:00 -08:00
SDL_keyboard.h document that text input is on by default 2024-01-27 15:18:05 -08:00
SDL_keycode.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_loadso.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_locale.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_log.h Document that the default log priority is error, not critical 2024-01-27 15:45:38 -08:00
SDL_main.h main: Indented SDL_main headers for readability, removed SDL2 compat macros. 2024-01-25 17:39:38 -05:00
SDL_main_impl.h main: Indented SDL_main headers for readability, removed SDL2 compat macros. 2024-01-25 17:39:38 -05:00
SDL_messagebox.h Updated structure and field names for consistency 2024-02-11 08:27:56 -08:00
SDL_metal.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_misc.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_mouse.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_mutex.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_oldnames.h Renamed SDL_HINT_PS2_DYNAMIC_VSYNC SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC 2024-02-12 09:54:33 -08:00
SDL_opengl.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_opengl_glext.h replaced line comments in public header. 2023-02-04 10:02:10 +03:00
SDL_opengles.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_opengles2.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_opengles2_gl2.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2ext.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2platform.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_opengles2_khrplatform.h Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
SDL_pen.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_pixels.h Remove SDL_PIXELFORMAT_P010 2024-02-27 12:48:33 -08:00
SDL_platform.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_platform_defines.h Added VisionOS as a supported target to the Xcode project 2024-01-27 11:07:21 -08:00
SDL_power.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_properties.h camera: Add an optional property that reports if a camera is back or front. 2024-02-20 15:56:26 -05:00
SDL_quit.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_rect.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_render.h Sync SDL3 wiki -> header 2024-03-01 01:39:28 +00:00
SDL_revision.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_rwops.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_scancode.h Clarified that SDL scancodes are unaffected by keyboard layout 2024-02-07 09:33:27 -08:00
SDL_sensor.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_stdinc.h stdlib: qsort and bsearch changes. 2024-03-01 08:28:12 -05:00
SDL_surface.h Sync SDL3 wiki -> header 2024-02-22 03:26:22 +00:00
SDL_system.h Sync SDL3 wiki -> header 2024-02-13 17:07:23 +00:00
SDL_test.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_assert.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_common.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_test_compare.h Made SDL_ReadSurfacePixel a public function 2024-01-18 07:00:10 -08:00
SDL_test_crc32.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_font.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_fuzzer.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_harness.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_log.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_md5.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_memory.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_test_random.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_thread.h SDL_thread.h: replace uses of __GDK__ and __WINRT__ (missed in #8875.) 2024-01-24 06:28:10 +03:00
SDL_timer.h Updated SDL_TimerID to use the same type as other IDs in SDL 2024-01-18 07:08:15 -08:00
SDL_touch.h Switched SDL_TouchID and SDL_FingerID to be Uint64 with 0 being an invalid value 2024-01-18 10:55:24 -08:00
SDL_version.h Updated structure and field names for consistency 2024-02-11 08:27:56 -08:00
SDL_video.h Sync SDL3 wiki -> header 2024-02-25 23:55:23 +00:00
SDL_vulkan.h Sync SDL3 wiki -> header 2023-11-06 18:32:15 +00:00