Removed old scheduler parameterizing calls and replaced with something

a bit easier to use and understand
This commit is contained in:
Jack Jansen 1997-06-03 15:28:29 +00:00
parent 4a79a4b0a9
commit e3ae0dfeb7
2 changed files with 125 additions and 102 deletions

View file

@ -240,8 +240,15 @@ init_common(int *argcp, char ***argvp, int embedded)
Py_VerboseFlag = options.verbose;
Py_SuppressPrintingFlag = options.suppress_print;
Py_DebugFlag = options.debugging;
if ( options.noargs )
PyMac_DoYieldEnabled = 0;
if ( options.noargs ) {
/* don't process events at all without the scripts permission */
PyMacSchedParams scp;
PyMac_GetSchedParams(&scp);
scp.process_events = 0;
/* Should we disable command-dot as well? */
PyMac_SetSchedParams(&scp);
}
/* Set buffering */
if (options.unbuffered) {