@@ -36,7 +36,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3636#include <Events.h>
3737#include <Windows.h>
3838#include <Fonts.h>
39-
39+ #include <Balloons.h>
4040#ifdef __MWERKS__
4141#include <SIOUX.h>
4242#define USE_SIOUX
@@ -124,11 +124,13 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
124124
125125 SET_OPT_ITEM (OPT_INSPECT , inspect );
126126 SET_OPT_ITEM (OPT_VERBOSE , verbose );
127- /* SET_OPT_ITEM(OPT_SUPPRESS, suppress_print); */
127+ SET_OPT_ITEM (OPT_OPTIMIZE , optimize );
128128 SET_OPT_ITEM (OPT_UNBUFFERED , unbuffered );
129129 SET_OPT_ITEM (OPT_DEBUGGING , debugging );
130130 SET_OPT_ITEM (OPT_KEEPNORMAL , keep_normal );
131131 SET_OPT_ITEM (OPT_KEEPERROR , keep_error );
132+ SET_OPT_ITEM (OPT_OLDEXC , oldexc );
133+ SET_OPT_ITEM (OPT_NOSITE , nosite );
132134 /* The rest are not settable interactively */
133135
134136#undef SET_OPT_ITEM
@@ -142,6 +144,9 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
142144 DisposeDialog (dialog );
143145 exit (0 );
144146 }
147+ if ( item == OPT_HELP ) {
148+ HMSetBalloons (!HMGetBalloons ());
149+ }
145150 if ( item == OPT_CMDLINE ) {
146151 int new_argc , newer_argc ;
147152 char * * new_argv , * * newer_argv ;
@@ -169,11 +174,13 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
169174
170175 OPT_ITEM (OPT_INSPECT , inspect );
171176 OPT_ITEM (OPT_VERBOSE , verbose );
172- /* OPT_ITEM(OPT_SUPPRESS, suppress_print); */
177+ OPT_ITEM (OPT_OPTIMIZE , optimize );
173178 OPT_ITEM (OPT_UNBUFFERED , unbuffered );
174179 OPT_ITEM (OPT_DEBUGGING , debugging );
175180 OPT_ITEM (OPT_KEEPNORMAL , keep_normal );
176181 OPT_ITEM (OPT_KEEPERROR , keep_error );
182+ OPT_ITEM (OPT_OLDEXC , oldexc );
183+ OPT_ITEM (OPT_NOSITE , nosite );
177184
178185#undef OPT_ITEM
179186 }
@@ -233,6 +240,7 @@ init_common(int *argcp, char ***argvp, int embedded)
233240 /* Copy selected options to where the machine-independent stuff wants it */
234241 Py_VerboseFlag = options .verbose ;
235242/* Py_SuppressPrintingFlag = options.suppress_print; */
243+ Py_OptimizeFlag = options .optimize ;
236244 Py_DebugFlag = options .debugging ;
237245 if ( options .noargs ) {
238246 /* don't process events at all without the scripts permission */
@@ -243,6 +251,7 @@ init_common(int *argcp, char ***argvp, int embedded)
243251 /* Should we disable command-dot as well? */
244252 PyMac_SetSchedParams (& scp );
245253 }
254+ /* XXXX dispatch oldexc and nosite */
246255
247256 /* Set buffering */
248257 if (options .unbuffered ) {
0 commit comments