summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjingham <jingham>1998-11-11 07:46:04 (GMT)
committerjingham <jingham>1998-11-11 07:46:04 (GMT)
commite4af7404e9223f55a2133e799e4ec03410e1a504 (patch)
tree1a0e2266cb30dd1c4c53416b756847f060caec11
parent4b506e7cdbb1fe03afc13059605b14e9f57b66d1 (diff)
downloadtcl-e4af7404e9223f55a2133e799e4ec03410e1a504.zip
tcl-e4af7404e9223f55a2133e799e4ec03410e1a504.tar.gz
tcl-e4af7404e9223f55a2133e799e4ec03410e1a504.tar.bz2
Updated Changes file, and added Vince Darley's suggested change to TclMacExit.
-rw-r--r--changes12
-rwxr-xr-xmac/tclMacCommonPch.h4
-rw-r--r--mac/tclMacExit.c18
3 files changed, 27 insertions, 7 deletions
diff --git a/changes b/changes
index 957a145..c877d6f 100644
--- a/changes
+++ b/changes
@@ -1,6 +1,6 @@
Recent user-visible changes to Tcl:
-RCS: @(#) $Id: changes,v 1.33 1998/11/10 06:56:47 jingham Exp $
+RCS: @(#) $Id: changes,v 1.34 1998/11/11 07:46:45 jingham Exp $
1. No more [command1] [command2] construct for grouping multiple
commands on a single command line.
@@ -3665,7 +3665,11 @@ close in a fileevent script are actually reflected by the close command. (BW)
package requires and packages split among scripts and binary files.
Also fixed ommision of global for errorInfo in tcl_findLibrary. (BW)
-11/08/98 (bug fix) Fixed TclMacRegisterResourceFork to always detect the case where a file
-is opened a second time with the same permissions. In IM, it claims that this will
+11/08/98 (bug fix) Fixed the resource command to always detect the case where a file
+is opened a second time with the same permissions. IM claims that this will
always cause the same FileRef to be returned, but in MacOS 8.1+, this is no longer the
-case, so we have to test for this explicitly.
+case, so we have to test for this equality explicitly. (JI)
+
+11/10/98 (feature change) When compiling with Metrowerk's MSL, use the exit function from
+MSL rather than ExitToShell. This allows MSL to clean up its temporary files. Thanks to
+Vince Darley for this improvement. (JI)
diff --git a/mac/tclMacCommonPch.h b/mac/tclMacCommonPch.h
index ec6d0d3..b06a494 100755
--- a/mac/tclMacCommonPch.h
+++ b/mac/tclMacCommonPch.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacCommonPch.h,v 1.1 1998/11/10 16:30:36 rjohnson Exp $
+ * RCS: @(#) $Id: tclMacCommonPch.h,v 1.2 1998/11/11 07:46:04 jingham Exp $
*/
#if !__option(enumsalwaysint)
@@ -66,7 +66,7 @@
*/
-#define TCL_DEBUG
+/* #define TCL_DEBUG */
#ifdef TCL_DEBUG
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
+
}
/*