mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
Updated source to match SDL function prototype style
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -32,8 +32,7 @@ struct SDL_Mutex
|
||||
};
|
||||
|
||||
/* Create a mutex */
|
||||
SDL_Mutex *
|
||||
SDL_CreateMutex(void)
|
||||
SDL_Mutex *SDL_CreateMutex(void)
|
||||
{
|
||||
SDL_Mutex *mutex;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -40,8 +40,7 @@ void SDL_SYS_SetupThread(const char *name)
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_threadID
|
||||
SDL_ThreadID(void)
|
||||
SDL_threadID SDL_ThreadID(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user