summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-10 20:56:29 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-10 20:56:29 (GMT)
commita597dde3f1959127c33296a77f76331b59449c01 (patch)
tree1b41173d59525e5c16ea772aaa60dc0c123dc409 /Modules/signalmodule.c
parent6c1874fc2bd0e0d2e30de78fe1f1fe8bcf8a20be (diff)
downloadcpython-a597dde3f1959127c33296a77f76331b59449c01.zip
cpython-a597dde3f1959127c33296a77f76331b59449c01.tar.gz
cpython-a597dde3f1959127c33296a77f76331b59449c01.tar.bz2
cosmetic changes so these modules will work with the strict new naming scheme
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 4b81889..97d895b 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -28,7 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "intrcheck.h"
#include <signal.h>
-#include <errno.h>
#ifndef SIG_ERR
#define SIG_ERR ((RETSIGTYPE (*)())-1)
@@ -130,16 +129,16 @@ PySignal_Alarm(self, args)
return PyInt_FromLong(alarm(t));
}
-static object *
+static PyObject *
PySignal_Pause(self, args)
PyObject *self; /* Not used */
PyObject *args;
{
if (!PyArg_NoArgs(args))
return NULL;
- BGN_SAVE
+ Py_BEGIN_ALLOW_THREADS
pause();
- END_SAVE
+ Py_END_ALLOW_THREADS
Py_INCREF(Py_None);
return Py_None;
}
@@ -418,7 +417,7 @@ sigcheck()
if (get_thread_ident() != main_thread)
return 0;
#endif
- f = getframe();
+ f = PyEval_GetFrame();
if (f == (PyObject *)NULL)
f = Py_None;
for (i = 1; i < NSIG; i++) {
@@ -446,13 +445,13 @@ sigcheck()
/* Replacement for intrcheck.c functionality */
void
-initintr()
+PyOS_InitInterrupts ()
{
initsignal();
}
int
-intrcheck()
+PyOS_InterruptOccurred ()
{
if (PySignal_SignalHandlerArray[SIGINT].tripped) {
#ifdef WITH_THREAD