]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Moved mac-specific exit handling to macmain.c
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 27 Oct 1995 13:22:14 +0000 (13:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 27 Oct 1995 13:22:14 +0000 (13:22 +0000)
Python/pythonrun.c

index 9e402a62287ee43b6972b714cf31fe5a4a0c15ea..13e2728e3ae3268b582b3a64efc134b96c8f895f 100644 (file)
@@ -45,14 +45,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #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 @@ 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;
-       else
-               printf("\n[Terminated]\n");
-#endif
+#ifdef macintosh
+       PyMac_Exit(sts);
+#else
        exit(sts);
+#endif
 #endif /* WITH_THREAD */
        /*NOTREACHED*/
 }