summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-10 15:13:03 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-10 15:13:03 (GMT)
commit575d561c65877aca7c1d0a2c5a2d77799f953798 (patch)
tree24ddf35a9f5d0dbb8a9b2dc2d8f664a1fcdecb1c
parente23e1fbaa67fbca3ea34ff39535833c35701591a (diff)
downloadcpython-575d561c65877aca7c1d0a2c5a2d77799f953798.zip
cpython-575d561c65877aca7c1d0a2c5a2d77799f953798.tar.gz
cpython-575d561c65877aca7c1d0a2c5a2d77799f953798.tar.bz2
added PyErr_SetInterrupt()
-rw-r--r--Parser/intrcheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index 2529655..dd53a1a 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -124,6 +124,12 @@ intrcheck()
static int interrupted;
+void
+PyErr_SetInterrupt()
+{
+ interrupted = 1;
+}
+
/* ARGSUSED */
static RETSIGTYPE
#ifdef _M_IX86