From 6501e90018ab1d58047e5b4382c6bc6d04051191 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 22 Aug 2024 10:30:45 -0700
Subject: [PATCH] Use C++ style comments consistently in SDL source code
Implemented using this script:
find . -type f -exec sed -i'' -e 's,/\* *\([^*]*\)\*/ *$,// \1,' -e 's, \+$,,' {} \;
git checkout \
core/linux/SDL_evdev_kbd_default_keymap.h \
events/imKStoUCS.* \
hidapi \
joystick/controller_type.c \
joystick/controller_type.h \
joystick/hidapi/steam/controller_constants.h \
joystick/hidapi/steam/controller_structs.h \
joystick/SDL_gamepad_db.h \
libm \
render/*/*Shader*.h \
render/vitagxm/SDL_render_vita_gxm_shaders.h \
render/metal/SDL_shaders_metal_*.h \
stdlib/SDL_malloc.c \
stdlib/SDL_qsort.c \
stdlib/SDL_strtokr.c \
test/ \
video/directx/SDL_d3d12_xbox_cmacros.h \
video/directx/d3d12.h \
video/directx/d3d12sdklayers.h \
video/khronos \
video/x11/edid-parse.c \
video/x11/xsettings-client.* \
video/yuv2rgb
sed -i'' -e 's,/\* *\([^*]*\)\*/ *$,// \1,' -e 's, \+$,,' hidapi/SDL_hidapi.c
---
src/SDL.c | 88 +-
src/SDL_assert.c | 64 +-
src/SDL_assert_c.h | 2 +-
src/SDL_error.c | 6 +-
src/SDL_error_c.h | 4 +-
src/SDL_guid.c | 14 +-
src/SDL_hashtable.h | 4 +-
src/SDL_hints_c.h | 4 +-
src/SDL_internal.h | 28 +-
src/SDL_list.c | 6 +-
src/SDL_list.h | 2 +-
src/SDL_log.c | 70 +-
src/SDL_log_c.h | 4 +-
src/SDL_properties.c | 4 +-
src/SDL_utils.c | 26 +-
src/SDL_utils_c.h | 6 +-
src/atomic/SDL_atomic.c | 18 +-
src/atomic/SDL_spinlock.c | 24 +-
src/audio/SDL_audio.c | 2 +-
src/audio/SDL_audio_c.h | 2 +-
src/audio/SDL_audio_channel_converters.h | 2 +-
src/audio/SDL_wave.c | 248 ++---
src/audio/SDL_wave.h | 70 +-
src/audio/coreaudio/SDL_coreaudio.m | 2 +-
src/audio/emscripten/SDL_emscriptenaudio.c | 4 +-
src/audio/netbsd/SDL_netbsdaudio.c | 4 +-
src/audio/wasapi/SDL_wasapi.c | 2 +-
src/camera/emscripten/SDL_camera_emscripten.c | 4 +-
.../SDL_camera_mediafoundation.c | 8 +-
src/core/SDL_core_unsupported.c | 10 +-
src/core/android/SDL_android.c | 282 ++---
src/core/android/SDL_android.h | 42 +-
.../freebsd/SDL_evdev_kbd_default_keyaccmap.h | 50 +-
src/core/freebsd/SDL_evdev_kbd_freebsd.c | 88 +-
src/core/gdk/SDL_gdk.cpp | 16 +-
src/core/gdk/SDL_gdk.h | 2 +-
src/core/haiku/SDL_BApp.h | 62 +-
src/core/haiku/SDL_BeApp.cc | 34 +-
src/core/haiku/SDL_BeApp.h | 8 +-
src/core/linux/SDL_dbus.c | 50 +-
src/core/linux/SDL_dbus.h | 8 +-
src/core/linux/SDL_evdev.c | 82 +-
src/core/linux/SDL_evdev.h | 4 +-
src/core/linux/SDL_evdev_capabilities.c | 32 +-
src/core/linux/SDL_evdev_capabilities.h | 6 +-
src/core/linux/SDL_evdev_kbd.c | 72 +-
src/core/linux/SDL_evdev_kbd.h | 2 +-
src/core/linux/SDL_fcitx.c | 28 +-
src/core/linux/SDL_fcitx.h | 2 +-
src/core/linux/SDL_ibus.c | 34 +-
src/core/linux/SDL_ibus.h | 8 +-
src/core/linux/SDL_ime.c | 10 +-
src/core/linux/SDL_ime.h | 2 +-
src/core/linux/SDL_sandbox.h | 4 +-
src/core/linux/SDL_system_theme.c | 4 +-
src/core/linux/SDL_system_theme.h | 2 +-
src/core/linux/SDL_threadprio.c | 28 +-
src/core/linux/SDL_udev.c | 24 +-
src/core/linux/SDL_udev.h | 6 +-
src/core/openbsd/SDL_wscons_kbd.c | 78 +-
src/core/openbsd/SDL_wscons_mouse.c | 12 +-
src/core/unix/SDL_appid.c | 6 +-
src/core/unix/SDL_appid.h | 2 +-
src/core/unix/SDL_poll.c | 8 +-
src/core/unix/SDL_poll.h | 2 +-
src/core/windows/SDL_directx.h | 16 +-
src/core/windows/SDL_hid.c | 8 +-
src/core/windows/SDL_hid.h | 4 +-
src/core/windows/SDL_immdevice.c | 28 +-
src/core/windows/SDL_immdevice.h | 2 +-
src/core/windows/SDL_windows.c | 48 +-
src/core/windows/SDL_windows.h | 52 +-
src/core/windows/SDL_xinput.c | 22 +-
src/core/windows/SDL_xinput.h | 48 +-
src/core/winrt/SDL_winrtapp_common.cpp | 2 +-
src/core/winrt/SDL_winrtapp_direct3d.cpp | 10 +-
src/core/winrt/SDL_winrtapp_xaml.cpp | 6 +-
src/cpuinfo/SDL_cpuinfo.c | 78 +-
src/cpuinfo/SDL_cpuinfo_c.h | 2 +-
src/dialog/SDL_dialog_utils.c | 12 +-
src/dialog/SDL_dialog_utils.h | 14 +-
src/dialog/android/SDL_androiddialog.c | 4 +-
src/dialog/cocoa/SDL_cocoadialog.m | 4 +-
src/dialog/unix/SDL_portaldialog.c | 30 +-
src/dialog/unix/SDL_unixdialog.c | 14 +-
src/dialog/unix/SDL_zenitydialog.c | 18 +-
src/dialog/windows/SDL_windowsdialog.c | 24 +-
src/dynapi/SDL_dynapi.c | 70 +-
src/dynapi/SDL_dynapi.h | 24 +-
src/dynapi/SDL_dynapi.sym | 2 +-
src/dynapi/SDL_dynapi_overrides.h | 4 +-
src/dynapi/SDL_dynapi_procs.h | 4 +-
src/dynapi/gendynapi.py | 2 +-
src/events/SDL_categories.c | 6 +-
src/events/SDL_categories_c.h | 2 +-
src/events/SDL_clipboardevents.c | 4 +-
src/events/SDL_clipboardevents_c.h | 2 +-
src/events/SDL_displayevents.c | 4 +-
src/events/SDL_displayevents_c.h | 2 +-
src/events/SDL_dropevents.c | 6 +-
src/events/SDL_dropevents_c.h | 2 +-
src/events/SDL_events.c | 136 +--
src/events/SDL_events_c.h | 6 +-
src/events/SDL_keyboard.c | 54 +-
src/events/SDL_keyboard_c.h | 34 +-
src/events/SDL_keymap.c | 4 +-
src/events/SDL_keymap_c.h | 2 +-
src/events/SDL_keysym_to_scancode.c | 674 ++++++------
src/events/SDL_keysym_to_scancode_c.h | 4 +-
src/events/SDL_mouse.c | 126 +--
src/events/SDL_mouse_c.h | 78 +-
src/events/SDL_pen.c | 2 +-
src/events/SDL_pen_c.h | 4 +-
src/events/SDL_quit.c | 20 +-
src/events/SDL_scancode_tables.c | 2 +-
src/events/SDL_touch.c | 36 +-
src/events/SDL_touch_c.h | 18 +-
src/events/SDL_windowevents.c | 10 +-
src/events/SDL_windowevents_c.h | 2 +-
src/events/default_cursor.h | 4 +-
src/events/scancodes_darwin.h | 48 +-
src/events/scancodes_linux.h | 992 +++++++++---------
src/events/scancodes_windows.h | 10 +-
src/events/scancodes_xfree86.h | 528 +++++-----
src/file/SDL_iostream.c | 66 +-
src/file/n3ds/SDL_iostreamromfs.c | 8 +-
src/file/n3ds/SDL_iostreamromfs.h | 2 +-
src/filesystem/SDL_filesystem.c | 2 +-
src/filesystem/android/SDL_sysfilesystem.c | 6 +-
src/filesystem/cocoa/SDL_sysfilesystem.m | 12 +-
src/filesystem/dummy/SDL_sysfilesystem.c | 4 +-
src/filesystem/dummy/SDL_sysfsops.c | 2 +-
src/filesystem/emscripten/SDL_sysfilesystem.c | 4 +-
src/filesystem/gdk/SDL_sysfilesystem.cpp | 22 +-
src/filesystem/haiku/SDL_sysfilesystem.cc | 10 +-
src/filesystem/n3ds/SDL_sysfilesystem.c | 6 +-
src/filesystem/posix/SDL_sysfsops.c | 4 +-
src/filesystem/ps2/SDL_sysfilesystem.c | 8 +-
src/filesystem/psp/SDL_sysfilesystem.c | 6 +-
src/filesystem/riscos/SDL_sysfilesystem.c | 12 +-
src/filesystem/unix/SDL_sysfilesystem.c | 52 +-
src/filesystem/vita/SDL_sysfilesystem.c | 6 +-
src/filesystem/windows/SDL_sysfilesystem.c | 26 +-
src/filesystem/windows/SDL_sysfsops.c | 2 +-
src/filesystem/winrt/SDL_sysfilesystem.cpp | 8 +-
src/haptic/SDL_haptic.c | 70 +-
src/haptic/SDL_haptic_c.h | 2 +-
src/haptic/SDL_syshaptic.h | 36 +-
src/haptic/android/SDL_syshaptic.c | 8 +-
src/haptic/android/SDL_syshaptic_c.h | 2 +-
src/haptic/darwin/SDL_syshaptic.c | 216 ++--
src/haptic/darwin/SDL_syshaptic_c.h | 2 +-
src/haptic/dummy/SDL_syshaptic.c | 2 +-
src/haptic/linux/SDL_syshaptic.c | 206 ++--
src/haptic/windows/SDL_dinputhaptic.c | 224 ++--
src/haptic/windows/SDL_dinputhaptic_c.h | 4 +-
src/haptic/windows/SDL_windowshaptic.c | 30 +-
src/haptic/windows/SDL_windowshaptic_c.h | 10 +-
src/hidapi/SDL_hidapi.c | 158 +--
src/joystick/SDL_gamepad.c | 200 ++--
src/joystick/SDL_gamepad_c.h | 14 +-
src/joystick/SDL_joystick.c | 596 +++++------
src/joystick/SDL_joystick_c.h | 86 +-
src/joystick/SDL_steam_virtual_gamepad.c | 2 +-
src/joystick/SDL_sysjoystick.h | 112 +-
src/joystick/android/SDL_sysjoystick.c | 42 +-
src/joystick/android/SDL_sysjoystick_c.h | 10 +-
src/joystick/apple/SDL_mfijoystick.m | 142 +--
src/joystick/apple/SDL_mfijoystick_c.h | 2 +-
src/joystick/bsd/SDL_bsdjoystick.c | 54 +-
src/joystick/controller_list.h | 2 +-
src/joystick/darwin/SDL_iokitjoystick.c | 82 +-
src/joystick/darwin/SDL_iokitjoystick_c.h | 38 +-
src/joystick/dummy/SDL_sysjoystick.c | 4 +-
src/joystick/emscripten/SDL_sysjoystick.c | 30 +-
src/joystick/emscripten/SDL_sysjoystick_c.h | 4 +-
src/joystick/gdk/SDL_gameinputjoystick.c | 70 +-
src/joystick/haiku/SDL_haikujoystick.cc | 42 +-
src/joystick/hidapi/SDL_hidapi_combined.c | 10 +-
src/joystick/hidapi/SDL_hidapi_gamecube.c | 112 +-
src/joystick/hidapi/SDL_hidapi_luna.c | 28 +-
src/joystick/hidapi/SDL_hidapi_nintendo.h | 6 +-
src/joystick/hidapi/SDL_hidapi_ps3.c | 260 ++---
src/joystick/hidapi/SDL_hidapi_ps4.c | 118 +--
src/joystick/hidapi/SDL_hidapi_ps5.c | 328 +++---
src/joystick/hidapi/SDL_hidapi_rumble.c | 12 +-
src/joystick/hidapi/SDL_hidapi_rumble.h | 8 +-
src/joystick/hidapi/SDL_hidapi_shield.c | 42 +-
src/joystick/hidapi/SDL_hidapi_stadia.c | 16 +-
src/joystick/hidapi/SDL_hidapi_steam.c | 44 +-
src/joystick/hidapi/SDL_hidapi_steamdeck.c | 6 +-
src/joystick/hidapi/SDL_hidapi_switch.c | 208 ++--
src/joystick/hidapi/SDL_hidapi_wii.c | 156 +--
src/joystick/hidapi/SDL_hidapi_xbox360.c | 26 +-
src/joystick/hidapi/SDL_hidapi_xbox360w.c | 20 +-
src/joystick/hidapi/SDL_hidapi_xboxone.c | 130 +--
src/joystick/hidapi/SDL_hidapijoystick.c | 188 ++--
src/joystick/hidapi/SDL_hidapijoystick_c.h | 36 +-
src/joystick/linux/SDL_sysjoystick.c | 240 ++---
src/joystick/linux/SDL_sysjoystick_c.h | 26 +-
src/joystick/n3ds/SDL_sysjoystick.c | 8 +-
src/joystick/ps2/SDL_sysjoystick.c | 54 +-
src/joystick/psp/SDL_sysjoystick.c | 46 +-
src/joystick/steam/SDL_steamcontroller.h | 2 +-
src/joystick/usb_ids.h | 18 +-
src/joystick/virtual/SDL_virtualjoystick.c | 18 +-
src/joystick/virtual/SDL_virtualjoystick_c.h | 4 +-
src/joystick/vita/SDL_sysjoystick.c | 42 +-
src/joystick/windows/SDL_dinputjoystick.c | 102 +-
src/joystick/windows/SDL_dinputjoystick_c.h | 4 +-
src/joystick/windows/SDL_rawinputjoystick.c | 182 ++--
src/joystick/windows/SDL_rawinputjoystick_c.h | 6 +-
.../windows/SDL_windows_gaming_input.c | 60 +-
src/joystick/windows/SDL_windowsjoystick.c | 72 +-
src/joystick/windows/SDL_windowsjoystick_c.h | 22 +-
src/joystick/windows/SDL_xinputjoystick.c | 34 +-
src/joystick/windows/SDL_xinputjoystick_c.h | 4 +-
src/loadso/dlopen/SDL_sysloadso.c | 6 +-
src/loadso/dummy/SDL_sysloadso.c | 6 +-
src/loadso/windows/SDL_sysloadso.c | 6 +-
src/locale/SDL_locale.c | 18 +-
src/locale/SDL_syslocale.h | 2 +-
src/locale/dummy/SDL_syslocale.c | 2 +-
src/locale/emscripten/SDL_syslocale.c | 14 +-
src/locale/n3ds/SDL_syslocale.c | 4 +-
src/locale/unix/SDL_syslocale.c | 16 +-
src/locale/windows/SDL_syslocale.c | 20 +-
src/locale/winrt/SDL_syslocale.c | 8 +-
src/main/SDL_runapp.c | 2 +-
src/main/gdk/SDL_sysmain_runapp.cpp | 16 +-
src/main/n3ds/SDL_sysmain_runapp.c | 6 +-
src/main/ngage/SDL_sysmain_runapp.cpp | 16 +-
src/main/ps2/SDL_sysmain_runapp.c | 4 +-
src/main/psp/SDL_sysmain_runapp.c | 4 +-
src/main/windows/SDL_sysmain_runapp.c | 12 +-
src/misc/ios/SDL_sysurl.m | 2 +-
src/misc/macos/SDL_sysurl.m | 2 +-
src/misc/unix/SDL_sysurl.c | 20 +-
src/misc/windows/SDL_sysurl.c | 8 +-
src/power/SDL_power.c | 28 +-
src/power/SDL_syspower.h | 8 +-
src/power/android/SDL_syspower.c | 4 +-
src/power/emscripten/SDL_syspower.c | 4 +-
src/power/haiku/SDL_syspower.c | 36 +-
src/power/linux/SDL_syspower.c | 132 +--
src/power/macos/SDL_syspower.c | 26 +-
src/power/n3ds/SDL_syspower.c | 4 +-
src/power/psp/SDL_syspower.c | 6 +-
src/power/uikit/SDL_syspower.h | 2 +-
src/power/uikit/SDL_syspower.m | 18 +-
src/power/vita/SDL_syspower.c | 6 +-
src/power/windows/SDL_syspower.c | 26 +-
src/power/winrt/SDL_syspower.cpp | 6 +-
src/render/SDL_d3dmath.c | 4 +-
src/render/SDL_d3dmath.h | 8 +-
src/render/SDL_render.c | 294 +++---
src/render/SDL_sysrender.h | 50 +-
src/render/SDL_yuv_sw.c | 30 +-
src/render/SDL_yuv_sw_c.h | 8 +-
src/render/direct3d/SDL_render_d3d.c | 94 +-
src/render/direct3d/SDL_shaders_d3d.c | 4 +-
src/render/direct3d/SDL_shaders_d3d.h | 2 +-
src/render/direct3d11/SDL_render_d3d11.c | 220 ++--
src/render/direct3d11/SDL_render_winrt.cpp | 8 +-
src/render/direct3d11/SDL_render_winrt.h | 2 +-
src/render/direct3d11/SDL_shaders_d3d11.c | 10 +-
src/render/direct3d11/SDL_shaders_d3d11.h | 2 +-
src/render/direct3d12/SDL_render_d3d12.c | 290 ++---
.../direct3d12/SDL_render_d3d12_xbox.cpp | 2 +-
src/render/direct3d12/SDL_render_d3d12_xbox.h | 4 +-
src/render/direct3d12/SDL_shaders_d3d12.c | 4 +-
src/render/direct3d12/SDL_shaders_d3d12.h | 6 +-
.../direct3d12/SDL_shaders_d3d12_xboxone.cpp | 6 +-
.../SDL_shaders_d3d12_xboxseries.cpp | 6 +-
src/render/metal/SDL_render_metal.m | 74 +-
src/render/opengl/SDL_render_gl.c | 138 +--
src/render/opengl/SDL_shaders_gl.c | 82 +-
src/render/opengl/SDL_shaders_gl.h | 4 +-
src/render/opengles2/SDL_render_gles2.c | 178 ++--
src/render/opengles2/SDL_shaders_gles2.c | 20 +-
src/render/opengles2/SDL_shaders_gles2.h | 6 +-
src/render/ps2/SDL_render_ps2.c | 50 +-
src/render/psp/SDL_render_psp.c | 36 +-
src/render/software/SDL_blendfillrect.c | 16 +-
src/render/software/SDL_blendfillrect.h | 2 +-
src/render/software/SDL_blendline.c | 14 +-
src/render/software/SDL_blendline.h | 2 +-
src/render/software/SDL_blendpoint.c | 12 +-
src/render/software/SDL_blendpoint.h | 2 +-
src/render/software/SDL_draw.h | 10 +-
src/render/software/SDL_drawline.c | 12 +-
src/render/software/SDL_drawline.h | 2 +-
src/render/software/SDL_drawpoint.c | 8 +-
src/render/software/SDL_drawpoint.h | 2 +-
src/render/software/SDL_render_sw.c | 68 +-
src/render/software/SDL_render_sw_c.h | 2 +-
src/render/software/SDL_rotate.c | 52 +-
src/render/software/SDL_rotate.h | 2 +-
src/render/software/SDL_triangle.c | 76 +-
src/render/software/SDL_triangle.h | 2 +-
src/render/vitagxm/SDL_render_vita_gxm.c | 24 +-
.../vitagxm/SDL_render_vita_gxm_memory.c | 2 +-
.../vitagxm/SDL_render_vita_gxm_memory.h | 2 +-
.../vitagxm/SDL_render_vita_gxm_tools.c | 20 +-
.../vitagxm/SDL_render_vita_gxm_tools.h | 2 +-
.../vitagxm/SDL_render_vita_gxm_types.h | 2 +-
src/render/vulkan/SDL_render_vulkan.c | 240 ++---
src/render/vulkan/SDL_shaders_vulkan.c | 4 +-
src/render/vulkan/SDL_shaders_vulkan.h | 6 +-
src/render/vulkan/VULKAN_VertexShader.hlsl | 2 +-
src/render/vulkan/compile_shaders.bat | 8 +-
src/sensor/SDL_sensor.c | 32 +-
src/sensor/SDL_sensor_c.h | 18 +-
src/sensor/SDL_syssensor.h | 40 +-
src/sensor/android/SDL_androidsensor.c | 14 +-
src/sensor/coremotion/SDL_coremotionsensor.h | 2 +-
src/sensor/coremotion/SDL_coremotionsensor.m | 4 +-
src/sensor/dummy/SDL_dummysensor.c | 2 +-
src/sensor/n3ds/SDL_n3dssensor.c | 4 +-
src/sensor/vita/SDL_vitasensor.c | 2 +-
src/sensor/vita/SDL_vitasensor.h | 2 +-
src/sensor/windows/SDL_windowssensor.c | 12 +-
src/stdlib/SDL_casefolding.h | 2 +-
src/stdlib/SDL_crc16.c | 2 +-
src/stdlib/SDL_crc32.c | 2 +-
src/stdlib/SDL_getenv.c | 58 +-
src/stdlib/SDL_iconv.c | 58 +-
src/stdlib/SDL_memcpy.c | 10 +-
src/stdlib/SDL_memmove.c | 10 +-
src/stdlib/SDL_memset.c | 12 +-
src/stdlib/SDL_mslibc.c | 14 +-
src/stdlib/SDL_random.c | 2 +-
src/stdlib/SDL_stdlib.c | 14 +-
src/stdlib/SDL_string.c | 134 +--
src/stdlib/SDL_vacopy.h | 4 +-
src/storage/SDL_storage.c | 8 +-
src/storage/SDL_sysstorage.h | 6 +-
src/storage/generic/SDL_genericstorage.c | 28 +-
src/storage/steam/SDL_steamstorage.c | 12 +-
src/thread/SDL_systhread.h | 24 +-
src/thread/SDL_thread.c | 42 +-
src/thread/SDL_thread_c.h | 16 +-
src/thread/generic/SDL_syscond.c | 22 +-
src/thread/generic/SDL_syscond_c.h | 4 +-
src/thread/generic/SDL_sysmutex.c | 4 +-
src/thread/generic/SDL_syssem.c | 6 +-
src/thread/generic/SDL_systhread.c | 2 +-
src/thread/generic/SDL_systhread_c.h | 2 +-
src/thread/n3ds/SDL_syscond.c | 12 +-
src/thread/n3ds/SDL_sysmutex_c.h | 2 +-
src/thread/n3ds/SDL_syssem.c | 8 +-
src/thread/n3ds/SDL_systhread.c | 8 +-
src/thread/n3ds/SDL_systhread_c.h | 2 +-
src/thread/ngage/SDL_sysmutex.cpp | 16 +-
src/thread/ngage/SDL_syssem.cpp | 4 +-
src/thread/ngage/SDL_systhread.cpp | 4 +-
src/thread/ps2/SDL_syssem.c | 12 +-
src/thread/ps2/SDL_systhread.c | 12 +-
src/thread/psp/SDL_syssem.c | 14 +-
src/thread/psp/SDL_systhread.c | 10 +-
src/thread/pthread/SDL_syscond.c | 10 +-
src/thread/pthread/SDL_sysmutex_c.h | 2 +-
src/thread/pthread/SDL_sysrwlock.c | 2 +-
src/thread/pthread/SDL_syssem.c | 20 +-
src/thread/pthread/SDL_systhread.c | 36 +-
src/thread/stdcpp/SDL_syscond.cpp | 10 +-
src/thread/stdcpp/SDL_sysmutex.cpp | 2 +-
src/thread/stdcpp/SDL_systhread.cpp | 4 +-
src/thread/stdcpp/SDL_systhread_c.h | 2 +-
src/thread/vita/SDL_syssem.c | 14 +-
src/thread/vita/SDL_systhread.c | 10 +-
src/thread/windows/SDL_syscond_cv.c | 20 +-
src/thread/windows/SDL_sysmutex.c | 6 +-
src/thread/windows/SDL_sysmutex_c.h | 4 +-
src/thread/windows/SDL_sysrwlock_srw.c | 18 +-
src/thread/windows/SDL_syssem.c | 38 +-
src/thread/windows/SDL_systhread.c | 22 +-
src/thread/windows/SDL_systhread_c.h | 2 +-
src/thread/windows/SDL_systls.c | 2 +-
src/time/SDL_time.c | 12 +-
src/time/SDL_time_c.h | 2 +-
src/time/n3ds/SDL_systime.c | 34 +-
src/time/ps2/SDL_systime.c | 6 +-
src/time/psp/SDL_systime.c | 6 +-
src/time/unix/SDL_systime.c | 8 +-
src/time/vita/SDL_systime.c | 6 +-
src/time/windows/SDL_systime.c | 10 +-
src/timer/SDL_timer.c | 60 +-
src/timer/SDL_timer_c.h | 4 +-
src/timer/haiku/SDL_systimer.c | 2 +-
src/timer/n3ds/SDL_systimer.c | 2 +-
src/timer/ngage/SDL_systimer.cpp | 4 +-
src/timer/ps2/SDL_systimer.c | 2 +-
src/timer/psp/SDL_systimer.c | 2 +-
src/timer/unix/SDL_systimer.c | 14 +-
src/timer/vita/SDL_systimer.c | 2 +-
src/timer/windows/SDL_systimer.c | 8 +-
src/video/SDL_RLEaccel.c | 152 +--
src/video/SDL_RLEaccel_c.h | 4 +-
src/video/SDL_blit.c | 46 +-
src/video/SDL_blit.h | 56 +-
src/video/SDL_blit_0.c | 24 +-
src/video/SDL_blit_1.c | 90 +-
src/video/SDL_blit_A.c | 296 +++---
src/video/SDL_blit_N.c | 444 ++++----
src/video/SDL_blit_auto.c | 8 +-
src/video/SDL_blit_auto.h | 8 +-
src/video/SDL_blit_copy.c | 6 +-
src/video/SDL_blit_copy.h | 2 +-
src/video/SDL_blit_slow.c | 56 +-
src/video/SDL_blit_slow.h | 2 +-
src/video/SDL_bmp.c | 162 +--
src/video/SDL_clipboard.c | 14 +-
src/video/SDL_clipboard_c.h | 10 +-
src/video/SDL_egl.c | 120 +--
src/video/SDL_egl_c.h | 24 +-
src/video/SDL_fillrect.c | 22 +-
src/video/SDL_pixels.c | 130 +--
src/video/SDL_pixels_c.h | 12 +-
src/video/SDL_rect.c | 8 +-
src/video/SDL_rect_c.h | 2 +-
src/video/SDL_rect_impl.h | 58 +-
src/video/SDL_stretch.c | 96 +-
src/video/SDL_surface.c | 230 ++--
src/video/SDL_surface_c.h | 10 +-
src/video/SDL_sysvideo.h | 64 +-
src/video/SDL_video.c | 374 +++----
src/video/SDL_video_c.h | 2 +-
src/video/SDL_video_unsupported.c | 4 +-
src/video/SDL_vulkan_internal.h | 8 +-
src/video/SDL_vulkan_utils.c | 36 +-
src/video/SDL_yuv.c | 148 +--
src/video/SDL_yuv_c.h | 4 +-
src/video/android/SDL_androidclipboard.c | 2 +-
src/video/android/SDL_androidclipboard.h | 2 +-
src/video/android/SDL_androidevents.c | 18 +-
src/video/android/SDL_androidgl.c | 4 +-
src/video/android/SDL_androidgl.h | 2 +-
src/video/android/SDL_androidkeyboard.c | 562 +++++-----
src/video/android/SDL_androidmessagebox.c | 2 +-
src/video/android/SDL_androidmessagebox.h | 2 +-
src/video/android/SDL_androidmouse.c | 12 +-
src/video/android/SDL_androidmouse.h | 2 +-
src/video/android/SDL_androidtouch.c | 10 +-
src/video/android/SDL_androidvideo.c | 36 +-
src/video/android/SDL_androidvideo.h | 6 +-
src/video/android/SDL_androidvulkan.c | 2 +-
src/video/android/SDL_androidvulkan.h | 2 +-
src/video/android/SDL_androidwindow.c | 14 +-
src/video/android/SDL_androidwindow.h | 6 +-
src/video/cocoa/SDL_cocoaclipboard.h | 4 +-
src/video/cocoa/SDL_cocoaclipboard.m | 4 +-
src/video/cocoa/SDL_cocoaevents.h | 2 +-
src/video/cocoa/SDL_cocoaevents.m | 40 +-
src/video/cocoa/SDL_cocoakeyboard.h | 2 +-
src/video/cocoa/SDL_cocoakeyboard.m | 34 +-
src/video/cocoa/SDL_cocoamessagebox.h | 2 +-
src/video/cocoa/SDL_cocoamessagebox.m | 6 +-
src/video/cocoa/SDL_cocoametalview.h | 6 +-
src/video/cocoa/SDL_cocoametalview.m | 10 +-
src/video/cocoa/SDL_cocoamodes.h | 2 +-
src/video/cocoa/SDL_cocoamodes.m | 38 +-
src/video/cocoa/SDL_cocoamouse.h | 8 +-
src/video/cocoa/SDL_cocoamouse.m | 26 +-
src/video/cocoa/SDL_cocoaopengl.h | 8 +-
src/video/cocoa/SDL_cocoaopengl.m | 50 +-
src/video/cocoa/SDL_cocoaopengles.h | 6 +-
src/video/cocoa/SDL_cocoaopengles.m | 16 +-
src/video/cocoa/SDL_cocoapen.h | 2 +-
src/video/cocoa/SDL_cocoapen.m | 2 +-
src/video/cocoa/SDL_cocoashape.h | 2 +-
src/video/cocoa/SDL_cocoashape.m | 2 +-
src/video/cocoa/SDL_cocoavideo.h | 10 +-
src/video/cocoa/SDL_cocoavideo.m | 22 +-
src/video/cocoa/SDL_cocoavulkan.h | 2 +-
src/video/cocoa/SDL_cocoavulkan.m | 8 +-
src/video/cocoa/SDL_cocoawindow.h | 12 +-
src/video/cocoa/SDL_cocoawindow.m | 246 ++---
src/video/directx/SDL_d3d12.h | 18 +-
src/video/directx/gen_xbox_cmacros.cs | 2 +-
src/video/dummy/SDL_nullevents.c | 4 +-
src/video/dummy/SDL_nullevents_c.h | 2 +-
src/video/dummy/SDL_nullframebuffer.c | 8 +-
src/video/dummy/SDL_nullframebuffer_c.h | 2 +-
src/video/dummy/SDL_nullvideo.c | 20 +-
src/video/dummy/SDL_nullvideo.h | 2 +-
src/video/emscripten/SDL_emscriptenevents.c | 50 +-
src/video/emscripten/SDL_emscriptenevents.h | 2 +-
.../emscripten/SDL_emscriptenframebuffer.c | 16 +-
.../emscripten/SDL_emscriptenframebuffer.h | 2 +-
src/video/emscripten/SDL_emscriptenmouse.c | 18 +-
src/video/emscripten/SDL_emscriptenmouse.h | 2 +-
src/video/emscripten/SDL_emscriptenopengles.c | 10 +-
src/video/emscripten/SDL_emscriptenopengles.h | 6 +-
src/video/emscripten/SDL_emscriptenvideo.c | 44 +-
src/video/emscripten/SDL_emscriptenvideo.h | 2 +-
src/video/gdk/SDL_gdktextinput.cpp | 52 +-
src/video/haiku/SDL_BWin.h | 80 +-
src/video/haiku/SDL_bclipboard.cc | 10 +-
src/video/haiku/SDL_bevents.cc | 4 +-
src/video/haiku/SDL_bframebuffer.cc | 18 +-
src/video/haiku/SDL_bkeyboard.cc | 4 +-
src/video/haiku/SDL_bmessagebox.cc | 4 +-
src/video/haiku/SDL_bmessagebox.h | 2 +-
src/video/haiku/SDL_bmodes.cc | 30 +-
src/video/haiku/SDL_bopengl.cc | 10 +-
src/video/haiku/SDL_bopengl.h | 12 +-
src/video/haiku/SDL_bvideo.cc | 22 +-
src/video/haiku/SDL_bwindow.cc | 20 +-
src/video/kmsdrm/SDL_kmsdrmdyn.c | 28 +-
src/video/kmsdrm/SDL_kmsdrmdyn.h | 4 +-
src/video/kmsdrm/SDL_kmsdrmevents.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmevents.h | 2 +-
src/video/kmsdrm/SDL_kmsdrmmouse.c | 66 +-
src/video/kmsdrm/SDL_kmsdrmmouse.h | 2 +-
src/video/kmsdrm/SDL_kmsdrmopengles.c | 14 +-
src/video/kmsdrm/SDL_kmsdrmopengles.h | 6 +-
src/video/kmsdrm/SDL_kmsdrmsym.h | 8 +-
src/video/kmsdrm/SDL_kmsdrmvideo.c | 162 +--
src/video/kmsdrm/SDL_kmsdrmvideo.h | 28 +-
src/video/kmsdrm/SDL_kmsdrmvulkan.c | 84 +-
src/video/kmsdrm/SDL_kmsdrmvulkan.h | 2 +-
src/video/n3ds/SDL_n3dsevents.c | 2 +-
src/video/n3ds/SDL_n3dsevents_c.h | 2 +-
src/video/n3ds/SDL_n3dsframebuffer.c | 4 +-
src/video/n3ds/SDL_n3dsframebuffer_c.h | 2 +-
src/video/n3ds/SDL_n3dsswkb.c | 2 +-
src/video/n3ds/SDL_n3dsswkb.h | 2 +-
src/video/n3ds/SDL_n3dstouch.c | 2 +-
src/video/n3ds/SDL_n3dstouch.h | 2 +-
src/video/n3ds/SDL_n3dsvideo.c | 8 +-
src/video/n3ds/SDL_n3dsvideo.h | 2 +-
src/video/ngage/SDL_ngageevents.cpp | 14 +-
src/video/ngage/SDL_ngageframebuffer.cpp | 54 +-
src/video/ngage/SDL_ngageframebuffer_c.h | 2 +-
src/video/ngage/SDL_ngagevideo.cpp | 28 +-
src/video/ngage/SDL_ngagevideo.h | 8 +-
src/video/ngage/SDL_ngagewindow.cpp | 4 +-
src/video/ngage/SDL_ngagewindow.h | 2 +-
src/video/offscreen/SDL_offscreenevents.c | 4 +-
.../offscreen/SDL_offscreenframebuffer.c | 8 +-
src/video/offscreen/SDL_offscreenopengles.c | 4 +-
src/video/offscreen/SDL_offscreenopengles.h | 4 +-
src/video/offscreen/SDL_offscreenvideo.c | 20 +
(Patch may be truncated, please check the link at the top of this post.)