diff Mac/Python/macmain.c @ 5711:fb170ce82951 legacy-trunk

Removed old scheduler parameterizing calls and replaced with something a bit easier to use and understand
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 03 Jun 1997 15:28:29 +0000
parents 70855574516b
children f027dd0a85e4
line wrap: on
line diff
--- a/Mac/Python/macmain.c	Tue Jun 03 15:27:31 1997 +0000
+++ b/Mac/Python/macmain.c	Tue Jun 03 15:28:29 1997 +0000
@@ -240,8 +240,15 @@
 	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) {