summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-07-23 21:18:09 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-07-23 21:18:09 (GMT)
commit4f1b2081e9dde910048ef679f5afe252023a4031 (patch)
treed0329ad8a22d260b10e05c31ca6291eb26f70b27 /Parser
parent56055a474955811fd672e406d0a175349879759d (diff)
downloadcpython-4f1b2081e9dde910048ef679f5afe252023a4031.zip
cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.gz
cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.bz2
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.c5
1 files changed, 2 insertions, 3 deletions
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 @@ 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)