include/SDL_timer.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/include/SDL_timer.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_timer.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -49,13 +49,13 @@
     1.4  /* Get the number of milliseconds since the SDL library initialization.
     1.5   * Note that this value wraps if the program runs for more than ~49 days.
     1.6   */
     1.7 -extern DECLSPEC Uint32 SDLCALL SDL_GetTicks (void);
     1.8 +extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void);
     1.9  
    1.10  /* Wait a specified number of milliseconds before returning */
    1.11 -extern DECLSPEC void SDLCALL SDL_Delay (Uint32 ms);
    1.12 +extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms);
    1.13  
    1.14  /* Function prototype for the timer callback function */
    1.15 -typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval);
    1.16 +typedef Uint32(SDLCALL * SDL_TimerCallback) (Uint32 interval);
    1.17  
    1.18  /* Set a callback to run after the specified number of milliseconds has
    1.19   * elapsed. The callback function is passed the current timer interval
    1.20 @@ -85,8 +85,8 @@
    1.21   *
    1.22   * This function returns 0 if successful, or -1 if there was an error.
    1.23   */
    1.24 -extern DECLSPEC int SDLCALL SDL_SetTimer (Uint32 interval,
    1.25 -                                          SDL_TimerCallback callback);
    1.26 +extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval,
    1.27 +                                         SDL_TimerCallback callback);
    1.28  
    1.29  /* New timer API, supports multiple timers
    1.30   * Written by Stephane Peter <megastep@lokigames.com>
    1.31 @@ -98,8 +98,7 @@
    1.32   * passed in, the periodic alarm continues, otherwise a new alarm is
    1.33   * scheduled.  If the callback returns 0, the periodic alarm is cancelled.
    1.34   */
    1.35 -typedef Uint32 (SDLCALL * SDL_NewTimerCallback) (Uint32 interval,
    1.36 -                                                 void *param);
    1.37 +typedef Uint32(SDLCALL * SDL_NewTimerCallback) (Uint32 interval, void *param);
    1.38  
    1.39  /* Definition of the timer ID type */
    1.40  typedef struct _SDL_TimerID *SDL_TimerID;
    1.41 @@ -107,14 +106,14 @@
    1.42  /* Add a new timer to the pool of timers already running.
    1.43     Returns a timer ID, or NULL when an error occurs.
    1.44   */
    1.45 -extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer (Uint32 interval,
    1.46 -                                                  SDL_NewTimerCallback
    1.47 -                                                  callback, void *param);
    1.48 +extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval,
    1.49 +                                                 SDL_NewTimerCallback
    1.50 +                                                 callback, void *param);
    1.51  
    1.52  /* Remove one of the multiple timers knowing its ID.
    1.53   * Returns a boolean value indicating success.
    1.54   */
    1.55 -extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer (SDL_TimerID t);
    1.56 +extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID t);
    1.57  
    1.58  /* Ends C function definitions when using C++ */
    1.59  #ifdef __cplusplus