diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-07 17:09:31 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-07 17:09:31 (GMT) |
commit | 7d5f9e847a75c65f97068b3fd7980e62717c16fc (patch) | |
tree | 92ba6ec03558f4759c402221e7d7bae2ca7ee5eb /Mac/Python/macgetpath.c | |
parent | 6d653ab1b6463957f0c4d9059e778132c65123fa (diff) | |
download | cpython-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/macgetpath.c')
-rw-r--r-- | Mac/Python/macgetpath.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c index 5c2cafd..466f073 100644 --- a/Mac/Python/macgetpath.c +++ b/Mac/Python/macgetpath.c @@ -310,9 +310,7 @@ out: #endif /* !USE_BUILTIN_PATH */ void -PyMac_PreferenceOptions(int *inspect, int *verbose, int *suppress_print, - int *unbuffered, int *debugging, int *keep_normal, - int *keep_error) +PyMac_PreferenceOptions(PyMac_PrefRecord *pr) { short oldrh, prefrh = -1; Handle handle; @@ -339,14 +337,15 @@ PyMac_PreferenceOptions(int *inspect, int *verbose, int *suppress_print, size = GetHandleSize(handle); p = (char *)*handle; - if ( size > POPT_INSPECT ) *inspect = p[POPT_INSPECT]; - if ( size > POPT_VERBOSE ) *verbose = p[POPT_VERBOSE]; - if ( size > POPT_SUPPRESS ) *suppress_print = p[POPT_SUPPRESS]; - if ( size > POPT_UNBUFFERED ) *unbuffered = p[POPT_UNBUFFERED]; - if ( size > POPT_DEBUGGING ) *debugging = p[POPT_DEBUGGING]; - if ( size > POPT_KEEPNORM ) *keep_normal = p[POPT_KEEPNORM]; - if ( size > POPT_KEEPERR ) *keep_error = p[POPT_KEEPERR]; - /* The rest are not implemented yet */ + if ( size > POPT_INSPECT ) pr->inspect = p[POPT_INSPECT]; + if ( size > POPT_VERBOSE ) pr->verbose = p[POPT_VERBOSE]; + if ( size > POPT_SUPPRESS ) pr->suppress_print = p[POPT_SUPPRESS]; + if ( size > POPT_UNBUFFERED ) pr->unbuffered = p[POPT_UNBUFFERED]; + if ( size > POPT_DEBUGGING ) pr->debugging = p[POPT_DEBUGGING]; + if ( size > POPT_KEEPNORM ) pr->keep_normal = p[POPT_KEEPNORM]; + if ( size > POPT_KEEPERR ) pr->keep_error = p[POPT_KEEPERR]; + if ( size > POPT_NOINTOPT ) pr->nointopt = p[POPT_NOINTOPT]; + if ( size > POPT_NOARGS ) pr->noargs = p[POPT_NOARGS]; HUnlock(handle); |