Mercurial > sdl-ios-xcode
diff src/timer/dummy/SDL_systimer.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
line wrap: on
line diff
--- a/src/timer/dummy/SDL_systimer.c Mon May 29 03:53:21 2006 +0000 +++ b/src/timer/dummy/SDL_systimer.c Mon May 29 04:04:35 2006 +0000 @@ -27,21 +27,21 @@ #include "../SDL_timer_c.h" void -SDL_StartTicks (void) +SDL_StartTicks(void) { } Uint32 -SDL_GetTicks (void) +SDL_GetTicks(void) { - SDL_Unsupported (); + SDL_Unsupported(); return 0; } void -SDL_Delay (Uint32 ms) +SDL_Delay(Uint32 ms) { - SDL_Unsupported (); + SDL_Unsupported(); } #include "SDL_thread.h" @@ -51,47 +51,47 @@ static SDL_Thread *timer = NULL; static int -RunTimer (void *unused) +RunTimer(void *unused) { while (timer_alive) { if (SDL_timer_running) { - SDL_ThreadedTimerCheck (); + SDL_ThreadedTimerCheck(); } - SDL_Delay (1); + SDL_Delay(1); } return (0); } /* This is only called if the event thread is not running */ int -SDL_SYS_TimerInit (void) +SDL_SYS_TimerInit(void) { timer_alive = 1; - timer = SDL_CreateThread (RunTimer, NULL); + timer = SDL_CreateThread(RunTimer, NULL); if (timer == NULL) return (-1); - return (SDL_SetTimerThreaded (1)); + return (SDL_SetTimerThreaded(1)); } void -SDL_SYS_TimerQuit (void) +SDL_SYS_TimerQuit(void) { timer_alive = 0; if (timer) { - SDL_WaitThread (timer, NULL); + SDL_WaitThread(timer, NULL); timer = NULL; } } int -SDL_SYS_StartTimer (void) +SDL_SYS_StartTimer(void) { - SDL_SetError ("Internal logic error: threaded timer in use"); + SDL_SetError("Internal logic error: threaded timer in use"); return (-1); } void -SDL_SYS_StopTimer (void) +SDL_SYS_StopTimer(void) { return; }