]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Under CodeWarrior, make the window go away on exit(0)
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Feb 1995 14:30:20 +0000 (14:30 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Feb 1995 14:30:20 +0000 (14:30 +0000)
Python/pythonrun.c

index 980f2edee4a9751a588f1bb789664428103ae700..c0214fc1e584f11e31a4b261980afcc269b950db 100644 (file)
@@ -48,6 +48,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <console.h>
 #endif
 
+#ifdef __MWERKS__
+#include <SIOUX.h>
+#endif
+
 extern char *getpythonpath();
 
 extern grammar gram; /* From graminit.c */
@@ -641,9 +645,16 @@ goaway(sts)
        }
 #endif /* TRACE_REFS */
 
+       /* XXXX Jack thinks it would be nicer to pause if any output has
+       ** been generated since the last interaction with the user...
+       */
 #ifdef THINK_C
        if (sts == 0)
                console_options.pause_atexit = 0;
+#endif
+#ifdef __MWERKS__
+       if (sts == 0)
+               SIOUXSettings.autocloseonquit = 1;
 #endif
        exit(sts);
 #endif /* WITH_THREAD */