Browse Source

Fixed bug 5235 - All internal sources should include SDL_assert.h

Ryan C. Gordon

We should really stick this in SDL_internal.h or something so it's always available.
Sam Lantinga 4 years ago
parent
commit
cb36189692
100 changed files with 6 additions and 111 deletions
  1. 1 2
      src/SDL_dataqueue.c
  2. 1 0
      src/SDL_internal.h
  3. 0 1
      src/audio/SDL_audiocvt.c
  4. 1 2
      src/audio/SDL_audiotypecvt.c
  5. 0 1
      src/audio/alsa/SDL_alsa_audio.c
  6. 0 1
      src/audio/android/SDL_androidaudio.c
  7. 0 1
      src/audio/coreaudio/SDL_coreaudio.m
  8. 0 1
      src/audio/directsound/SDL_directsound.c
  9. 0 1
      src/audio/emscripten/SDL_emscriptenaudio.c
  10. 0 1
      src/audio/haiku/SDL_haikuaudio.cc
  11. 0 2
      src/audio/jack/SDL_jackaudio.c
  12. 0 1
      src/audio/openslES/SDL_openslES.c
  13. 0 1
      src/audio/pulseaudio/SDL_pulseaudio.c
  14. 0 2
      src/audio/wasapi/SDL_wasapi.c
  15. 0 2
      src/audio/wasapi/SDL_wasapi_win32.c
  16. 0 2
      src/audio/wasapi/SDL_wasapi_winrt.cpp
  17. 0 1
      src/audio/winmm/SDL_winmm.c
  18. 0 1
      src/core/android/SDL_android.c
  19. 0 1
      src/core/linux/SDL_evdev.c
  20. 0 1
      src/core/unix/SDL_poll.c
  21. 0 1
      src/core/windows/SDL_hid.c
  22. 0 1
      src/core/windows/SDL_windows.c
  23. 0 1
      src/core/windows/SDL_xinput.c
  24. 0 1
      src/core/winrt/SDL_winrtapp_direct3d.cpp
  25. 0 1
      src/events/SDL_keyboard.c
  26. 0 1
      src/events/SDL_mouse.c
  27. 1 1
      src/events/SDL_quit.c
  28. 0 1
      src/events/SDL_touch.c
  29. 0 1
      src/filesystem/haiku/SDL_sysfilesystem.cc
  30. 0 1
      src/filesystem/windows/SDL_sysfilesystem.c
  31. 0 1
      src/haptic/SDL_haptic.c
  32. 0 1
      src/haptic/android/SDL_syshaptic.c
  33. 0 1
      src/haptic/darwin/SDL_syshaptic.c
  34. 0 1
      src/haptic/linux/SDL_syshaptic.c
  35. 0 1
      src/haptic/windows/SDL_windowshaptic.c
  36. 0 1
      src/haptic/windows/SDL_xinputhaptic.c
  37. 0 1
      src/joystick/SDL_gamecontroller.c
  38. 0 1
      src/joystick/SDL_joystick.c
  39. 0 2
      src/joystick/android/SDL_sysjoystick.c
  40. 0 1
      src/joystick/emscripten/SDL_sysjoystick.c
  41. 0 1
      src/joystick/hidapi/SDL_hidapi_rumble.c
  42. 0 1
      src/joystick/hidapi/SDL_hidapijoystick.c
  43. 0 1
      src/joystick/iphoneos/SDL_mfijoystick.m
  44. 0 1
      src/joystick/linux/SDL_sysjoystick.c
  45. 0 1
      src/joystick/windows/SDL_rawinputjoystick.c
  46. 0 1
      src/joystick/windows/SDL_windowsjoystick.c
  47. 0 1
      src/joystick/windows/SDL_xinputjoystick.c
  48. 0 1
      src/locale/unix/SDL_syslocale.c
  49. 0 1
      src/locale/windows/SDL_syslocale.c
  50. 0 1
      src/power/uikit/SDL_syspower.m
  51. 0 1
      src/render/SDL_render.c
  52. 0 1
      src/render/SDL_yuv_sw.c
  53. 0 1
      src/render/direct3d/SDL_render_d3d.c
  54. 0 1
      src/render/metal/SDL_render_metal.m
  55. 0 1
      src/render/opengl/SDL_render_gl.c
  56. 0 1
      src/render/opengles/SDL_render_gles.c
  57. 0 1
      src/render/opengles2/SDL_render_gles2.c
  58. 0 1
      src/render/psp/SDL_render_psp.c
  59. 0 1
      src/render/software/SDL_render_sw.c
  60. 0 1
      src/sensor/SDL_sensor.c
  61. 0 1
      src/stdlib/SDL_qsort.c
  62. 0 1
      src/thread/SDL_thread.c
  63. 1 2
      src/thread/pthread/SDL_systhread.c
  64. 0 1
      src/timer/unix/SDL_systimer.c
  65. 0 1
      src/video/SDL_blit_N.c
  66. 0 1
      src/video/SDL_bmp.c
  67. 0 1
      src/video/SDL_rect.c
  68. 0 1
      src/video/SDL_shape.c
  69. 0 1
      src/video/android/SDL_androidvulkan.c
  70. 0 1
      src/video/cocoa/SDL_cocoaevents.m
  71. 1 1
      src/video/cocoa/SDL_cocoametalview.m
  72. 0 1
      src/video/cocoa/SDL_cocoamodes.m
  73. 0 1
      src/video/cocoa/SDL_cocoamouse.m
  74. 0 1
      src/video/cocoa/SDL_cocoaopengles.m
  75. 0 2
      src/video/cocoa/SDL_cocoashape.m
  76. 0 1
      src/video/cocoa/SDL_cocoavideo.m
  77. 0 1
      src/video/cocoa/SDL_cocoavulkan.m
  78. 0 1
      src/video/cocoa/SDL_cocoawindow.m
  79. 0 1
      src/video/directfb/SDL_DirectFB_mouse.c
  80. 0 1
      src/video/directfb/SDL_DirectFB_shape.c
  81. 0 3
      src/video/emscripten/SDL_emscriptenmouse.c
  82. 0 2
      src/video/kmsdrm/SDL_kmsdrmmouse.c
  83. 0 1
      src/video/raspberry/SDL_rpimouse.c
  84. 0 1
      src/video/uikit/SDL_uikitappdelegate.m
  85. 0 1
      src/video/uikit/SDL_uikitmetalview.m
  86. 0 1
      src/video/uikit/SDL_uikitmodes.m
  87. 0 1
      src/video/uikit/SDL_uikitviewcontroller.m
  88. 0 1
      src/video/uikit/SDL_uikitvulkan.m
  89. 0 1
      src/video/uikit/SDL_uikitwindow.m
  90. 0 1
      src/video/vivante/SDL_vivantevulkan.c
  91. 0 1
      src/video/wayland/SDL_waylanddatamanager.c
  92. 0 1
      src/video/wayland/SDL_waylandevents.c
  93. 0 1
      src/video/wayland/SDL_waylandmouse.c
  94. 0 1
      src/video/wayland/SDL_waylandvulkan.c
  95. 0 1
      src/video/windows/SDL_windowsevents.c
  96. 0 1
      src/video/windows/SDL_windowsmessagebox.c
  97. 0 1
      src/video/windows/SDL_windowsmodes.c
  98. 0 1
      src/video/windows/SDL_windowsmouse.c
  99. 0 1
      src/video/windows/SDL_windowsopengl.c
  100. 0 1
      src/video/windows/SDL_windowsopengles.c

