summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetargv.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-06-20 07:40:34 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-06-20 07:40:34 (GMT)
commitca23d910f89e2c4ee7b4dd0d634dd157b30e87dc (patch)
tree6b9b67bced0cad25dcf70102ffd69e451f597900 /Mac/Python/macgetargv.c
parent5550de3084d6686032479b3cb9e34337eea24f7b (diff)
downloadcpython-ca23d910f89e2c4ee7b4dd0d634dd157b30e87dc.zip
cpython-ca23d910f89e2c4ee7b4dd0d634dd157b30e87dc.tar.gz
cpython-ca23d910f89e2c4ee7b4dd0d634dd157b30e87dc.tar.bz2
Made argc/argv processing work again under carbon.
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r--Mac/Python/macgetargv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index 7e33280..1eb4a54 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -264,20 +264,20 @@ reset_ae_handlers()
static void
event_loop()
{
-#ifndef TARGET_API_MAC_CARBON
EventRecord event;
int n;
int ok;
got_one = 0;
for (n = 0; n < 100 && !got_one; n++) {
+#ifndef TARGET_API_MAC_CARBON
SystemTask();
+#endif
ok = GetNextEvent(everyEvent, &event);
if (ok && event.what == kHighLevelEvent) {
AEProcessAppleEvent(&event);
}
}
-#endif
}
/* Get the argv vector, return argc */