src/SDL_fatal.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/SDL_fatal.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/SDL_fatal.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -36,11 +36,11 @@
     1.4  */
     1.5  
     1.6  static void
     1.7 -SDL_Parachute (int sig)
     1.8 +SDL_Parachute(int sig)
     1.9  {
    1.10 -    signal (sig, SIG_DFL);
    1.11 -    SDL_Quit ();
    1.12 -    raise (sig);
    1.13 +    signal(sig, SIG_DFL);
    1.14 +    SDL_Quit();
    1.15 +    raise(sig);
    1.16  }
    1.17  
    1.18  static int SDL_fatal_signals[] = {
    1.19 @@ -58,7 +58,7 @@
    1.20  };
    1.21  
    1.22  void
    1.23 -SDL_InstallParachute (void)
    1.24 +SDL_InstallParachute(void)
    1.25  {
    1.26      /* Set a handler for any fatal signal not already handled */
    1.27      int i;
    1.28 @@ -66,27 +66,27 @@
    1.29      struct sigaction action;
    1.30  
    1.31      for (i = 0; SDL_fatal_signals[i]; ++i) {
    1.32 -        sigaction (SDL_fatal_signals[i], NULL, &action);
    1.33 +        sigaction(SDL_fatal_signals[i], NULL, &action);
    1.34          if (action.sa_handler == SIG_DFL) {
    1.35              action.sa_handler = SDL_Parachute;
    1.36 -            sigaction (SDL_fatal_signals[i], &action, NULL);
    1.37 +            sigaction(SDL_fatal_signals[i], &action, NULL);
    1.38          }
    1.39      }
    1.40  #ifdef SIGALRM
    1.41      /* Set SIGALRM to be ignored -- necessary on Solaris */
    1.42 -    sigaction (SIGALRM, NULL, &action);
    1.43 +    sigaction(SIGALRM, NULL, &action);
    1.44      if (action.sa_handler == SIG_DFL) {
    1.45          action.sa_handler = SIG_IGN;
    1.46 -        sigaction (SIGALRM, &action, NULL);
    1.47 +        sigaction(SIGALRM, &action, NULL);
    1.48      }
    1.49  #endif
    1.50  #else
    1.51      void (*ohandler) (int);
    1.52  
    1.53      for (i = 0; SDL_fatal_signals[i]; ++i) {
    1.54 -        ohandler = signal (SDL_fatal_signals[i], SDL_Parachute);
    1.55 +        ohandler = signal(SDL_fatal_signals[i], SDL_Parachute);
    1.56          if (ohandler != SIG_DFL) {
    1.57 -            signal (SDL_fatal_signals[i], ohandler);
    1.58 +            signal(SDL_fatal_signals[i], ohandler);
    1.59          }
    1.60      }
    1.61  #endif /* HAVE_SIGACTION */
    1.62 @@ -94,7 +94,7 @@
    1.63  }
    1.64  
    1.65  void
    1.66 -SDL_UninstallParachute (void)
    1.67 +SDL_UninstallParachute(void)
    1.68  {
    1.69      /* Remove a handler for any fatal signal handled */
    1.70      int i;
    1.71 @@ -102,19 +102,19 @@
    1.72      struct sigaction action;
    1.73  
    1.74      for (i = 0; SDL_fatal_signals[i]; ++i) {
    1.75 -        sigaction (SDL_fatal_signals[i], NULL, &action);
    1.76 +        sigaction(SDL_fatal_signals[i], NULL, &action);
    1.77          if (action.sa_handler == SDL_Parachute) {
    1.78              action.sa_handler = SIG_DFL;
    1.79 -            sigaction (SDL_fatal_signals[i], &action, NULL);
    1.80 +            sigaction(SDL_fatal_signals[i], &action, NULL);
    1.81          }
    1.82      }
    1.83  #else
    1.84      void (*ohandler) (int);
    1.85  
    1.86      for (i = 0; SDL_fatal_signals[i]; ++i) {
    1.87 -        ohandler = signal (SDL_fatal_signals[i], SIG_DFL);
    1.88 +        ohandler = signal(SDL_fatal_signals[i], SIG_DFL);
    1.89          if (ohandler != SDL_Parachute) {
    1.90 -            signal (SDL_fatal_signals[i], ohandler);
    1.91 +            signal(SDL_fatal_signals[i], ohandler);
    1.92          }
    1.93      }
    1.94  #endif /* HAVE_SIGACTION */
    1.95 @@ -125,13 +125,13 @@
    1.96  /* No signals on this platform, nothing to do.. */
    1.97  
    1.98  void
    1.99 -SDL_InstallParachute (void)
   1.100 +SDL_InstallParachute(void)
   1.101  {
   1.102      return;
   1.103  }
   1.104  
   1.105  void
   1.106 -SDL_UninstallParachute (void)
   1.107 +SDL_UninstallParachute(void)
   1.108  {
   1.109      return;
   1.110  }