summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
diff options
context:
space:
mode:
authorstanton <stanton>1998-11-11 04:08:12 (GMT)
committerstanton <stanton>1998-11-11 04:08:12 (GMT)
commit131c68d85079ca5a553b28fef489cf29b79f1176 (patch)
tree7e89676f31bb688b2686f508446e3282e7148a05 /win/tclWinInit.c
parent0a41c61107c36da0a8e4ca0fc259149e3bc1956d (diff)
downloadtcl-131c68d85079ca5a553b28fef489cf29b79f1176.zip
tcl-131c68d85079ca5a553b28fef489cf29b79f1176.tar.gz
tcl-131c68d85079ca5a553b28fef489cf29b79f1176.tar.bz2
merged 8.0.4 into 8.1
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index ef93cce..0a4c73b 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.1.2.3 1998/09/30 20:50:31 stanton Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.1.2.4 1998/11/11 04:08:39 stanton Exp $
*/
#include "tclWinInt.h"
@@ -516,6 +516,18 @@ TclpSetVariables(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.