summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 12:04:18 (GMT)
committerPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 12:04:18 (GMT)
commite89b15691e224f7742b72b9e502580a0189659fe (patch)
tree3e84c7cdc6c20d13ecc3382333b2b3983d735e43 /Modules/signalmodule.c
parentc4bc0e0895ef4407f7d4239a107a0324ae545bbb (diff)
downloadcpython-e89b15691e224f7742b72b9e502580a0189659fe.zip
cpython-e89b15691e224f7742b72b9e502580a0189659fe.tar.gz
cpython-e89b15691e224f7742b72b9e502580a0189659fe.tar.bz2
ANSI-fication
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index cfbfe20..47151eb 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -97,9 +97,7 @@ static RETSIGTYPE (*old_siginthandler)() = SIG_DFL;
static PyObject *
-signal_default_int_handler(self, arg)
- PyObject *self;
- PyObject *arg;
+signal_default_int_handler(PyObject *self, PyObject *args)
{
PyErr_SetNone(PyExc_KeyboardInterrupt);
return NULL;
@@ -113,8 +111,7 @@ It raises KeyboardInterrupt.";
static RETSIGTYPE
-signal_handler(sig_num)
- int sig_num;
+signal_handler(int sig_num)
{
#ifdef WITH_THREAD
/* See NOTES section above */
@@ -146,9 +143,7 @@ signal_handler(sig_num)
#ifdef HAVE_ALARM
static PyObject *
-signal_alarm(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+signal_alarm(PyObject *self, PyObject *args)
{
int t;
if (!PyArg_Parse(args, "i", &t))
@@ -165,9 +160,7 @@ Arrange for SIGALRM to arrive after the given number of seconds.";
#ifdef HAVE_PAUSE
static PyObject *
-signal_pause(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+signal_pause(PyObject *self, PyObject *args)
{
if (!PyArg_NoArgs(args))
return NULL;
@@ -193,9 +186,7 @@ Wait until a signal arrives.";
static PyObject *
-signal_signal(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+signal_signal(PyObject *self, PyObject *args)
{
PyObject *obj;
int sig_num;
@@ -253,9 +244,7 @@ the first is the signal number, the second is the interrupted stack frame.";
static PyObject *
-signal_getsignal(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+signal_getsignal(PyObject *self, PyObject *args)
{
int sig_num;
PyObject *old_handler;