mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-02 22:30:13 +02:00
Updated source to match SDL function prototype style
This commit is contained in:
@@ -32,8 +32,7 @@ struct SDL_cond
|
||||
};
|
||||
|
||||
/* Create a condition variable */
|
||||
SDL_cond *
|
||||
SDL_CreateCond(void)
|
||||
SDL_cond *SDL_CreateCond(void)
|
||||
{
|
||||
SDL_cond *cond = (SDL_cond *)SDL_malloc(sizeof(SDL_cond));
|
||||
if (cond) {
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
#include "SDL_sysmutex_c.h"
|
||||
|
||||
/* Create a mutex */
|
||||
SDL_mutex *
|
||||
SDL_CreateMutex(void)
|
||||
SDL_mutex *SDL_CreateMutex(void)
|
||||
{
|
||||
SDL_mutex *mutex;
|
||||
|
||||
|
||||
@@ -67,8 +67,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static size_t
|
||||
GetStackSize(size_t requested_size)
|
||||
static size_t GetStackSize(size_t requested_size)
|
||||
{
|
||||
if (requested_size == 0) {
|
||||
return N3DS_THREAD_STACK_SIZE_DEFAULT;
|
||||
@@ -90,8 +89,7 @@ void SDL_SYS_SetupThread(const char *name)
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_threadID
|
||||
SDL_ThreadID(void)
|
||||
SDL_threadID SDL_ThreadID(void)
|
||||
{
|
||||
u32 thread_ID = 0;
|
||||
svcGetThreadId(&thread_ID, CUR_THREAD_HANDLE);
|
||||
|
||||
Reference in New Issue
Block a user