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).
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index 2f151ee..a17041d 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -149,7 +149,7 @@
return PyErr_CheckSignals();
}
-static RETSIGTYPE
+static void
intcatcher(int sig)
{
extern void Py_Exit(int);
@@ -168,10 +168,9 @@
}
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)