From 08e767bdc54eeceda4a20593319afd74c5380200 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 2 Feb 1995 14:30:20 +0000 Subject: Under CodeWarrior, make the window go away on exit(0) --- Python/pythonrun.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 #endif +#ifdef __MWERKS__ +#include +#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*/ -- cgit v0.12