summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-08-19 11:36:25 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-08-19 11:36:25 (GMT)
commitcfadbd40e10732498ba18a78ac9ad4efb39a93a4 (patch)
tree5a53c5ea99c374e2241ca2b0b4c47461225acd44 /Mac/Python
parent76ceece75a9e27973de8fe15cbdba89da8398641 (diff)
downloadcpython-cfadbd40e10732498ba18a78ac9ad4efb39a93a4.zip
cpython-cfadbd40e10732498ba18a78ac9ad4efb39a93a4.tar.gz
cpython-cfadbd40e10732498ba18a78ac9ad4efb39a93a4.tar.bz2
Guido:
- new SpinCursor (replacing Jack's almost-identical one) - use GetEventQueue in stead of GetEvQHdr
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macglue.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 7af6e13..2c8951a 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -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;