summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-08-04 18:32:27 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-08-04 18:32:27 (GMT)
commit5f27bf51933b916e9e5c01a9403a74ef83741b6a (patch)
tree2d828b3d553ad34b9c79c634979526e3a7d04876 /generic/tclProc.c
parentf234f8dce1ac71dd3a9aa6bfb4d1e48bb0c986ba (diff)
downloadtcl-5f27bf51933b916e9e5c01a9403a74ef83741b6a.zip
tcl-5f27bf51933b916e9e5c01a9403a74ef83741b6a.tar.gz
tcl-5f27bf51933b916e9e5c01a9403a74ef83741b6a.tar.bz2
modifs to help itcl adapt to VarReform
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index c6e0219..9a7a422 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.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: tclProc.c,v 1.126 2007/07/31 17:03:39 msofer Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.127 2007/08/04 18:32:27 msofer Exp $
*/
#include "tclInt.h"
@@ -1130,6 +1130,14 @@ TclInitCompiledLocals(
}
codePtr = bodyPtr->internalRep.otherValuePtr;
+ if (framePtr->numCompiledLocals) {
+ if (!codePtr->localCachePtr) {
+ InitLocalCache(framePtr->procPtr) ;
+ }
+ framePtr->localCachePtr = codePtr->localCachePtr;
+ framePtr->localCachePtr->refCount++;
+ }
+
InitCompiledLocals(interp, codePtr, varPtr, nsPtr);
}