]> granicus.if.org Git - python/commitdiff
MacPython-OS9 has its own copy of the interrupt handling code. Added PyErr_SetInterru...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 23 Jul 2003 11:39:28 +0000 (11:39 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 23 Jul 2003 11:39:28 +0000 (11:39 +0000)
Mac/Python/macglue.c

index 51d73edb64508f53bf2705e1db5dd295ae66c801..371161020ea013d272becee19324e59413daf332 100644 (file)
@@ -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)