summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-23 11:39:28 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-07-23 11:39:28 (GMT)
commit18452a4bf25b35d57a364351eb80def0c262fa6f (patch)
tree9e1f249e1fbdea82a4e0e4bc6d2493f322deaca2 /Mac/Python/macglue.c
parent1fb83c155f7ce0a64a6a27b189144a8b7fc0c3eb (diff)
downloadcpython-18452a4bf25b35d57a364351eb80def0c262fa6f.zip
cpython-18452a4bf25b35d57a364351eb80def0c262fa6f.tar.gz
cpython-18452a4bf25b35d57a364351eb80def0c262fa6f.tar.bz2
MacPython-OS9 has its own copy of the interrupt handling code. Added PyErr_SetInterrupt() here too.
Diffstat (limited to 'Mac/Python/macglue.c')
-rw-r--r--Mac/Python/macglue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 51d73ed..3711610 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -283,6 +283,12 @@ PyOS_CheckStack()
#endif /* USE_STACKCHECK */
#if !TARGET_API_MAC_OSX
+void
+PyErr_SetInterrupt(void)
+{
+ interrupted = 1;
+}
+
/* The catcher routine (which may not be used for all compilers) */
static RETSIGTYPE
intcatcher(sig)