Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 3235:3df9ab03badf legacy-trunk
Moved mac-specific exit handling to macmain.c
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 27 Oct 1995 13:22:14 +0000 |
| parents | a36e30240d06 |
| children | 3b6ebf8d2a59 |
line wrap: on
line diff
--- a/Python/pythonrun.c Fri Oct 27 13:21:28 1995 +0000 +++ b/Python/pythonrun.c Fri Oct 27 13:22:14 1995 +0000 @@ -45,14 +45,6 @@ #include <signal.h> #endif -#ifdef THINK_C -#include <console.h> -#endif - -#ifdef __MWERKS__ -#include <SIOUX.h> -#endif - #ifdef NT #undef BYTE #include "windows.h" @@ -670,20 +662,11 @@ } #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; +#ifdef macintosh + PyMac_Exit(sts); +#else + exit(sts); #endif -#ifdef __MWERKS__ - if (sts == 0) - SIOUXSettings.autocloseonquit = 1; - else - printf("\n[Terminated]\n"); -#endif - exit(sts); #endif /* WITH_THREAD */ /*NOTREACHED*/ }
