summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-10-27 13:22:14 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-10-27 13:22:14 (GMT)
commit66a8977b0ef3b7c3a3b8027d9ee3f25417b824e9 (patch)
tree287225237d3b5e99a173298eb07f3c9ef3c7148e /Python/pythonrun.c
parent9513f2c95a669cc44d972a5f7158160cd23a1cf6 (diff)
downloadcpython-66a8977b0ef3b7c3a3b8027d9ee3f25417b824e9.zip
cpython-66a8977b0ef3b7c3a3b8027d9ee3f25417b824e9.tar.gz
cpython-66a8977b0ef3b7c3a3b8027d9ee3f25417b824e9.tar.bz2
Moved mac-specific exit handling to macmain.c
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 9e402a6..13e2728 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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*/
}