src/SDL.c
changeset 6867 4c899e841091
parent 6866 e74a4b282450
child 6885 700f1b25f77f
     1.1 --- a/src/SDL.c	Tue Feb 12 11:47:31 2013 -0800
     1.2 +++ b/src/SDL.c	Tue Feb 12 12:18:46 2013 -0800
     1.3 @@ -48,7 +48,8 @@
     1.4  static Uint8 SDL_SubsystemRefCount[ 32 ];
     1.5  
     1.6  /* Private helper to increment a subsystem's ref counter. */
     1.7 -static void SDL_PrivateSubsystemRefCountIncr(Uint32 subsystem)
     1.8 +static void
     1.9 +SDL_PrivateSubsystemRefCountIncr(Uint32 subsystem)
    1.10  {
    1.11      int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
    1.12      SDL_assert(SDL_SubsystemRefCount[subsystem_index] < 255);
    1.13 @@ -56,7 +57,8 @@
    1.14  }
    1.15  
    1.16  /* Private helper to decrement a subsystem's ref counter. */
    1.17 -void SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
    1.18 +static void
    1.19 +SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
    1.20  {
    1.21      int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
    1.22      if (SDL_SubsystemRefCount[subsystem_index] > 0) {
    1.23 @@ -68,11 +70,12 @@
    1.24  static SDL_bool
    1.25  SDL_PrivateShouldInitSubsystem(Uint32 flags, Uint32 subsystem)
    1.26  {
    1.27 +    int subsystem_index;
    1.28      if ((flags & subsystem) == 0) {
    1.29        return SDL_FALSE;
    1.30      }
    1.31  
    1.32 -    int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
    1.33 +    subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
    1.34      SDL_assert(SDL_SubsystemRefCount[subsystem_index] < 255);
    1.35      return (SDL_SubsystemRefCount[subsystem_index] == 0);
    1.36  }