]> granicus.if.org Git - python/commitdiff
Guido:
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 19 Aug 1996 11:36:25 +0000 (11:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 19 Aug 1996 11:36:25 +0000 (11:36 +0000)
- new SpinCursor (replacing Jack's almost-identical one)
- use GetEventQueue in stead of GetEvQHdr

Mac/Python/macglue.c

index 7af6e132df18f49caf5eacb3648e0c833ec609cb..2c8951ad86ec87e53d07edec856f996fa0cdba33 100644 (file)
@@ -155,14 +155,9 @@ PyMac_FixGUSIcd()
 }
 
 #ifdef __CFM68K__
-/*
-** There is no SpinCursor for cfm68k.
-*/
-SpinCursor(dummy)
-int dummy;
-{
-}
-#endif
+void SpinCursor(short x) { /* Dummy */ }
+#endif /* __CFM68K */
+
 #endif
 
 
@@ -282,12 +277,9 @@ static void
 scan_event_queue(flush)
        int flush;
 {
-#if defined(__MWERKS__) && defined(__CFM68K__)
-       return; /* No GetEvQHdr yet */
-#else
        register EvQElPtr q;
        
-       q = (EvQElPtr) GetEvQHdr()->qHead;
+       q = (EvQElPtr) GetEventQueue()->qHead;
        
        for (; q; q = (EvQElPtr)q->qLink) {
                if (q->evtQWhat == keyDown &&
@@ -299,7 +291,6 @@ scan_event_queue(flush)
                        break;
                }
        }
-#endif
 }
 
 int
@@ -398,7 +389,7 @@ PyMac_HandleEvent(evp)
 /*
 ** Yield the CPU to other tasks.
 */
-static
+static void
 PyMac_DoYield()
 {
        EventRecord ev;