Skip to content
Permalink
Browse files
Added SDL_log.h to SDL_internal.h so logging is available everywhere
  • Loading branch information
slouken committed Apr 7, 2020
1 parent 488b94c commit b6afbe6317d237626f3953b864dc9d96de5ed369
Showing with 4 additions and 53 deletions.
  1. +0 −1 src/SDL_error.c
  2. +2 −0 src/SDL_internal.h
  3. +0 −1 src/audio/SDL_wave.c
  4. +0 −1 src/audio/disk/SDL_diskaudio.c
  5. +0 −1 src/audio/emscripten/SDL_emscriptenaudio.c
  6. +0 −1 src/audio/wasapi/SDL_wasapi.c
  7. +0 −1 src/audio/wasapi/SDL_wasapi_win32.c
  8. +0 −1 src/audio/wasapi/SDL_wasapi_winrt.cpp
  9. +1 −1 src/core/android/SDL_android.c
  10. +0 −1 src/core/winrt/SDL_winrtapp_direct3d.cpp
  11. +0 −1 src/filesystem/cocoa/SDL_sysfilesystem.m
  12. +0 −1 src/joystick/android/SDL_sysjoystick.c
  13. +0 −1 src/joystick/emscripten/SDL_sysjoystick.c
  14. +0 −1 src/joystick/hidapi/SDL_hidapi_gamecube.c
  15. +0 −1 src/joystick/hidapi/SDL_hidapi_ps4.c
  16. +0 −1 src/joystick/hidapi/SDL_hidapi_steam.c
  17. +0 −1 src/joystick/hidapi/SDL_hidapi_switch.c
  18. +0 −1 src/joystick/hidapi/SDL_hidapi_xbox360.c
  19. +0 −1 src/joystick/hidapi/SDL_hidapi_xbox360w.c
  20. +0 −1 src/joystick/hidapi/SDL_hidapi_xboxone.c
  21. +0 −1 src/joystick/hidapi/SDL_hidapijoystick.c
  22. +0 −1 src/joystick/windows/SDL_rawinputjoystick.c
  23. +0 −1 src/joystick/windows/SDL_xinputjoystick.c
  24. +0 −1 src/render/SDL_render.c
  25. +0 −1 src/render/direct3d/SDL_render_d3d.c
  26. +0 −1 src/render/metal/SDL_render_metal.m
  27. +0 −1 src/render/opengl/SDL_render_gl.c
  28. +0 −1 src/render/opengl/SDL_shaders_gl.c
  29. +0 −1 src/thread/pthread/SDL_systhread.c
  30. +0 −1 src/thread/stdcpp/SDL_sysmutex.cpp
  31. +0 −1 src/thread/stdcpp/SDL_systhread.cpp
  32. +0 −1 src/video/SDL_egl.c
  33. +0 −1 src/video/SDL_vulkan_utils.c
  34. +0 −1 src/video/android/SDL_androidtouch.c
  35. +0 −1 src/video/cocoa/SDL_cocoaopengles.m
  36. +0 −1 src/video/directfb/SDL_DirectFB_video.h
  37. +0 −3 src/video/kmsdrm/SDL_kmsdrmdyn.c
  38. +0 −2 src/video/kmsdrm/SDL_kmsdrmopengles.c
  39. +0 −1 src/video/kmsdrm/SDL_kmsdrmvideo.c
  40. +1 −1 src/video/raspberry/SDL_rpiopengles.c
  41. +0 −1 src/video/vivante/SDL_vivantevulkan.c
  42. +0 −3 src/video/wayland/SDL_waylanddyn.c
  43. +0 −1 src/video/wayland/SDL_waylandevents.c
  44. +0 −1 src/video/wayland/SDL_waylandtouch.c
  45. +0 −1 src/video/windows/SDL_windowsmodes.c
  46. +0 −1 src/video/windows/SDL_windowsopengles.c
  47. +0 −1 src/video/winrt/SDL_winrtmouse.cpp
  48. +0 −1 src/video/winrt/SDL_winrtvideo.cpp
  49. +0 −1 src/video/x11/SDL_x11window.c
@@ -22,7 +22,6 @@

/* Simple error handling in SDL */

#include "SDL_log.h"
#include "SDL_error.h"
#include "SDL_error_c.h"

