mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Made argc/argv processing work again under carbon.
This commit is contained in:
parent
5550de3084
commit
ca23d910f8
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue