comparison 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
comparison
equal deleted inserted replaced
2278:65644766158a 2279:618701cdf600
44 #include <signal.h> 44 #include <signal.h>
45 #endif 45 #endif
46 46
47 #ifdef THINK_C 47 #ifdef THINK_C
48 #include <console.h> 48 #include <console.h>
49 #endif
50
51 #ifdef __MWERKS__
52 #include <SIOUX.h>
49 #endif 53 #endif
50 54
51 extern char *getpythonpath(); 55 extern char *getpythonpath();
52 56
53 extern grammar gram; /* From graminit.c */ 57 extern grammar gram; /* From graminit.c */
639 if (askyesno("Print left references?")) { 643 if (askyesno("Print left references?")) {
640 printrefs(stderr); 644 printrefs(stderr);
641 } 645 }
642 #endif /* TRACE_REFS */ 646 #endif /* TRACE_REFS */
643 647
648 /* XXXX Jack thinks it would be nicer to pause if any output has
649 ** been generated since the last interaction with the user...
650 */
644 #ifdef THINK_C 651 #ifdef THINK_C
645 if (sts == 0) 652 if (sts == 0)
646 console_options.pause_atexit = 0; 653 console_options.pause_atexit = 0;
654 #endif
655 #ifdef __MWERKS__
656 if (sts == 0)
657 SIOUXSettings.autocloseonquit = 1;
647 #endif 658 #endif
648 exit(sts); 659 exit(sts);
649 #endif /* WITH_THREAD */ 660 #endif /* WITH_THREAD */
650 /*NOTREACHED*/ 661 /*NOTREACHED*/
651 } 662 }