@@ -116,6 +116,8 @@
#define SDL_HAVE_YUV !SDL_LEAN_AND_MEAN
#endif

#include "SDL_log.h"

#endif /* SDL_internal_h_ */

/* vi: set ts=4 sw=4 expandtab: */
@@ -34,7 +34,6 @@

/* Microsoft WAVE file loading routines */

#include "SDL_log.h"
#include "SDL_hints.h"
#include "SDL_audio.h"
#include "SDL_wave.h"
@@ -33,7 +33,6 @@
#include "SDL_audio.h"
#include "../SDL_audio_c.h"
#include "SDL_diskaudio.h"
#include "SDL_log.h"

/* !!! FIXME: these should be SDL hints, not environment variables. */
/* environment variables and defaults. */
@@ -23,7 +23,6 @@
#if SDL_AUDIO_DRIVER_EMSCRIPTEN

#include "SDL_audio.h"
#include "SDL_log.h"
#include "../SDL_audio_c.h"
#include "SDL_emscriptenaudio.h"
#include "SDL_assert.h"
@@ -29,7 +29,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
#include "SDL_assert.h"
#include "SDL_log.h"

#define COBJMACROS
#include <mmdeviceapi.h>
@@ -35,7 +35,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
#include "SDL_assert.h"
#include "SDL_log.h"

#define COBJMACROS
#include <mmdeviceapi.h>
@@ -41,7 +41,6 @@ extern "C" {
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
#include "SDL_assert.h"
#include "SDL_log.h"
}

#define COBJMACROS
@@ -19,11 +19,11 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

#include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_atomic.h"
#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_main.h"
#include "SDL_timer.h"

