Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macmain.c @ 17629:a9485d404f05 legacy-trunk
- Raise console window on input. Fixes Carbon hang.
- Better handling of menu bar save/restore.
- Override abort() so it honours the "keep console window" flag.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 25 Apr 2001 22:07:27 +0000 |
| parents | 728c11562187 |
| children | 8cdff545cbde |
line wrap: on
line diff
--- a/Mac/Python/macmain.c Wed Apr 25 22:05:36 2001 +0000 +++ b/Mac/Python/macmain.c Wed Apr 25 22:07:27 2001 +0000 @@ -567,7 +567,16 @@ PyMac_InitMenuBar(); console_output_state = STATE_LASTWRITE; } - + +/* +** Override abort() - The default one is not what we want. +*/ +void +abort() +{ + console_output_state = STATE_LASTWRITE; + PyMac_Exit(1); +} /* ** Terminate application @@ -605,6 +614,7 @@ SIOUXSettings.standalone = 1; SIOUXSettings.autocloseonquit = 0; SIOUXSetTitle("\p\307terminated\310"); + PyMac_RaiseConsoleWindow(); PyMac_RestoreMenuBar(); #ifdef USE_MSL /*