+ 1 - 2
src/SDL_dataqueue.c

@@ -18,11 +18,10 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "./SDL_internal.h"
+
 #include "SDL.h"
 #include "./SDL_dataqueue.h"
-#include "SDL_assert.h"
 
 typedef struct SDL_DataQueuePacket
 {

+ 1 - 0
src/SDL_internal.h

@@ -116,6 +116,7 @@
 #define SDL_HAVE_YUV                    !SDL_LEAN_AND_MEAN
 #endif
 
+#include "SDL_assert.h"
 #include "SDL_log.h"
 
 #endif /* SDL_internal_h_ */

+ 0 - 1
src/audio/SDL_audiocvt.c

@@ -30,7 +30,6 @@
 #include "SDL_audio_c.h"
 
 #include "SDL_loadso.h"
-#include "SDL_assert.h"
 #include "../SDL_dataqueue.h"
 #include "SDL_cpuinfo.h"
 

+ 1 - 2
src/audio/SDL_audiotypecvt.c

@@ -18,12 +18,11 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../SDL_internal.h"
+
 #include "SDL_audio.h"
 #include "SDL_audio_c.h"
 #include "SDL_cpuinfo.h"
-#include "SDL_assert.h"
 
 #ifdef __ARM_NEON
 #define HAVE_NEON_INTRINSICS 1

+ 0 - 1
src/audio/alsa/SDL_alsa_audio.c

@@ -32,7 +32,6 @@
 #include <signal.h>             /* For kill() */
 #include <string.h>
 
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"

+ 0 - 1
src/audio/android/SDL_androidaudio.c

@@ -24,7 +24,6 @@
 
 /* Output audio to Android */
 
-#include "SDL_assert.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "SDL_androidaudio.h"

+ 0 - 1
src/audio/coreaudio/SDL_coreaudio.m

@@ -29,7 +29,6 @@
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
 #include "SDL_coreaudio.h"
-#include "SDL_assert.h"
 #include "../../thread/SDL_systhread.h"
 
 #define DEBUG_COREAUDIO 0

+ 0 - 1
src/audio/directsound/SDL_directsound.c

@@ -24,7 +24,6 @@
 
 /* Allow access to a raw mixing buffer */
 
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_loadso.h"
 #include "SDL_audio.h"

+ 0 - 1
src/audio/emscripten/SDL_emscriptenaudio.c

@@ -25,7 +25,6 @@
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "SDL_emscriptenaudio.h"
-#include "SDL_assert.h"
 
 #include <emscripten/emscripten.h>
 

+ 0 - 1
src/audio/haiku/SDL_haikuaudio.cc

@@ -36,7 +36,6 @@ extern "C"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
 #include "SDL_haikuaudio.h"
-#include "SDL_assert.h"
 
 }
 

