Under CodeWarrior, make the window go away on exit(0)

This commit is contained in:
Jack Jansen 1995-02-02 14:30:20 +00:00
parent 971e1df3df
commit 08e767bdc5
1 changed files with 11 additions and 0 deletions

View File

@ -48,6 +48,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <console.h> #include <console.h>
#endif #endif
#ifdef __MWERKS__
#include <SIOUX.h>
#endif
extern char *getpythonpath(); extern char *getpythonpath();
extern grammar gram; /* From graminit.c */ extern grammar gram; /* From graminit.c */
@ -641,9 +645,16 @@ goaway(sts)
} }
#endif /* TRACE_REFS */ #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 #ifdef THINK_C
if (sts == 0) if (sts == 0)
console_options.pause_atexit = 0; console_options.pause_atexit = 0;
#endif
#ifdef __MWERKS__
if (sts == 0)
SIOUXSettings.autocloseonquit = 1;
#endif #endif
exit(sts); exit(sts);
#endif /* WITH_THREAD */ #endif /* WITH_THREAD */