Mercurial > sdl-ios-xcode
diff src/SDL_fatal.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
line wrap: on
line diff
--- a/src/SDL_fatal.c Mon May 29 03:53:21 2006 +0000 +++ b/src/SDL_fatal.c Mon May 29 04:04:35 2006 +0000 @@ -36,11 +36,11 @@ */ static void -SDL_Parachute (int sig) +SDL_Parachute(int sig) { - signal (sig, SIG_DFL); - SDL_Quit (); - raise (sig); + signal(sig, SIG_DFL); + SDL_Quit(); + raise(sig); } static int SDL_fatal_signals[] = { @@ -58,7 +58,7 @@ }; void -SDL_InstallParachute (void) +SDL_InstallParachute(void) { /* Set a handler for any fatal signal not already handled */ int i; @@ -66,27 +66,27 @@ struct sigaction action; for (i = 0; SDL_fatal_signals[i]; ++i) { - sigaction (SDL_fatal_signals[i], NULL, &action); + sigaction(SDL_fatal_signals[i], NULL, &action); if (action.sa_handler == SIG_DFL) { action.sa_handler = SDL_Parachute; - sigaction (SDL_fatal_signals[i], &action, NULL); + sigaction(SDL_fatal_signals[i], &action, NULL); } } #ifdef SIGALRM /* Set SIGALRM to be ignored -- necessary on Solaris */ - sigaction (SIGALRM, NULL, &action); + sigaction(SIGALRM, NULL, &action); if (action.sa_handler == SIG_DFL) { action.sa_handler = SIG_IGN; - sigaction (SIGALRM, &action, NULL); + sigaction(SIGALRM, &action, NULL); } #endif #else void (*ohandler) (int); for (i = 0; SDL_fatal_signals[i]; ++i) { - ohandler = signal (SDL_fatal_signals[i], SDL_Parachute); + ohandler = signal(SDL_fatal_signals[i], SDL_Parachute); if (ohandler != SIG_DFL) { - signal (SDL_fatal_signals[i], ohandler); + signal(SDL_fatal_signals[i], ohandler); } } #endif /* HAVE_SIGACTION */ @@ -94,7 +94,7 @@ } void -SDL_UninstallParachute (void) +SDL_UninstallParachute(void) { /* Remove a handler for any fatal signal handled */ int i; @@ -102,19 +102,19 @@ struct sigaction action; for (i = 0; SDL_fatal_signals[i]; ++i) { - sigaction (SDL_fatal_signals[i], NULL, &action); + sigaction(SDL_fatal_signals[i], NULL, &action); if (action.sa_handler == SDL_Parachute) { action.sa_handler = SIG_DFL; - sigaction (SDL_fatal_signals[i], &action, NULL); + sigaction(SDL_fatal_signals[i], &action, NULL); } } #else void (*ohandler) (int); for (i = 0; SDL_fatal_signals[i]; ++i) { - ohandler = signal (SDL_fatal_signals[i], SIG_DFL); + ohandler = signal(SDL_fatal_signals[i], SIG_DFL); if (ohandler != SDL_Parachute) { - signal (SDL_fatal_signals[i], ohandler); + signal(SDL_fatal_signals[i], ohandler); } } #endif /* HAVE_SIGACTION */ @@ -125,13 +125,13 @@ /* No signals on this platform, nothing to do.. */ void -SDL_InstallParachute (void) +SDL_InstallParachute(void) { return; } void -SDL_UninstallParachute (void) +SDL_UninstallParachute(void) { return; }