+ 0 - 2
src/audio/jack/SDL_jackaudio.c

@@ -18,12 +18,10 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 #if SDL_AUDIO_DRIVER_JACK
 
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"

+ 0 - 1
src/audio/openslES/SDL_openslES.c

@@ -26,7 +26,6 @@
    https://googlesamples.github.io/android-audio-high-performance/guides/opensl_es.html
 */
 
-#include "SDL_assert.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "../../core/android/SDL_android.h"

+ 0 - 1
src/audio/pulseaudio/SDL_pulseaudio.c

@@ -26,7 +26,6 @@
    Stéphan Kochen: stephan .a.t. kochen.nl
 */
 #include "../../SDL_internal.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 
 #if SDL_AUDIO_DRIVER_PULSEAUDIO

+ 0 - 2
src/audio/wasapi/SDL_wasapi.c

@@ -18,7 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 #if SDL_AUDIO_DRIVER_WASAPI
@@ -28,7 +27,6 @@
 #include "SDL_timer.h"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
-#include "SDL_assert.h"
 
 #define COBJMACROS
 #include <mmdeviceapi.h>

+ 0 - 2
src/audio/wasapi/SDL_wasapi_win32.c

@@ -18,7 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 /* This is code that Windows uses to talk to WASAPI-related system APIs.
@@ -34,7 +33,6 @@
 #include "SDL_timer.h"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
-#include "SDL_assert.h"
 
 #define COBJMACROS
 #include <mmdeviceapi.h>

+ 0 - 2
src/audio/wasapi/SDL_wasapi_winrt.cpp

@@ -18,7 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 // This is C++/CX code that the WinRT port uses to talk to WASAPI-related
@@ -40,7 +39,6 @@ extern "C" {
 #include "SDL_timer.h"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
-#include "SDL_assert.h"
 }
 
 #define COBJMACROS

+ 0 - 1
src/audio/winmm/SDL_winmm.c

@@ -27,7 +27,6 @@
 #include "../../core/windows/SDL_windows.h"
 #include <mmsystem.h>
 
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"

+ 0 - 1
src/core/android/SDL_android.c

@@ -21,7 +21,6 @@
 #include "../../SDL_internal.h"
 
 #include "SDL_stdinc.h"
-#include "SDL_assert.h"
 #include "SDL_atomic.h"
 #include "SDL_hints.h"
 #include "SDL_main.h"

+ 0 - 1
src/core/linux/SDL_evdev.c

@@ -39,7 +39,6 @@
 #include <linux/input.h>
 
 #include "SDL.h"
-#include "SDL_assert.h"
 #include "SDL_endian.h"
 #include "SDL_scancode.h"
 #include "../../events/SDL_events_c.h"

+ 0 - 1
src/core/unix/SDL_poll.c

@@ -21,7 +21,6 @@
 
 #include "../../SDL_internal.h"
 
-#include "SDL_assert.h"
 #include "SDL_poll.h"
 
 #ifdef HAVE_POLL

+ 0 - 1
src/core/windows/SDL_hid.c

@@ -22,7 +22,6 @@
 
 #ifndef __WINRT__
 
-#include "SDL_assert.h"
 #include "SDL_hid.h"
 
 

+ 0 - 1
src/core/windows/SDL_windows.c

@@ -24,7 +24,6 @@
 
 #include "SDL_windows.h"
 #include "SDL_error.h"
-#include "SDL_assert.h"
 
 #include <objbase.h>  /* for CoInitialize/CoUninitialize (Win32 only) */
 

+ 0 - 1
src/core/windows/SDL_xinput.c

@@ -20,7 +20,6 @@
 */
 #include "../../SDL_internal.h"
 
-#include "SDL_assert.h"
 #include "SDL_xinput.h"
 
 

