Skip to content

Commit

Permalink
Fixed empty parameter list in signatures of internal functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Nov 16, 2016
1 parent 818d1d3 commit 97aa577
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -189,7 +189,7 @@ SDL_SYS_HapticInit(void)
}

int
SDL_SYS_NumHaptics()
SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
Expand Down
2 changes: 1 addition & 1 deletion src/haptic/linux/SDL_syshaptic.c
Expand Up @@ -187,7 +187,7 @@ SDL_SYS_HapticInit(void)
}

int
SDL_SYS_NumHaptics()
SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
Expand Down
2 changes: 1 addition & 1 deletion src/haptic/windows/SDL_windowshaptic.c
Expand Up @@ -98,7 +98,7 @@ SDL_SYS_RemoveHapticDevice(SDL_hapticlist_item *prev, SDL_hapticlist_item *item)
}

int
SDL_SYS_NumHaptics()
SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
Expand Down
6 changes: 4 additions & 2 deletions src/joystick/android/SDL_sysjoystick.c
Expand Up @@ -363,12 +363,14 @@ SDL_SYS_JoystickInit(void)

}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
/* Support for device connect/disconnect is API >= 16 only,
* so we poll every three seconds
Expand Down
6 changes: 4 additions & 2 deletions src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -204,12 +204,14 @@ SDL_SYS_JoystickInit(void)
return (SDL_SYS_numjoysticks);
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -580,7 +580,7 @@ SDL_SYS_JoystickInit(void)

/* Function to return the number of joystick devices plugged in right now */
int
SDL_SYS_NumJoysticks()
SDL_SYS_NumJoysticks(void)
{
recDevice *device = gpDeviceList;
int nJoySticks = 0;
Expand All @@ -598,7 +598,7 @@ SDL_SYS_NumJoysticks()
/* Function to cause any queued joystick insertions to be processed
*/
void
SDL_SYS_JoystickDetect()
SDL_SYS_JoystickDetect(void)
{
recDevice *device = gpDeviceList;
while (device) {
Expand Down
6 changes: 4 additions & 2 deletions src/joystick/dummy/SDL_sysjoystick.c
Expand Up @@ -37,12 +37,14 @@ SDL_SYS_JoystickInit(void)
return 0;
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return 0;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
}

Expand Down
6 changes: 4 additions & 2 deletions src/joystick/emscripten/SDL_sysjoystick.c
Expand Up @@ -240,12 +240,14 @@ JoystickByIndex(int index)
return item;
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/joystick/haiku/SDL_haikujoystick.cc
Expand Up @@ -84,12 +84,12 @@ extern "C"
return (SDL_SYS_numjoysticks);
}

int SDL_SYS_NumJoysticks()
int SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}

void SDL_SYS_JoystickDetect()
void SDL_SYS_JoystickDetect(void)
{
}

Expand Down
6 changes: 4 additions & 2 deletions src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -326,12 +326,14 @@
return numjoysticks;
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
}

Expand Down
6 changes: 4 additions & 2 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -348,12 +348,14 @@ SDL_SYS_JoystickInit(void)
#endif
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
#if SDL_USE_LIBUDEV
SDL_UDEV_Poll();
Expand Down
4 changes: 2 additions & 2 deletions src/joystick/psp/SDL_sysjoystick.c
Expand Up @@ -132,12 +132,12 @@ int SDL_SYS_JoystickInit(void)
return 1;
}

int SDL_SYS_NumJoysticks()
int SDL_SYS_NumJoysticks(void)
{
return 1;
}

void SDL_SYS_JoystickDetect()
void SDL_SYS_JoystickDetect(void)
{
}

Expand Down
6 changes: 4 additions & 2 deletions src/joystick/windows/SDL_mmjoystick.c
Expand Up @@ -183,12 +183,14 @@ SDL_SYS_JoystickInit(void)
return (SDL_SYS_numjoysticks);
}

int SDL_SYS_NumJoysticks()
int
SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}

void SDL_SYS_JoystickDetect()
void
SDL_SYS_JoystickDetect(void)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/joystick/windows/SDL_windowsjoystick.c
Expand Up @@ -307,7 +307,7 @@ SDL_SYS_JoystickInit(void)

/* return the number of joysticks that are connected right now */
int
SDL_SYS_NumJoysticks()
SDL_SYS_NumJoysticks(void)
{
int nJoysticks = 0;
JoyStick_DeviceData *device = SYS_Joystick;
Expand All @@ -321,7 +321,7 @@ SDL_SYS_NumJoysticks()

/* detect any new joysticks being inserted into the system */
void
SDL_SYS_JoystickDetect()
SDL_SYS_JoystickDetect(void)
{
JoyStick_DeviceData *pCurList = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_shaders_gl.c
Expand Up @@ -369,7 +369,7 @@ DestroyShaderProgram(GL_ShaderContext *ctx, GL_ShaderData *data)
}

GL_ShaderContext *
GL_CreateShaderContext()
GL_CreateShaderContext(void)
{
GL_ShaderContext *ctx;
SDL_bool shaders_supported;
Expand Down
2 changes: 1 addition & 1 deletion src/thread/SDL_thread.c
Expand Up @@ -121,7 +121,7 @@ static SDL_TLSEntry *SDL_generic_TLS;


SDL_TLSData *
SDL_Generic_GetTLSData()
SDL_Generic_GetTLSData(void)
{
SDL_threadID thread = SDL_ThreadID();
SDL_TLSEntry *entry;
Expand Down
2 changes: 1 addition & 1 deletion src/thread/generic/SDL_systls.c
Expand Up @@ -24,7 +24,7 @@


SDL_TLSData *
SDL_SYS_GetTLSData()
SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
Expand Down
2 changes: 1 addition & 1 deletion src/thread/pthread/SDL_systls.c
Expand Up @@ -32,7 +32,7 @@ static pthread_key_t thread_local_storage = INVALID_PTHREAD_KEY;
static SDL_bool generic_local_storage = SDL_FALSE;

SDL_TLSData *
SDL_SYS_GetTLSData()
SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) {
static SDL_SpinLock lock;
Expand Down
2 changes: 1 addition & 1 deletion src/thread/stdcpp/SDL_systhread.cpp
Expand Up @@ -153,7 +153,7 @@ SDL_SYS_DetachThread(SDL_Thread * thread)

extern "C"
SDL_TLSData *
SDL_SYS_GetTLSData()
SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
Expand Down
2 changes: 1 addition & 1 deletion src/thread/windows/SDL_systls.c
Expand Up @@ -32,7 +32,7 @@ static DWORD thread_local_storage = TLS_OUT_OF_INDEXES;
static SDL_bool generic_local_storage = SDL_FALSE;

SDL_TLSData *
SDL_SYS_GetTLSData()
SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == TLS_OUT_OF_INDEXES && !generic_local_storage) {
static SDL_SpinLock lock;
Expand Down

0 comments on commit 97aa577

Please sign in to comment.