Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 2269:a8c6da3bd305 legacy-trunk
Think C mod to suppress pausing at normal exit
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 30 Jan 1995 12:52:46 +0000 |
| parents | d3b5be0c872f |
| children | 618701cdf600 |
comparison
equal
deleted
inserted
replaced
| 2268:ac6f69b1e993 | 2269:a8c6da3bd305 |
|---|---|
| 40 #include "import.h" | 40 #include "import.h" |
| 41 #include "marshal.h" | 41 #include "marshal.h" |
| 42 | 42 |
| 43 #ifdef HAVE_SIGNAL_H | 43 #ifdef HAVE_SIGNAL_H |
| 44 #include <signal.h> | 44 #include <signal.h> |
| 45 #endif | |
| 46 | |
| 47 #ifdef THINK_C | |
| 48 #include <console.h> | |
| 45 #endif | 49 #endif |
| 46 | 50 |
| 47 extern char *getpythonpath(); | 51 extern char *getpythonpath(); |
| 48 | 52 |
| 49 extern grammar gram; /* From graminit.c */ | 53 extern grammar gram; /* From graminit.c */ |
| 635 if (askyesno("Print left references?")) { | 639 if (askyesno("Print left references?")) { |
| 636 printrefs(stderr); | 640 printrefs(stderr); |
| 637 } | 641 } |
| 638 #endif /* TRACE_REFS */ | 642 #endif /* TRACE_REFS */ |
| 639 | 643 |
| 644 #ifdef THINK_C | |
| 645 if (sts == 0) | |
| 646 console_options.pause_atexit = 0; | |
| 647 #endif | |
| 640 exit(sts); | 648 exit(sts); |
| 641 #endif /* WITH_THREAD */ | 649 #endif /* WITH_THREAD */ |
| 642 /*NOTREACHED*/ | 650 /*NOTREACHED*/ |
| 643 } | 651 } |
| 644 | 652 |
