summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-02-02 14:30:20 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-02-02 14:30:20 (GMT)
commit08e767bdc54eeceda4a20593319afd74c5380200 (patch)
tree0f88386d1bae36792b9431a96cdcdd30c99c074f /Python/pythonrun.c
parent971e1df3df8c67fb8f926001e820fcce89f3c6e8 (diff)
downloadcpython-08e767bdc54eeceda4a20593319afd74c5380200.zip
cpython-08e767bdc54eeceda4a20593319afd74c5380200.tar.gz
cpython-08e767bdc54eeceda4a20593319afd74c5380200.tar.bz2
Under CodeWarrior, make the window go away on exit(0)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 980f2ed..c0214fc 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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,10 +645,17 @@ 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 */
/*NOTREACHED*/