Updated source to match SDL function prototype style

This commit is contained in:
Sam Lantinga
2023-05-23 11:29:41 -07:00
parent 737aa881fa
commit ddbdd73258
173 changed files with 481 additions and 942 deletions

View File

@@ -50,8 +50,7 @@ typedef struct SDL_cond_generic
} SDL_cond_generic;
/* Create a condition variable */
SDL_Condition *
SDL_CreateCondition_generic(void)
SDL_Condition *SDL_CreateCondition_generic(void)
{
SDL_cond_generic *cond;

View File

@@ -32,8 +32,7 @@ struct SDL_Mutex
};
/* Create a mutex */
SDL_Mutex *
SDL_CreateMutex(void)
SDL_Mutex *SDL_CreateMutex(void)
{
SDL_Mutex *mutex;

View File

@@ -26,8 +26,7 @@
#ifdef SDL_THREADS_DISABLED
SDL_Semaphore *
SDL_CreateSemaphore(Uint32 initial_value)
SDL_Semaphore *SDL_CreateSemaphore(Uint32 initial_value)
{
SDL_SetError("SDL not built with thread support");
return (SDL_Semaphore *)0;
@@ -62,8 +61,7 @@ struct SDL_Semaphore
SDL_Condition *count_nonzero;
};
SDL_Semaphore *
SDL_CreateSemaphore(Uint32 initial_value)
SDL_Semaphore *SDL_CreateSemaphore(Uint32 initial_value)
{
SDL_Semaphore *sem;

View File

@@ -40,8 +40,7 @@ void SDL_SYS_SetupThread(const char *name)
return;
}
SDL_threadID
SDL_ThreadID(void)
SDL_threadID SDL_ThreadID(void)
{
return 0;
}

View File

@@ -22,8 +22,7 @@
#include "SDL_internal.h"
#include "../SDL_thread_c.h"
SDL_TLSData *
SDL_SYS_GetTLSData(void)
SDL_TLSData *SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}