summaryrefslogtreecommitdiffstats
path: root/Python/sigcheck.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-29 20:08:16 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-29 20:08:16 (GMT)
commit79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569 (patch)
tree5e456453855bd2906af42f998d70f17e8b834cba /Python/sigcheck.c
parent65bf9f265e4052c3eee95cd73f8de66bc92e53bf (diff)
downloadcpython-79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569.zip
cpython-79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569.tar.gz
cpython-79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569.tar.bz2
Quickly renamed the remaining files -- this directory is done.
Diffstat (limited to 'Python/sigcheck.c')
-rw-r--r--Python/sigcheck.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Python/sigcheck.c b/Python/sigcheck.c
index a0f8179..81785ef 100644
--- a/Python/sigcheck.c
+++ b/Python/sigcheck.c
@@ -36,15 +36,14 @@ PERFORMANCE OF THIS SOFTWARE.
overridden (at link time) by a more powerful version implemented in
signalmodule.c. */
-#include "allobjects.h"
-#include "intrcheck.h"
+#include "Python.h"
/* ARGSUSED */
int
-sigcheck()
+PyErr_CheckSignals()
{
- if (!intrcheck())
+ if (!PyOS_InterruptOccurred())
return 0;
- err_set(KeyboardInterrupt);
+ PyErr_SetNone(PyExc_KeyboardInterrupt);
return -1;
}