- 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:
Jack Jansen 1996-09-07 17:09:31 +00:00
parent 6d653ab1b6
commit 7d5f9e847a
5 changed files with 197 additions and 157 deletions

View file

@ -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;