diff options
author | dgp <dgp@noemail.net> | 2009-06-13 14:25:12 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-06-13 14:25:12 (GMT) |
commit | 2a18ba5801681d95a58e4959624e375d0de968eb (patch) | |
tree | e378dac3e887056d2ad1c01a857e14a546caa634 /generic/tclCompile.c | |
parent | 49af8fa9b98fa0f4837749cf653add3633157da7 (diff) | |
download | tcl-2a18ba5801681d95a58e4959624e375d0de968eb.zip tcl-2a18ba5801681d95a58e4959624e375d0de968eb.tar.gz tcl-2a18ba5801681d95a58e4959624e375d0de968eb.tar.bz2 |
* generic/tclCompile.c: The value stashed in iPtr->compiledProcPtr
* generic/tclProc.c: when compiling a proc survives too long. We
* tests/execute.test: only need it there long enough for the right
TclInitCompileEnv() call to re-stash it into envPtr->procPtr. Once
that is done, the CompileEnv controls. If we let the value of
iPtr->compiledProcPtr linger, though, then any other bytecode compile
operation that takes place will also have its CompileEnv initialized
with it, and that's not correct. The value is meant to control the
compile of the proc body only, not other compile tasks that happen
along. Thanks to Carlos Tasada for discovering and reporting the
problem. [Bug 2802881].
FossilOrigin-Name: 00a700e6948a0d3b8271e76481bd66760a8aa2f9
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 3c7ca6e..c7b311b 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompile.c,v 1.146.2.6 2008/07/25 20:30:44 andreas_kupries Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.146.2.7 2009/06/13 14:25:12 dgp Exp $ */ #include "tclInt.h" @@ -870,6 +870,7 @@ TclInitCompileEnv( envPtr->source = stringPtr; envPtr->numSrcBytes = numBytes; envPtr->procPtr = iPtr->compiledProcPtr; + iPtr->compiledProcPtr = NULL; envPtr->numCommands = 0; envPtr->exceptDepth = 0; envPtr->maxExceptDepth = 0; |