@@ -50,7 +50,6 @@ extern "C" {
#include "SDL_assert.h"
#include "SDL_events.h"
#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_main.h"
#include "SDL_stdinc.h"
#include "SDL_render.h"
@@ -32,7 +32,6 @@
#include "SDL_error.h"
#include "SDL_stdinc.h"
#include "SDL_filesystem.h"
#include "SDL_log.h"

char *
SDL_GetBasePath(void)
@@ -31,7 +31,6 @@
#include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_timer.h"
#include "SDL_log.h"
#include "SDL_sysjoystick_c.h"
#include "../SDL_joystick_c.h"
#include "../../events/SDL_keyboard_c.h"
@@ -30,7 +30,6 @@
#include "SDL_joystick.h"
#include "SDL_assert.h"
#include "SDL_timer.h"
#include "SDL_log.h"
#include "SDL_sysjoystick_c.h"
#include "../SDL_joystick_c.h"

@@ -23,7 +23,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_haptic.h"
@@ -26,7 +26,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -23,7 +23,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -26,7 +26,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -23,7 +23,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -23,7 +23,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -23,7 +23,6 @@
#ifdef SDL_JOYSTICK_HIDAPI

#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -26,7 +26,6 @@
#include "SDL_atomic.h"
#include "SDL_endian.h"
#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_thread.h"
#include "SDL_timer.h"
#include "SDL_joystick.h"
@@ -36,7 +36,6 @@
#include "SDL_assert.h"
#include "SDL_endian.h"
#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_mutex.h"
#include "../SDL_sysjoystick.h"
#include "../../core/windows/SDL_windows.h"
@@ -26,7 +26,6 @@

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

#include "SDL_assert.h"
#include "SDL_hints.h"
#include "SDL_log.h"
#include "SDL_render.h"
#include "SDL_sysrender.h"
#include "software/SDL_render_sw_c.h"
@@ -30,7 +30,6 @@
#include "SDL_hints.h"
#include "SDL_loadso.h"
#include "SDL_syswm.h"
#include "SDL_log.h"
#include "SDL_assert.h"
#include "../SDL_sysrender.h"
#include "../SDL_d3dmath.h"
@@ -23,7 +23,6 @@
#if SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED

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

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

#include "SDL_stdinc.h"
#include "SDL_log.h"
#include "SDL_opengl.h"
#include "SDL_video.h"
#include "SDL_shaders_gl.h"
@@ -47,7 +47,6 @@
#endif
#endif

#include "SDL_log.h"
#include "SDL_platform.h"
#include "SDL_thread.h"
#include "../SDL_thread_c.h"
@@ -23,7 +23,6 @@
extern "C" {
#include "SDL_thread.h"
#include "SDL_systhread_c.h"
#include "SDL_log.h"
}

#include <system_error>
@@ -26,7 +26,6 @@ extern "C" {
#include "SDL_thread.h"
#include "../SDL_thread_c.h"
#include "../SDL_systhread.h"
#include "SDL_log.h"
}

#include <mutex>
@@ -31,7 +31,6 @@
#endif

#include "SDL_sysvideo.h"
#include "SDL_log.h"
#include "SDL_egl_c.h"
#include "SDL_loadso.h"
#include "SDL_hints.h"
@@ -22,7 +22,6 @@

#include "SDL_vulkan_internal.h"
#include "SDL_error.h"
#include "SDL_log.h"

/* !!! FIXME: this file doesn't match coding standards for SDL (brace position, etc). */

@@ -26,7 +26,6 @@

#include "SDL_hints.h"
#include "SDL_events.h"
#include "SDL_log.h"
#include "SDL_androidtouch.h"
#include "../../events/SDL_mouse_c.h"
#include "../../events/SDL_touch_c.h"
@@ -25,7 +25,6 @@
#include "SDL_cocoavideo.h"
#include "SDL_cocoaopengles.h"
#include "SDL_cocoaopengl.h"
#include "SDL_log.h"

/* EGL implementation of SDL OpenGL support */

@@ -31,7 +31,6 @@
#include "SDL_scancode.h"
#include "SDL_render.h"

#include "SDL_log.h"

#define DFB_VERSIONNUM(X, Y, Z) \
((X)*1000 + (Y)*100 + (Z))
@@ -27,9 +27,6 @@

#include "SDL_kmsdrmdyn.h"

#if DEBUG_DYNAMIC_KMSDRM
#include "SDL_log.h"
#endif

#ifdef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC

@@ -23,8 +23,6 @@

#if SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL

#include "SDL_log.h"

#include "SDL_kmsdrmvideo.h"
#include "SDL_kmsdrmopengles.h"
#include "SDL_kmsdrmdyn.h"
@@ -26,7 +26,6 @@
/* SDL internals */
#include "../SDL_sysvideo.h"
#include "SDL_syswm.h"
#include "SDL_log.h"
#include "SDL_hints.h"
#include "../../events/SDL_events_c.h"
#include "../../events/SDL_mouse_c.h"
@@ -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_log.h"

#if SDL_VIDEO_DRIVER_RPI && SDL_VIDEO_OPENGL_EGL

@@ -35,7 +35,6 @@
#include "SDL_loadso.h"
#include "SDL_vivantevulkan.h"
#include "SDL_syswm.h"
#include "SDL_log.h"

int VIVANTE_Vulkan_LoadLibrary(_THIS, const char *path)
{
@@ -26,9 +26,6 @@

#include "SDL_waylanddyn.h"

#if DEBUG_DYNAMIC_WAYLAND
#include "SDL_log.h"
#endif

#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC

@@ -25,7 +25,6 @@

#include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_log.h"

#include "../../core/unix/SDL_poll.h"
#include "../../events/SDL_sysevents.h"
@@ -25,7 +25,6 @@

#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH

#include "SDL_log.h"
#include "SDL_mouse.h"
#include "SDL_keyboard.h"
#include "SDL_waylandtouch.h"
@@ -24,7 +24,6 @@

#include "SDL_windowsvideo.h"
#include "../../../include/SDL_assert.h"
#include "../../../include/SDL_log.h"

/* Windows CE compatibility */
#ifndef CDS_FULLSCREEN
@@ -25,7 +25,6 @@
#include "SDL_windowsvideo.h"
#include "SDL_windowsopengles.h"
#include "SDL_windowsopengl.h"
#include "SDL_log.h"

/* EGL implementation of SDL OpenGL support */

@@ -39,7 +39,6 @@ extern "C" {
#include "../../events/SDL_touch_c.h"
#include "../SDL_sysvideo.h"
#include "SDL_events.h"
#include "SDL_log.h"
}

#include "../../core/winrt/SDL_winrtapp_direct3d.h"
@@ -67,7 +67,6 @@ extern "C" {
#include "SDL_winrtmouse_c.h"
#include "SDL_main.h"
#include "SDL_system.h"
//#include "SDL_log.h"


/* Initialization/Query functions */

0 comments on commit b6afbe6

Please sign in to comment.