summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsuresh <suresh>1998-10-20 17:27:43 (GMT)
committersuresh <suresh>1998-10-20 17:27:43 (GMT)
commit53bd99ffe47193d0d6314912e7251535c8628807 (patch)
tree613d3581c43b0a07376e1889f492783143592c19
parent0d09c361456f377474244ee597e06a8ab8105de3 (diff)
downloadtcl-53bd99ffe47193d0d6314912e7251535c8628807.zip
tcl-53bd99ffe47193d0d6314912e7251535c8628807.tar.gz
tcl-53bd99ffe47193d0d6314912e7251535c8628807.tar.bz2
On Windows, Added the "debug" element of the tcl_platform array which
indicates that the particular Tcl shell has been compiled with debug information Using "info exists tcl_platform(debug)" a Tcl script can direct the interpreter to load debug versions of DLLs with the load command.
-rw-r--r--changes9
-rw-r--r--win/tclWinInit.c14
2 files changed, 21 insertions, 2 deletions
diff --git a/changes b/changes
index f305fb9..c8f5ccb 100644
--- a/changes
+++ b/changes
@@ -1,6 +1,6 @@
Recent user-visible changes to Tcl:
-RCS: @(#) $Id: changes,v 1.26 1998/10/13 20:30:21 rjohnson Exp $
+RCS: @(#) $Id: changes,v 1.27 1998/10/20 17:27:43 suresh Exp $
1. No more [command1] [command2] construct for grouping multiple
commands on a single command line.
@@ -3636,3 +3636,10 @@ handle some numbers starting with 0. Thanks to Richard Hipp
Tcl_Obj if the list had zero elements (despite what the comments said
it would do). Thanks to Sebastian Wangnick for reporting the
problem. (RJ)
+
+10/20/98 (new feature) Added tcl_platform(debug) element to the
+tcl_platform array on Windows platform. The existence of the debug
+element of the tcl_platform array indicates that the particular Tcl
+shell has been compiled with debug information. Using
+"info exists tcl_platform(debug)" a Tcl script can direct the interpreter
+to load debug versions of DLLs with the load command. (SKS)
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 21d6379..ef6eaec 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinInit.c,v 1.10 1998/09/14 18:40:20 stanton Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.11 1998/10/20 17:27:47 suresh Exp $
*/
#include "tclInt.h"
@@ -240,6 +240,18 @@ TclPlatformInit(interp)
TCL_GLOBAL_ONLY);
}
+#ifdef _DEBUG
+ /*
+ * The existence of the "debug" element of the tcl_platform array indicates
+ * that this particular Tcl shell has been compiled with debug information.
+ * Using "info exists tcl_platform(debug)" a Tcl script can direct the
+ * interpreter to load debug versions of DLLs with the load command.
+ */
+
+ Tcl_SetVar2(interp, "tcl_platform", "debug", "1",
+ TCL_GLOBAL_ONLY);
+#endif
+
/*
* Set up the HOME environment variable from the HOMEDRIVE & HOMEPATH
* environment variables, if necessary.