mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
- Put all options in a struct
- Unified initialization code for interpreter and applet - Implemented new options to skip AE-processing for argc/argv and for disabling interactive option setting
This commit is contained in:
parent
6d653ab1b6
commit
7d5f9e847a
5 changed files with 197 additions and 157 deletions
|
@ -295,16 +295,19 @@ event_loop()
|
|||
/* Get the argv vector, return argc */
|
||||
|
||||
int
|
||||
PyMac_GetArgv(pargv)
|
||||
PyMac_GetArgv(pargv, noevents)
|
||||
char ***pargv;
|
||||
int noevents;
|
||||
{
|
||||
|
||||
arg_count = 0;
|
||||
arg_vector[arg_count++] = strdup(get_application_name());
|
||||
|
||||
set_ae_handlers();
|
||||
event_loop();
|
||||
reset_ae_handlers();
|
||||
if( !noevents ) {
|
||||
set_ae_handlers();
|
||||
event_loop();
|
||||
reset_ae_handlers();
|
||||
}
|
||||
|
||||
arg_vector[arg_count] = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue