Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3234:aafe7d634985 | 3235:3df9ab03badf |
|---|---|
| 41 #include "import.h" | 41 #include "import.h" |
| 42 #include "marshal.h" | 42 #include "marshal.h" |
| 43 | 43 |
| 44 #ifdef HAVE_SIGNAL_H | 44 #ifdef HAVE_SIGNAL_H |
| 45 #include <signal.h> | 45 #include <signal.h> |
| 46 #endif | |
| 47 | |
| 48 #ifdef THINK_C | |
| 49 #include <console.h> | |
| 50 #endif | |
| 51 | |
| 52 #ifdef __MWERKS__ | |
| 53 #include <SIOUX.h> | |
| 54 #endif | 46 #endif |
| 55 | 47 |
| 56 #ifdef NT | 48 #ifdef NT |
| 57 #undef BYTE | 49 #undef BYTE |
| 58 #include "windows.h" | 50 #include "windows.h" |
| 668 if (askyesno("Print left references?")) { | 660 if (askyesno("Print left references?")) { |
| 669 printrefs(stderr); | 661 printrefs(stderr); |
| 670 } | 662 } |
| 671 #endif /* TRACE_REFS */ | 663 #endif /* TRACE_REFS */ |
| 672 | 664 |
| 673 /* XXXX Jack thinks it would be nicer to pause if any output has | 665 #ifdef macintosh |
| 674 ** been generated since the last interaction with the user... | 666 PyMac_Exit(sts); |
| 675 */ | 667 #else |
| 676 #ifdef THINK_C | |
| 677 if (sts == 0) | |
| 678 console_options.pause_atexit = 0; | |
| 679 #endif | |
| 680 #ifdef __MWERKS__ | |
| 681 if (sts == 0) | |
| 682 SIOUXSettings.autocloseonquit = 1; | |
| 683 else | |
| 684 printf("\n[Terminated]\n"); | |
| 685 #endif | |
| 686 exit(sts); | 668 exit(sts); |
| 669 #endif | |
| 687 #endif /* WITH_THREAD */ | 670 #endif /* WITH_THREAD */ |
| 688 /*NOTREACHED*/ | 671 /*NOTREACHED*/ |
| 689 } | 672 } |
| 690 | 673 |
| 691 #ifdef HAVE_SIGNAL_H | 674 #ifdef HAVE_SIGNAL_H |
