]> granicus.if.org Git - python/commitdiff
Made argc/argv processing work again under carbon.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 20 Jun 2000 07:40:34 +0000 (07:40 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 20 Jun 2000 07:40:34 +0000 (07:40 +0000)
Mac/Python/macgetargv.c

index 7e33280a8a6a3dca5d05a574cb75b603dbb9257f..1eb4a54b77070482654a3f9e0de31a099c32066c 100644 (file)
@@ -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 */