1.1 --- a/src/timer/dummy/SDL_systimer.c Mon May 29 03:53:21 2006 +0000
1.2 +++ b/src/timer/dummy/SDL_systimer.c Mon May 29 04:04:35 2006 +0000
1.3 @@ -27,21 +27,21 @@
1.4 #include "../SDL_timer_c.h"
1.5
1.6 void
1.7 -SDL_StartTicks (void)
1.8 +SDL_StartTicks(void)
1.9 {
1.10 }
1.11
1.12 Uint32
1.13 -SDL_GetTicks (void)
1.14 +SDL_GetTicks(void)
1.15 {
1.16 - SDL_Unsupported ();
1.17 + SDL_Unsupported();
1.18 return 0;
1.19 }
1.20
1.21 void
1.22 -SDL_Delay (Uint32 ms)
1.23 +SDL_Delay(Uint32 ms)
1.24 {
1.25 - SDL_Unsupported ();
1.26 + SDL_Unsupported();
1.27 }
1.28
1.29 #include "SDL_thread.h"
1.30 @@ -51,47 +51,47 @@
1.31 static SDL_Thread *timer = NULL;
1.32
1.33 static int
1.34 -RunTimer (void *unused)
1.35 +RunTimer(void *unused)
1.36 {
1.37 while (timer_alive) {
1.38 if (SDL_timer_running) {
1.39 - SDL_ThreadedTimerCheck ();
1.40 + SDL_ThreadedTimerCheck();
1.41 }
1.42 - SDL_Delay (1);
1.43 + SDL_Delay(1);
1.44 }
1.45 return (0);
1.46 }
1.47
1.48 /* This is only called if the event thread is not running */
1.49 int
1.50 -SDL_SYS_TimerInit (void)
1.51 +SDL_SYS_TimerInit(void)
1.52 {
1.53 timer_alive = 1;
1.54 - timer = SDL_CreateThread (RunTimer, NULL);
1.55 + timer = SDL_CreateThread(RunTimer, NULL);
1.56 if (timer == NULL)
1.57 return (-1);
1.58 - return (SDL_SetTimerThreaded (1));
1.59 + return (SDL_SetTimerThreaded(1));
1.60 }
1.61
1.62 void
1.63 -SDL_SYS_TimerQuit (void)
1.64 +SDL_SYS_TimerQuit(void)
1.65 {
1.66 timer_alive = 0;
1.67 if (timer) {
1.68 - SDL_WaitThread (timer, NULL);
1.69 + SDL_WaitThread(timer, NULL);
1.70 timer = NULL;
1.71 }
1.72 }
1.73
1.74 int
1.75 -SDL_SYS_StartTimer (void)
1.76 +SDL_SYS_StartTimer(void)
1.77 {
1.78 - SDL_SetError ("Internal logic error: threaded timer in use");
1.79 + SDL_SetError("Internal logic error: threaded timer in use");
1.80 return (-1);
1.81 }
1.82
1.83 void
1.84 -SDL_SYS_StopTimer (void)
1.85 +SDL_SYS_StopTimer(void)
1.86 {
1.87 return;
1.88 }