Fixed empty parameter list in signatures of internal functions.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 16 Nov 2016 22:08:51 +0100
changeset 10617346c02ff71b6
parent 10616 d17dd08640a4
child 10618 01ff51434145
Fixed empty parameter list in signatures of internal functions.
src/haptic/darwin/SDL_syshaptic.c
src/haptic/linux/SDL_syshaptic.c
src/haptic/windows/SDL_windowshaptic.c
src/joystick/android/SDL_sysjoystick.c
src/joystick/bsd/SDL_sysjoystick.c
src/joystick/darwin/SDL_sysjoystick.c
src/joystick/dummy/SDL_sysjoystick.c
src/joystick/emscripten/SDL_sysjoystick.c
src/joystick/haiku/SDL_haikujoystick.cc
src/joystick/iphoneos/SDL_sysjoystick.m
src/joystick/linux/SDL_sysjoystick.c
src/joystick/psp/SDL_sysjoystick.c
src/joystick/windows/SDL_mmjoystick.c
src/joystick/windows/SDL_windowsjoystick.c
src/render/opengl/SDL_shaders_gl.c
src/thread/SDL_thread.c
src/thread/generic/SDL_systls.c
src/thread/pthread/SDL_systls.c
src/thread/stdcpp/SDL_systhread.cpp
src/thread/windows/SDL_systls.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Tue Nov 15 01:30:08 2016 -0800
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Nov 16 22:08:51 2016 +0100
     1.3 @@ -189,7 +189,7 @@
     1.4  }
     1.5  
     1.6  int
     1.7 -SDL_SYS_NumHaptics()
     1.8 +SDL_SYS_NumHaptics(void)
     1.9  {
    1.10      return numhaptics;
    1.11  }
     2.1 --- a/src/haptic/linux/SDL_syshaptic.c	Tue Nov 15 01:30:08 2016 -0800
     2.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Wed Nov 16 22:08:51 2016 +0100
     2.3 @@ -187,7 +187,7 @@
     2.4  }
     2.5  
     2.6  int
     2.7 -SDL_SYS_NumHaptics()
     2.8 +SDL_SYS_NumHaptics(void)
     2.9  {
    2.10      return numhaptics;
    2.11  }
     3.1 --- a/src/haptic/windows/SDL_windowshaptic.c	Tue Nov 15 01:30:08 2016 -0800
     3.2 +++ b/src/haptic/windows/SDL_windowshaptic.c	Wed Nov 16 22:08:51 2016 +0100
     3.3 @@ -98,7 +98,7 @@
     3.4  }
     3.5  
     3.6  int
     3.7 -SDL_SYS_NumHaptics()
     3.8 +SDL_SYS_NumHaptics(void)
     3.9  {
    3.10      return numhaptics;
    3.11  }
     4.1 --- a/src/joystick/android/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
     4.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
     4.3 @@ -363,12 +363,14 @@
     4.4  
     4.5  }
     4.6  
     4.7 -int SDL_SYS_NumJoysticks()
     4.8 +int
     4.9 +SDL_SYS_NumJoysticks(void)
    4.10  {
    4.11      return numjoysticks;
    4.12  }
    4.13  
    4.14 -void SDL_SYS_JoystickDetect()
    4.15 +void
    4.16 +SDL_SYS_JoystickDetect(void)
    4.17  {
    4.18      /* Support for device connect/disconnect is API >= 16 only,
    4.19       * so we poll every three seconds
     5.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
     5.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
     5.3 @@ -204,12 +204,14 @@
     5.4      return (SDL_SYS_numjoysticks);
     5.5  }
     5.6  
     5.7 -int SDL_SYS_NumJoysticks()
     5.8 +int
     5.9 +SDL_SYS_NumJoysticks(void)
    5.10  {
    5.11      return SDL_SYS_numjoysticks;
    5.12  }
    5.13  
    5.14 -void SDL_SYS_JoystickDetect()
    5.15 +void
    5.16 +SDL_SYS_JoystickDetect(void)
    5.17  {
    5.18  }
    5.19  
     6.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
     6.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
     6.3 @@ -580,7 +580,7 @@
     6.4  
     6.5  /* Function to return the number of joystick devices plugged in right now */
     6.6  int
     6.7 -SDL_SYS_NumJoysticks()
     6.8 +SDL_SYS_NumJoysticks(void)
     6.9  {
    6.10      recDevice *device = gpDeviceList;
    6.11      int nJoySticks = 0;
    6.12 @@ -598,7 +598,7 @@
    6.13  /* Function to cause any queued joystick insertions to be processed
    6.14   */
    6.15  void
    6.16 -SDL_SYS_JoystickDetect()
    6.17 +SDL_SYS_JoystickDetect(void)
    6.18  {
    6.19      recDevice *device = gpDeviceList;
    6.20      while (device) {
     7.1 --- a/src/joystick/dummy/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
     7.2 +++ b/src/joystick/dummy/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
     7.3 @@ -37,12 +37,14 @@
     7.4      return 0;
     7.5  }
     7.6  
     7.7 -int SDL_SYS_NumJoysticks()
     7.8 +int
     7.9 +SDL_SYS_NumJoysticks(void)
    7.10  {
    7.11      return 0;
    7.12  }
    7.13  
    7.14 -void SDL_SYS_JoystickDetect()
    7.15 +void
    7.16 +SDL_SYS_JoystickDetect(void)
    7.17  {
    7.18  }
    7.19  
     8.1 --- a/src/joystick/emscripten/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
     8.2 +++ b/src/joystick/emscripten/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
     8.3 @@ -240,12 +240,14 @@
     8.4      return item;
     8.5  }
     8.6  
     8.7 -int SDL_SYS_NumJoysticks()
     8.8 +int
     8.9 +SDL_SYS_NumJoysticks(void)
    8.10  {
    8.11      return numjoysticks;
    8.12  }
    8.13  
    8.14 -void SDL_SYS_JoystickDetect()
    8.15 +void
    8.16 +SDL_SYS_JoystickDetect(void)
    8.17  {
    8.18  }
    8.19  
     9.1 --- a/src/joystick/haiku/SDL_haikujoystick.cc	Tue Nov 15 01:30:08 2016 -0800
     9.2 +++ b/src/joystick/haiku/SDL_haikujoystick.cc	Wed Nov 16 22:08:51 2016 +0100
     9.3 @@ -84,12 +84,12 @@
     9.4          return (SDL_SYS_numjoysticks);
     9.5      }
     9.6  
     9.7 -    int SDL_SYS_NumJoysticks()
     9.8 +    int SDL_SYS_NumJoysticks(void)
     9.9      {
    9.10          return SDL_SYS_numjoysticks;
    9.11      }
    9.12  
    9.13 -    void SDL_SYS_JoystickDetect()
    9.14 +    void SDL_SYS_JoystickDetect(void)
    9.15      {
    9.16      }
    9.17  
    10.1 --- a/src/joystick/iphoneos/SDL_sysjoystick.m	Tue Nov 15 01:30:08 2016 -0800
    10.2 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Wed Nov 16 22:08:51 2016 +0100
    10.3 @@ -326,12 +326,14 @@
    10.4      return numjoysticks;
    10.5  }
    10.6  
    10.7 -int SDL_SYS_NumJoysticks()
    10.8 +int
    10.9 +SDL_SYS_NumJoysticks(void)
   10.10  {
   10.11      return numjoysticks;
   10.12  }
   10.13  
   10.14 -void SDL_SYS_JoystickDetect()
   10.15 +void
   10.16 +SDL_SYS_JoystickDetect(void)
   10.17  {
   10.18  }
   10.19  
    11.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
    11.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
    11.3 @@ -348,12 +348,14 @@
    11.4  #endif
    11.5  }
    11.6  
    11.7 -int SDL_SYS_NumJoysticks()
    11.8 +int
    11.9 +SDL_SYS_NumJoysticks(void)
   11.10  {
   11.11      return numjoysticks;
   11.12  }
   11.13  
   11.14 -void SDL_SYS_JoystickDetect()
   11.15 +void
   11.16 +SDL_SYS_JoystickDetect(void)
   11.17  {
   11.18  #if SDL_USE_LIBUDEV
   11.19      SDL_UDEV_Poll();
    12.1 --- a/src/joystick/psp/SDL_sysjoystick.c	Tue Nov 15 01:30:08 2016 -0800
    12.2 +++ b/src/joystick/psp/SDL_sysjoystick.c	Wed Nov 16 22:08:51 2016 +0100
    12.3 @@ -132,12 +132,12 @@
    12.4      return 1;
    12.5  }
    12.6  
    12.7 -int SDL_SYS_NumJoysticks()
    12.8 +int SDL_SYS_NumJoysticks(void)
    12.9  {
   12.10      return 1;
   12.11  }
   12.12  
   12.13 -void SDL_SYS_JoystickDetect()
   12.14 +void SDL_SYS_JoystickDetect(void)
   12.15  {
   12.16  }
   12.17  
    13.1 --- a/src/joystick/windows/SDL_mmjoystick.c	Tue Nov 15 01:30:08 2016 -0800
    13.2 +++ b/src/joystick/windows/SDL_mmjoystick.c	Wed Nov 16 22:08:51 2016 +0100
    13.3 @@ -183,12 +183,14 @@
    13.4      return (SDL_SYS_numjoysticks);
    13.5  }
    13.6  
    13.7 -int SDL_SYS_NumJoysticks()
    13.8 +int
    13.9 +SDL_SYS_NumJoysticks(void)
   13.10  {
   13.11      return SDL_SYS_numjoysticks;
   13.12  }
   13.13  
   13.14 -void SDL_SYS_JoystickDetect()
   13.15 +void
   13.16 +SDL_SYS_JoystickDetect(void)
   13.17  {
   13.18  }
   13.19  
    14.1 --- a/src/joystick/windows/SDL_windowsjoystick.c	Tue Nov 15 01:30:08 2016 -0800
    14.2 +++ b/src/joystick/windows/SDL_windowsjoystick.c	Wed Nov 16 22:08:51 2016 +0100
    14.3 @@ -307,7 +307,7 @@
    14.4  
    14.5  /* return the number of joysticks that are connected right now */
    14.6  int
    14.7 -SDL_SYS_NumJoysticks()
    14.8 +SDL_SYS_NumJoysticks(void)
    14.9  {
   14.10      int nJoysticks = 0;
   14.11      JoyStick_DeviceData *device = SYS_Joystick;
   14.12 @@ -321,7 +321,7 @@
   14.13  
   14.14  /* detect any new joysticks being inserted into the system */
   14.15  void
   14.16 -SDL_SYS_JoystickDetect()
   14.17 +SDL_SYS_JoystickDetect(void)
   14.18  {
   14.19      JoyStick_DeviceData *pCurList = NULL;
   14.20  
    15.1 --- a/src/render/opengl/SDL_shaders_gl.c	Tue Nov 15 01:30:08 2016 -0800
    15.2 +++ b/src/render/opengl/SDL_shaders_gl.c	Wed Nov 16 22:08:51 2016 +0100
    15.3 @@ -369,7 +369,7 @@
    15.4  }
    15.5  
    15.6  GL_ShaderContext *
    15.7 -GL_CreateShaderContext()
    15.8 +GL_CreateShaderContext(void)
    15.9  {
   15.10      GL_ShaderContext *ctx;
   15.11      SDL_bool shaders_supported;
    16.1 --- a/src/thread/SDL_thread.c	Tue Nov 15 01:30:08 2016 -0800
    16.2 +++ b/src/thread/SDL_thread.c	Wed Nov 16 22:08:51 2016 +0100
    16.3 @@ -121,7 +121,7 @@
    16.4  
    16.5  
    16.6  SDL_TLSData *
    16.7 -SDL_Generic_GetTLSData()
    16.8 +SDL_Generic_GetTLSData(void)
    16.9  {
   16.10      SDL_threadID thread = SDL_ThreadID();
   16.11      SDL_TLSEntry *entry;
    17.1 --- a/src/thread/generic/SDL_systls.c	Tue Nov 15 01:30:08 2016 -0800
    17.2 +++ b/src/thread/generic/SDL_systls.c	Wed Nov 16 22:08:51 2016 +0100
    17.3 @@ -24,7 +24,7 @@
    17.4  
    17.5  
    17.6  SDL_TLSData *
    17.7 -SDL_SYS_GetTLSData()
    17.8 +SDL_SYS_GetTLSData(void)
    17.9  {
   17.10      return SDL_Generic_GetTLSData();
   17.11  }
    18.1 --- a/src/thread/pthread/SDL_systls.c	Tue Nov 15 01:30:08 2016 -0800
    18.2 +++ b/src/thread/pthread/SDL_systls.c	Wed Nov 16 22:08:51 2016 +0100
    18.3 @@ -32,7 +32,7 @@
    18.4  static SDL_bool generic_local_storage = SDL_FALSE;
    18.5  
    18.6  SDL_TLSData *
    18.7 -SDL_SYS_GetTLSData()
    18.8 +SDL_SYS_GetTLSData(void)
    18.9  {
   18.10      if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) {
   18.11          static SDL_SpinLock lock;
    19.1 --- a/src/thread/stdcpp/SDL_systhread.cpp	Tue Nov 15 01:30:08 2016 -0800
    19.2 +++ b/src/thread/stdcpp/SDL_systhread.cpp	Wed Nov 16 22:08:51 2016 +0100
    19.3 @@ -153,7 +153,7 @@
    19.4  
    19.5  extern "C"
    19.6  SDL_TLSData *
    19.7 -SDL_SYS_GetTLSData()
    19.8 +SDL_SYS_GetTLSData(void)
    19.9  {
   19.10      return SDL_Generic_GetTLSData();
   19.11  }
    20.1 --- a/src/thread/windows/SDL_systls.c	Tue Nov 15 01:30:08 2016 -0800
    20.2 +++ b/src/thread/windows/SDL_systls.c	Wed Nov 16 22:08:51 2016 +0100
    20.3 @@ -32,7 +32,7 @@
    20.4  static SDL_bool generic_local_storage = SDL_FALSE;
    20.5  
    20.6  SDL_TLSData *
    20.7 -SDL_SYS_GetTLSData()
    20.8 +SDL_SYS_GetTLSData(void)
    20.9  {
   20.10      if (thread_local_storage == TLS_OUT_OF_INDEXES && !generic_local_storage) {
   20.11          static SDL_SpinLock lock;