+ 0 - 1
src/core/winrt/SDL_winrtapp_direct3d.cpp

@@ -47,7 +47,6 @@ using namespace Windows::Phone::UI::Input;
 
 /* SDL includes */
 extern "C" {
-#include "SDL_assert.h"
 #include "SDL_events.h"
 #include "SDL_hints.h"
 #include "SDL_main.h"

+ 0 - 1
src/events/SDL_keyboard.c

@@ -25,7 +25,6 @@
 #include "SDL_timer.h"
 #include "SDL_events.h"
 #include "SDL_events_c.h"
-#include "SDL_assert.h"
 #include "../video/SDL_sysvideo.h"
 
 

+ 0 - 1
src/events/SDL_mouse.c

@@ -22,7 +22,6 @@
 
 /* General mouse handling code for SDL */
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_timer.h"
 #include "SDL_events.h"

+ 1 - 1
src/events/SDL_quit.c

@@ -19,8 +19,8 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include "../SDL_internal.h"
+
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 
 /* General quit handling code for SDL */
 

+ 0 - 1
src/events/SDL_touch.c

@@ -22,7 +22,6 @@
 
 /* General touch handling code for SDL */
 
-#include "SDL_assert.h"
 #include "SDL_events.h"
 #include "SDL_events_c.h"
 #include "../video/SDL_sysvideo.h"

+ 0 - 1
src/filesystem/haiku/SDL_sysfilesystem.cc

@@ -32,7 +32,6 @@
 
 #include "SDL_error.h"
 #include "SDL_stdinc.h"
-#include "SDL_assert.h"
 #include "SDL_filesystem.h"
 
 char *

+ 0 - 1
src/filesystem/windows/SDL_sysfilesystem.c

@@ -28,7 +28,6 @@
 #include "../../core/windows/SDL_windows.h"
 #include <shlobj.h>
 
-#include "SDL_assert.h"
 #include "SDL_error.h"
 #include "SDL_stdinc.h"
 #include "SDL_filesystem.h"

+ 0 - 1
src/haptic/SDL_haptic.c

@@ -23,7 +23,6 @@
 #include "SDL_syshaptic.h"
 #include "SDL_haptic_c.h"
 #include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */
-#include "SDL_assert.h"
 
 /* Global for SDL_windowshaptic.c */
 #if (defined(SDL_HAPTIC_DINPUT) && SDL_HAPTIC_DINPUT) || (defined(SDL_HAPTIC_XINPUT) && SDL_HAPTIC_XINPUT)

+ 0 - 1
src/haptic/android/SDL_syshaptic.c

@@ -22,7 +22,6 @@
 
 #ifdef SDL_HAPTIC_ANDROID
 
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_syshaptic_c.h"
 #include "../SDL_syshaptic.h"

+ 0 - 1
src/haptic/darwin/SDL_syshaptic.c

@@ -22,7 +22,6 @@
 
 #ifdef SDL_HAPTIC_IOKIT
 
-#include "SDL_assert.h"
 #include "SDL_stdinc.h"
 #include "SDL_haptic.h"
 #include "../SDL_syshaptic.h"

+ 0 - 1
src/haptic/linux/SDL_syshaptic.c

@@ -22,7 +22,6 @@
 
 #ifdef SDL_HAPTIC_LINUX
 
-#include "SDL_assert.h"
 #include "SDL_haptic.h"
 #include "../SDL_syshaptic.h"
 #include "SDL_joystick.h"

+ 0 - 1
src/haptic/windows/SDL_windowshaptic.c

@@ -22,7 +22,6 @@
 
 #if SDL_HAPTIC_DINPUT || SDL_HAPTIC_XINPUT
 
-#include "SDL_assert.h"
 #include "SDL_thread.h"
 #include "SDL_mutex.h"
 #include "SDL_timer.h"

+ 0 - 1
src/haptic/windows/SDL_xinputhaptic.c

@@ -26,7 +26,6 @@
 
 #if SDL_HAPTIC_XINPUT
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_timer.h"
 #include "SDL_windowshaptic_c.h"

+ 0 - 1
src/joystick/SDL_gamecontroller.c

@@ -23,7 +23,6 @@
 /* This is the game controller API for Simple DirectMedia Layer */
 
 #include "SDL_events.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_timer.h"
 #include "SDL_sysjoystick.h"

+ 0 - 1
src/joystick/SDL_joystick.c

@@ -26,7 +26,6 @@
 #include "SDL_atomic.h"
 #include "SDL_events.h"
 #include "SDL_sysjoystick.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 
 #if !SDL_EVENTS_DISABLED

+ 0 - 2
src/joystick/android/SDL_sysjoystick.c

@@ -18,7 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 #ifdef SDL_JOYSTICK_ANDROID
@@ -29,7 +28,6 @@
 
 #include "SDL_joystick.h"
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_sysjoystick_c.h"
 #include "../SDL_joystick_c.h"

+ 0 - 1
src/joystick/emscripten/SDL_sysjoystick.c

@@ -28,7 +28,6 @@
 #include "SDL_events.h"
 
 #include "SDL_joystick.h"
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 #include "SDL_sysjoystick_c.h"
 #include "../SDL_joystick_c.h"

+ 0 - 1
src/joystick/hidapi/SDL_hidapi_rumble.c

@@ -24,7 +24,6 @@
 
 /* Handle rumble on a separate thread so it doesn't block the application */
 
-#include "SDL_assert.h"
 #include "SDL_thread.h"
 #include "SDL_hidapijoystick_c.h"
 #include "SDL_hidapi_rumble.h"

+ 0 - 1
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -22,7 +22,6 @@
 
 #ifdef SDL_JOYSTICK_HIDAPI
 
-#include "SDL_assert.h"
 #include "SDL_atomic.h"
 #include "SDL_endian.h"
 #include "SDL_hints.h"

+ 0 - 1
src/joystick/iphoneos/SDL_mfijoystick.m

@@ -21,7 +21,6 @@
 #include "../../SDL_internal.h"
 
 /* This is the iOS implementation of the SDL joystick API */
-#include "SDL_assert.h"
 #include "SDL_events.h"
 #include "SDL_joystick.h"
 #include "SDL_hints.h"

+ 0 - 1
src/joystick/linux/SDL_sysjoystick.c

@@ -40,7 +40,6 @@
 #include <dirent.h>
 #include <linux/joystick.h>
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_joystick.h"
 #include "SDL_log.h"

+ 0 - 1
src/joystick/windows/SDL_rawinputjoystick.c

@@ -33,7 +33,6 @@
 
 #if SDL_JOYSTICK_RAWINPUT
 
-#include "SDL_assert.h"
 #include "SDL_endian.h"
 #include "SDL_events.h"
 #include "SDL_hints.h"

+ 0 - 1
src/joystick/windows/SDL_windowsjoystick.c

@@ -33,7 +33,6 @@
  * let it return 0 events. */
 
 #include "SDL_error.h"
-#include "SDL_assert.h"
 #include "SDL_events.h"
 #include "SDL_timer.h"
 #include "SDL_mutex.h"

+ 0 - 1
src/joystick/windows/SDL_xinputjoystick.c

@@ -24,7 +24,6 @@
 
 #if SDL_JOYSTICK_XINPUT
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_timer.h"
 #include "SDL_windowsjoystick_c.h"

+ 0 - 1
src/locale/unix/SDL_syslocale.c

@@ -21,7 +21,6 @@
 
 #include "../../SDL_internal.h"
 #include "../SDL_syslocale.h"
-#include "SDL_assert.h"
 
 static void
 normalize_locale_str(char *dst, char *str, size_t buflen)

+ 0 - 1
src/locale/windows/SDL_syslocale.c

@@ -22,7 +22,6 @@
 #include "../../SDL_internal.h"
 #include "../../core/windows/SDL_windows.h"
 #include "../SDL_syslocale.h"
-#include "SDL_assert.h"
 
 typedef BOOL (WINAPI *pfnGetUserPreferredUILanguages)(DWORD,PULONG,/*PZZWSTR*/WCHAR*,PULONG);
 #ifndef MUI_LANGUAGE_NAME

+ 0 - 1
src/power/uikit/SDL_syspower.m

@@ -27,7 +27,6 @@
 
 #include "SDL_power.h"
 #include "SDL_timer.h"
-#include "SDL_assert.h"
 #include "SDL_syspower.h"
 
 #if !TARGET_OS_TV

+ 0 - 1
src/render/SDL_render.c

@@ -22,7 +22,6 @@
 
 /* The SDL 2D rendering system */
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_render.h"
 #include "SDL_sysrender.h"

+ 0 - 1
src/render/SDL_yuv_sw.c

@@ -24,7 +24,6 @@
 
 #if SDL_HAVE_YUV
 
-#include "SDL_assert.h"
 
 #include "SDL_yuv_sw_c.h"
 

+ 0 - 1
src/render/direct3d/SDL_render_d3d.c

@@ -30,7 +30,6 @@
 #include "SDL_hints.h"
 #include "SDL_loadso.h"
 #include "SDL_syswm.h"
-#include "SDL_assert.h"
 #include "../SDL_sysrender.h"
 #include "../SDL_d3dmath.h"
 #include "../../video/windows/SDL_windowsvideo.h"

+ 0 - 1
src/render/metal/SDL_render_metal.m

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED
 
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 #include "SDL_syswm.h"
 #include "SDL_metal.h"
 #include "../SDL_sysrender.h"

+ 0 - 1
src/render/opengl/SDL_render_gl.c

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_RENDER_OGL && !SDL_RENDER_DISABLED
 
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 #include "SDL_opengl.h"
 #include "../SDL_sysrender.h"
 #include "SDL_shaders_gl.h"

+ 0 - 1
src/render/opengles/SDL_render_gles.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_RENDER_OGL_ES && !SDL_RENDER_DISABLED
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_opengles.h"
 #include "../SDL_sysrender.h"

+ 0 - 1
src/render/opengles2/SDL_render_gles2.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED
 
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_opengles2.h"
 #include "../SDL_sysrender.h"

+ 0 - 1
src/render/psp/SDL_render_psp.c

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_RENDER_PSP
 
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 #include "../SDL_sysrender.h"
 
 #include <pspkernel.h>

+ 0 - 1
src/render/software/SDL_render_sw.c

@@ -25,7 +25,6 @@
 #include "../SDL_sysrender.h"
 #include "SDL_render_sw_c.h"
 #include "SDL_hints.h"
-#include "SDL_assert.h"
 
 #include "SDL_draw.h"
 #include "SDL_blendfillrect.h"

+ 0 - 1
src/sensor/SDL_sensor.c

@@ -26,7 +26,6 @@
 #include "SDL_atomic.h"
 #include "SDL_events.h"
 #include "SDL_syssensor.h"
-#include "SDL_assert.h"
 
 #if !SDL_EVENTS_DISABLED
 #include "../events/SDL_events_c.h"

+ 0 - 1
src/stdlib/SDL_qsort.c

@@ -26,7 +26,6 @@
 #include "../SDL_internal.h"
 
 #include "SDL_stdinc.h"
-#include "SDL_assert.h"
 
 #if defined(HAVE_QSORT)
 void

+ 0 - 1
src/thread/SDL_thread.c

@@ -22,7 +22,6 @@
 
 /* System independent thread management routines for SDL */
 
-#include "SDL_assert.h"
 #include "SDL_thread.h"
 #include "SDL_thread_c.h"
 #include "SDL_systhread.h"

+ 1 - 2
src/thread/pthread/SDL_systhread.c

@@ -18,8 +18,8 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
+
 #include "SDL_system.h"
 #include "SDL_hints.h"
 
@@ -60,7 +60,6 @@
 #include <kernel/OS.h>
 #endif
 
-#include "SDL_assert.h"
 
 #ifndef __NACL__
 /* List of signals to mask in the subthreads */

+ 0 - 1
src/timer/unix/SDL_systimer.c

@@ -28,7 +28,6 @@
 #include <errno.h>
 
 #include "SDL_timer.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "../SDL_timer_c.h"
 

+ 0 - 1
src/video/SDL_blit_N.c

@@ -27,7 +27,6 @@
 #include "SDL_cpuinfo.h"
 #include "SDL_blit.h"
 
-#include "SDL_assert.h"
 
 /* General optimized routines that write char by char */
 #define HAVE_FAST_WRITE_INT8 1

+ 0 - 1
src/video/SDL_bmp.c

@@ -34,7 +34,6 @@
 
 #include "SDL_hints.h"
 #include "SDL_video.h"
-#include "SDL_assert.h"
 #include "SDL_endian.h"
 #include "SDL_pixels_c.h"
 

+ 0 - 1
src/video/SDL_rect.c

@@ -22,7 +22,6 @@
 
 #include "SDL_rect.h"
 #include "SDL_rect_c.h"
-#include "SDL_assert.h"
 
 SDL_bool
 SDL_HasIntersection(const SDL_Rect * A, const SDL_Rect * B)

+ 0 - 1
src/video/SDL_shape.c

@@ -21,7 +21,6 @@
 #include "../SDL_internal.h"
 
 #include "SDL.h"
-#include "SDL_assert.h"
 #include "SDL_video.h"
 #include "SDL_sysvideo.h"
 #include "SDL_pixels.h"

+ 0 - 1
src/video/android/SDL_androidvulkan.c

@@ -30,7 +30,6 @@
 
 #include "SDL_androidvideo.h"
 #include "SDL_androidwindow.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_androidvulkan.h"

+ 0 - 1
src/video/cocoa/SDL_cocoaevents.m

@@ -26,7 +26,6 @@
 
 #include "SDL_cocoavideo.h"
 #include "../../events/SDL_events_c.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 
 /* This define was added in the 10.9 SDK. */

+ 1 - 1
src/video/cocoa/SDL_cocoametalview.m

@@ -24,12 +24,12 @@
  * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
  * how to add a CAMetalLayer backed view.
  */
+#include "../../SDL_internal.h"
 
 #import "SDL_cocoametalview.h"
 
 #if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_METAL)
 
-#include "SDL_assert.h"
 #include "SDL_events.h"
 
 static int SDLCALL

+ 0 - 1
src/video/cocoa/SDL_cocoamodes.m

@@ -19,7 +19,6 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include "../../SDL_internal.h"
-#include "SDL_assert.h"
 
 #if SDL_VIDEO_DRIVER_COCOA
 

+ 0 - 1
src/video/cocoa/SDL_cocoamouse.m

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_COCOA
 
-#include "SDL_assert.h"
 #include "SDL_events.h"
 #include "SDL_cocoamouse.h"
 #include "SDL_cocoamousetap.h"

+ 0 - 1
src/video/cocoa/SDL_cocoaopengles.m

@@ -25,7 +25,6 @@
 #include "SDL_cocoavideo.h"
 #include "SDL_cocoaopengles.h"
 #include "SDL_cocoaopengl.h"
-#include "SDL_assert.h"
 
 /* EGL implementation of SDL OpenGL support */
 

+ 0 - 2
src/video/cocoa/SDL_cocoashape.m

@@ -18,7 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 #if SDL_VIDEO_DRIVER_COCOA
@@ -27,7 +26,6 @@
 #include "SDL_shape.h"
 #include "SDL_cocoashape.h"
 #include "../SDL_sysvideo.h"
-#include "SDL_assert.h"
 
 SDL_WindowShaper*
 Cocoa_CreateShaper(SDL_Window* window)

+ 0 - 1
src/video/cocoa/SDL_cocoavideo.m

@@ -28,7 +28,6 @@
 #include "SDL_cocoashape.h"
 #include "SDL_cocoavulkan.h"
 #include "SDL_cocoametalview.h"
-#include "SDL_assert.h"
 
 /* Initialization/Query functions */
 static int Cocoa_VideoInit(_THIS);

+ 0 - 1
src/video/cocoa/SDL_cocoavulkan.m

@@ -29,7 +29,6 @@
 
 #include "SDL_cocoavideo.h"
 #include "SDL_cocoawindow.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_cocoametalview.h"

+ 0 - 1
src/video/cocoa/SDL_cocoawindow.m

@@ -41,7 +41,6 @@
 #include "SDL_cocoamousetap.h"
 #include "SDL_cocoaopengl.h"
 #include "SDL_cocoaopengles.h"
-#include "SDL_assert.h"
 
 /* #define DEBUG_COCOAWINDOW */
 

+ 0 - 1
src/video/directfb/SDL_DirectFB_mouse.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_DIRECTFB
 
-#include "SDL_assert.h"
 
 #include "SDL_DirectFB_video.h"
 #include "SDL_DirectFB_mouse.h"

+ 0 - 1
src/video/directfb/SDL_DirectFB_shape.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_DIRECTFB
 
-#include "SDL_assert.h"
 #include "SDL_DirectFB_video.h"
 #include "SDL_DirectFB_shape.h"
 #include "SDL_DirectFB_window.h"

+ 0 - 3
src/video/emscripten/SDL_emscriptenmouse.c

@@ -18,8 +18,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
-
 #include "../../SDL_internal.h"
 
 #if SDL_VIDEO_DRIVER_EMSCRIPTEN
@@ -31,7 +29,6 @@
 #include "SDL_emscriptenvideo.h"
 
 #include "../../events/SDL_mouse_c.h"
-#include "SDL_assert.h"
 
 static SDL_Cursor*
 Emscripten_CreateCursorFromString(const char* cursor_str, SDL_bool is_custom)

+ 0 - 2
src/video/kmsdrm/SDL_kmsdrmmouse.c

@@ -19,7 +19,6 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
-
 #include "../../SDL_internal.h"
 
 #if SDL_VIDEO_DRIVER_KMSDRM
@@ -27,7 +26,6 @@
 #include "SDL_kmsdrmvideo.h"
 #include "SDL_kmsdrmmouse.h"
 #include "SDL_kmsdrmdyn.h"
-#include "SDL_assert.h"
 
 #include "../../events/SDL_mouse_c.h"
 #include "../../events/default_cursor.h"

+ 0 - 1
src/video/raspberry/SDL_rpimouse.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_RPI
 
-#include "SDL_assert.h"
 #include "SDL_surface.h"
 #include "SDL_hints.h"
 

+ 0 - 1
src/video/uikit/SDL_uikitappdelegate.m

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_DRIVER_UIKIT
 
 #include "../SDL_sysvideo.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "SDL_system.h"
 #include "SDL_main.h"

+ 0 - 1
src/video/uikit/SDL_uikitmetalview.m

@@ -34,7 +34,6 @@
 #import "SDL_uikitwindow.h"
 #import "SDL_uikitmetalview.h"
 
-#include "SDL_assert.h"
 
 @implementation SDL_uikitmetalview
 

+ 0 - 1
src/video/uikit/SDL_uikitmodes.m

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_UIKIT
 
-#include "SDL_assert.h"
 #include "SDL_system.h"
 #include "SDL_uikitmodes.h"
 

+ 0 - 1
src/video/uikit/SDL_uikitviewcontroller.m

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_DRIVER_UIKIT
 
 #include "SDL_video.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "../SDL_sysvideo.h"
 #include "../../events/SDL_events_c.h"

+ 0 - 1
src/video/uikit/SDL_uikitvulkan.m

@@ -30,7 +30,6 @@
 
 #include "SDL_uikitvideo.h"
 #include "SDL_uikitwindow.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_uikitvulkan.h"

+ 0 - 1
src/video/uikit/SDL_uikitwindow.m

@@ -25,7 +25,6 @@
 #include "SDL_syswm.h"
 #include "SDL_video.h"
 #include "SDL_mouse.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 #include "../SDL_sysvideo.h"
 #include "../SDL_pixels_c.h"

+ 0 - 1
src/video/vivante/SDL_vivantevulkan.c

@@ -30,7 +30,6 @@
 #if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_VIVANTE
 
 #include "SDL_vivantevideo.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_vivantevulkan.h"

+ 0 - 1
src/video/wayland/SDL_waylanddatamanager.c

@@ -29,7 +29,6 @@
 #include <signal.h>
 
 #include "SDL_stdinc.h"
-#include "SDL_assert.h"
 #include "../../core/unix/SDL_poll.h"
 
 #include "SDL_waylandvideo.h"

+ 0 - 1
src/video/wayland/SDL_waylandevents.c

@@ -24,7 +24,6 @@
 #if SDL_VIDEO_DRIVER_WAYLAND
 
 #include "SDL_stdinc.h"
-#include "SDL_assert.h"
 #include "SDL_timer.h"
 
 #include "../../core/unix/SDL_poll.h"

+ 0 - 1
src/video/wayland/SDL_waylandmouse.c

@@ -40,7 +40,6 @@
 #include "SDL_waylanddyn.h"
 #include "wayland-cursor.h"
 
-#include "SDL_assert.h"
 
 
 typedef struct {

+ 0 - 1
src/video/wayland/SDL_waylandvulkan.c

@@ -30,7 +30,6 @@
 
 #include "SDL_waylandvideo.h"
 #include "SDL_waylandwindow.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_waylandvulkan.h"

+ 0 - 1
src/video/windows/SDL_windowsevents.c

@@ -32,7 +32,6 @@
 #include "../../events/SDL_events_c.h"
 #include "../../events/SDL_touch_c.h"
 #include "../../events/scancodes_windows.h"
-#include "SDL_assert.h"
 #include "SDL_hints.h"
 
 /* Dropfile support */

+ 0 - 1
src/video/windows/SDL_windowsmessagebox.c

@@ -31,7 +31,6 @@
 
 #include "../../core/windows/SDL_windows.h"
 
-#include "SDL_assert.h"
 #include "SDL_windowsvideo.h"
 #include "SDL_windowstaskdialog.h"
 

+ 0 - 1
src/video/windows/SDL_windowsmodes.c

@@ -23,7 +23,6 @@
 #if SDL_VIDEO_DRIVER_WINDOWS
 
 #include "SDL_windowsvideo.h"
-#include "../../../include/SDL_assert.h"
 
 /* Windows CE compatibility */
 #ifndef CDS_FULLSCREEN

+ 0 - 1
src/video/windows/SDL_windowsmouse.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_WINDOWS
 
-#include "SDL_assert.h"
 #include "SDL_windowsvideo.h"
 
 #include "../../events/SDL_mouse_c.h"

+ 0 - 1
src/video/windows/SDL_windowsopengl.c

@@ -22,7 +22,6 @@
 
 #if SDL_VIDEO_DRIVER_WINDOWS
 
-#include "SDL_assert.h"
 #include "SDL_loadso.h"
 #include "SDL_windowsvideo.h"
 #include "SDL_windowsopengles.h"

+ 0 - 1
src/video/windows/SDL_windowsopengles.c

@@ -25,7 +25,6 @@
 #include "SDL_windowsvideo.h"
 #include "SDL_windowsopengles.h"
 #include "SDL_windowsopengl.h"
-#include "SDL_assert.h"
 
 /* EGL implementation of SDL OpenGL support */
 

Some files were not shown because too many files changed in this diff