diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 +0000 |
commit | 902e13191466b9df89a630c449b51b05ebcb9f9d (patch) | |
tree | 9b3ea5ed4313591063e71f64403d8345dffb153e /Parser | |
parent | 84dff256aba5ec09bebd495761ed03463e944931 (diff) | |
download | cpython-902e13191466b9df89a630c449b51b05ebcb9f9d.tar.gz |
Removed all instances of RETSIGTYPE from the source code: signal
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/intrcheck.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 2f151ee6b4..a17041dcdb 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -149,7 +149,7 @@ checksignals_witharg(void * arg) return PyErr_CheckSignals(); } -static RETSIGTYPE +static void intcatcher(int sig) { extern void Py_Exit(int); @@ -168,10 +168,9 @@ intcatcher(int sig) } signal(SIGINT, intcatcher); Py_AddPendingCall(checksignals_witharg, NULL); - Py_RETURN_FROM_SIGNAL_HANDLER(0); } -static RETSIGTYPE (*old_siginthandler)(int) = SIG_DFL; +static void (*old_siginthandler)(int) = SIG_DFL; void PyOS_InitInterrupts(void) |