Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 2279:618701cdf600 legacy-trunk
Under CodeWarrior, make the window go away on exit(0)
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 02 Feb 1995 14:30:20 +0000 |
| parents | a8c6da3bd305 |
| children | a24146241991 |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Feb 02 14:29:10 1995 +0000 +++ b/Python/pythonrun.c Thu Feb 02 14:30:20 1995 +0000 @@ -48,6 +48,10 @@ #include <console.h> #endif +#ifdef __MWERKS__ +#include <SIOUX.h> +#endif + extern char *getpythonpath(); extern grammar gram; /* From graminit.c */ @@ -641,10 +645,17 @@ } #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*/
