summaryrefslogtreecommitdiffstats
path: root/mac/tclMacExit.c
diff options
context:
space:
mode:
authorjingham <jingham@noemail.net>1998-11-11 07:46:04 (GMT)
committerjingham <jingham@noemail.net>1998-11-11 07:46:04 (GMT)
commit781116b6e0e1d94faf6e85f938815da328b0a097 (patch)
tree1a0e2266cb30dd1c4c53416b756847f060caec11 /mac/tclMacExit.c
parent9a646b4601abb0d55e45d7d7230dd1ff6e357053 (diff)
downloadtcl-781116b6e0e1d94faf6e85f938815da328b0a097.zip
tcl-781116b6e0e1d94faf6e85f938815da328b0a097.tar.gz
tcl-781116b6e0e1d94faf6e85f938815da328b0a097.tar.bz2
Updated Changes file, and added Vince Darley's suggested change to TclMacExit.
FossilOrigin-Name: 0c401604038bf74f88f6d9bf212d88ea6432bace
Diffstat (limited to 'mac/tclMacExit.c')
-rw-r--r--mac/tclMacExit.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/mac/tclMacExit.c b/mac/tclMacExit.c
index 8ed6355..f7d92c4 100644
--- a/mac/tclMacExit.c
+++ b/mac/tclMacExit.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacExit.c,v 1.2 1998/09/14 18:40:04 stanton Exp $
+ * RCS: @(#) $Id: tclMacExit.c,v 1.3 1998/11/11 07:46:13 jingham Exp $
*/
#include "tclInt.h"
@@ -108,7 +108,23 @@ TclPlatformExit(
int status) /* Ignored. */
{
TclMacExitHandler();
+
+/*
+ * If we are using the Metrowerks Standard Library, then we will call its exit so that it
+ * will get a chance to clean up temp files, and so forth. It always calls the standard
+ * ExitToShell, so the Tcl handlers will also get called.
+ *
+ * If you have another exit, make sure that it does not patch ExitToShell, and does
+ * call it. If so, it will probably work as well.
+ *
+ */
+
+#ifdef __MSL__
+ exit(status);
+#else
ExitToShell();
+#endif
+
}
/*