diff options
-rw-r--r-- | changes | 9 | ||||
-rw-r--r-- | win/tclWinInit.c | 14 |
2 files changed, 21 insertions, 2 deletions
@@ -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..ef6eaecc 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. |