1.1 --- a/src/timer/dummy/SDL_systimer.c Sun May 21 17:27:13 2006 +0000
1.2 +++ b/src/timer/dummy/SDL_systimer.c Sun May 28 13:04:16 2006 +0000
1.3 @@ -26,19 +26,22 @@
1.4 #include "SDL_timer.h"
1.5 #include "../SDL_timer_c.h"
1.6
1.7 -void SDL_StartTicks(void)
1.8 +void
1.9 +SDL_StartTicks (void)
1.10 {
1.11 }
1.12
1.13 -Uint32 SDL_GetTicks (void)
1.14 +Uint32
1.15 +SDL_GetTicks (void)
1.16 {
1.17 - SDL_Unsupported();
1.18 - return 0;
1.19 + SDL_Unsupported ();
1.20 + return 0;
1.21 }
1.22
1.23 -void SDL_Delay (Uint32 ms)
1.24 +void
1.25 +SDL_Delay (Uint32 ms)
1.26 {
1.27 - SDL_Unsupported();
1.28 + SDL_Unsupported ();
1.29 }
1.30
1.31 #include "SDL_thread.h"
1.32 @@ -47,45 +50,51 @@
1.33 static int timer_alive = 0;
1.34 static SDL_Thread *timer = NULL;
1.35
1.36 -static int RunTimer(void *unused)
1.37 +static int
1.38 +RunTimer (void *unused)
1.39 {
1.40 - while ( timer_alive ) {
1.41 - if ( SDL_timer_running ) {
1.42 - SDL_ThreadedTimerCheck();
1.43 - }
1.44 - SDL_Delay(1);
1.45 - }
1.46 - return(0);
1.47 + while (timer_alive) {
1.48 + if (SDL_timer_running) {
1.49 + SDL_ThreadedTimerCheck ();
1.50 + }
1.51 + SDL_Delay (1);
1.52 + }
1.53 + return (0);
1.54 }
1.55
1.56 /* This is only called if the event thread is not running */
1.57 -int SDL_SYS_TimerInit(void)
1.58 +int
1.59 +SDL_SYS_TimerInit (void)
1.60 {
1.61 - timer_alive = 1;
1.62 - timer = SDL_CreateThread(RunTimer, NULL);
1.63 - if ( timer == NULL )
1.64 - return(-1);
1.65 - return(SDL_SetTimerThreaded(1));
1.66 + timer_alive = 1;
1.67 + timer = SDL_CreateThread (RunTimer, NULL);
1.68 + if (timer == NULL)
1.69 + return (-1);
1.70 + return (SDL_SetTimerThreaded (1));
1.71 }
1.72
1.73 -void SDL_SYS_TimerQuit(void)
1.74 +void
1.75 +SDL_SYS_TimerQuit (void)
1.76 {
1.77 - timer_alive = 0;
1.78 - if ( timer ) {
1.79 - SDL_WaitThread(timer, NULL);
1.80 - timer = NULL;
1.81 - }
1.82 + timer_alive = 0;
1.83 + if (timer) {
1.84 + SDL_WaitThread (timer, NULL);
1.85 + timer = NULL;
1.86 + }
1.87 }
1.88
1.89 -int SDL_SYS_StartTimer(void)
1.90 +int
1.91 +SDL_SYS_StartTimer (void)
1.92 {
1.93 - SDL_SetError("Internal logic error: threaded timer in use");
1.94 - return(-1);
1.95 + SDL_SetError ("Internal logic error: threaded timer in use");
1.96 + return (-1);
1.97 }
1.98
1.99 -void SDL_SYS_StopTimer(void)
1.100 +void
1.101 +SDL_SYS_StopTimer (void)
1.102 {
1.103 - return;
1.104 + return;
1.105 }
1.106
1.107 #endif /* SDL_TIMER_DUMMY || SDL_TIMERS_DISABLED */
1.108 +/* vi: set ts=4 sw=4 expandtab: */