diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2010-11-15 21:32:30 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2010-11-15 21:32:30 (GMT) |
commit | 3d4987847b3afefa2ed23a319d1a37b8165ee00f (patch) | |
tree | dfa2a2b2b39b6e11b2a3f366d93819a4227c8939 /generic/tclBasic.c | |
parent | c905369426ec8941bd99f856c57041f480d71161 (diff) | |
download | tcl-3d4987847b3afefa2ed23a319d1a37b8165ee00f.zip tcl-3d4987847b3afefa2ed23a319d1a37b8165ee00f.tar.gz tcl-3d4987847b3afefa2ed23a319d1a37b8165ee00f.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:
FossilOrigin-Name: 8902c8bc82f8c513a6e448bd84ae0dd483518705
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; /* |