diff options
author | andreas_kupries <akupries@shaw.ca> | 2010-11-15 21:32:30 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2010-11-15 21:32:30 (GMT) |
commit | 94b169466ea295a3f47a309b1285f47958c2323e (patch) | |
tree | dfa2a2b2b39b6e11b2a3f366d93819a4227c8939 /generic/tclBasic.c | |
parent | 9544dc11316230740f6e007f3be2888590f4d688 (diff) | |
download | tcl-94b169466ea295a3f47a309b1285f47958c2323e.zip tcl-94b169466ea295a3f47a309b1285f47958c2323e.tar.gz tcl-94b169466ea295a3f47a309b1285f47958c2323e.tar.bz2 |
* doc/interp.n: [3081184] TIP #378.
* doc/tclvars.n: Performance fix for TIP #280.
* generic/tclBasic.c:
* generic/tclExecute.c:
* generic/tclInt.h:
* generic/tclInterp.c:
* tests/info.test:
* tests/interp.test:
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 0c57652..e686237 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.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: tclBasic.c,v 1.295.2.18 2010/07/25 10:13:49 nijtmans Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.295.2.19 2010/11/15 21:32:31 andreas_kupries Exp $ */ #include "tclInt.h" @@ -501,6 +501,15 @@ Tcl_CreateInterp(void) iPtr->resultSpace[0] = 0; iPtr->threadId = Tcl_GetCurrentThread(); + /* TIP #378 */ +#ifdef TCL_INTERP_DEBUG_FRAME + iPtr->flags |= INTERP_DEBUG_FRAME; +#else + if (getenv("TCL_INTERP_DEBUG_FRAME") != NULL) { + iPtr->flags |= INTERP_DEBUG_FRAME; + } +#endif + /* * Initialise the tables for variable traces and searches *before* * creating the global ns - so that the trace on errorInfo can be @@ -3442,7 +3451,9 @@ int TclInterpReady( Tcl_Interp *interp) { +#if !defined(TCL_NO_STACK_CHECK) int localInt; /* used for checking the stack */ +#endif register Interp *iPtr = (Interp *) interp; /* |