diff Mac/Python/macglue.c @ 4024:53d511c0029f legacy-trunk

Fixed command-. handling Added hacks for GetEventQueue (so you don't have to edit Events.h)
author Jack Jansen <jack.jansen@cwi.nl>
date Mon, 19 Aug 1996 15:11:45 +0000
parents 40c929335d7f
children b70baba1c789
line wrap: on
line diff
--- a/Mac/Python/macglue.c	Mon Aug 19 15:10:50 1996 +0000
+++ b/Mac/Python/macglue.c	Mon Aug 19 15:11:45 1996 +0000
@@ -22,6 +22,20 @@
 
 ******************************************************************/
 
+#ifdef __CFM68K__
+/* cfm68k InterfaceLib exports GetEventQueue, but Events.h doesn't know this
+** and defines it as GetEvQHdr (which is correct for PPC). This fix is for
+** CW9, check that the workaround is still needed for the next release.
+*/
+#define GetEvQHdr GetEventQueue
+#endif /* __CFM68K__ */
+
+#include <Events.h>
+
+#ifdef __CFM68K__
+#undef GetEventQueue
+#endif /* __CFM68K__ */
+
 #include "Python.h"
 
 #include "macglue.h"
@@ -35,7 +49,6 @@
 #include <StandardFile.h>
 #include <Resources.h>
 #include <Memory.h>
-#include <Events.h>
 #include <Windows.h>
 #include <Desk.h>
 #include <Traps.h>
@@ -402,7 +415,7 @@
 							NGetTrapAddress(_Unimplemented, ToolTrap));
 	}
 
-	if ( !PyMac_DoYieldEnabled ) {
+	if ( PyMac_DoYieldEnabled >= 0) {
 #ifndef THINK_C
 		/* Under think this has been done before in intrcheck() or intrpeek() */
 		scan_event_queue(0);