summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetargv.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-07 17:09:31 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-07 17:09:31 (GMT)
commit7d5f9e847a75c65f97068b3fd7980e62717c16fc (patch)
tree92ba6ec03558f4759c402221e7d7bae2ca7ee5eb /Mac/Python/macgetargv.c
parent6d653ab1b6463957f0c4d9059e778132c65123fa (diff)
downloadcpython-7d5f9e847a75c65f97068b3fd7980e62717c16fc.zip
cpython-7d5f9e847a75c65f97068b3fd7980e62717c16fc.tar.gz
cpython-7d5f9e847a75c65f97068b3fd7980e62717c16fc.tar.bz2
- 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
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r--Mac/Python/macgetargv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index a06b100..e0ecb8e 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -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;