Compare commits

...
Author SHA1 Message Date
dgp c2ac563d12 merge 8.5 2012-12-12 16:25:36 +00:00
dgp 1cd465bcc2 merge 8.5 2012-11-26 16:59:05 +00:00
dgp 492aa02ad2 Submitted patch claiming to fix errors in nested eval counting. 2012-11-26 16:44:17 +00:00
12 changed files with 8 additions and 2 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
+8
View File
@@ -1257,7 +1257,9 @@ Tcl_ExprObj(
*/
codePtr->refCount++;
iPtr->numLevels++;
result = TclExecuteByteCode(interp, codePtr);
iPtr->numLevels--;
codePtr->refCount--;
if (codePtr->refCount <= 0) {
TclCleanupByteCode(codePtr);
@@ -2769,8 +2771,11 @@ TclExecuteByteCode(
*/
DECACHE_STACK_INFO();
iPtr->numLevels--; /* Decrement here because path through
* TclEvalEx will increment */
objResultPtr = TclPtrGetVar(interp, varPtr, arrayPtr,
part1Ptr, part2Ptr, TCL_LEAVE_ERR_MSG, opnd);
iPtr->numLevels++;
CACHE_STACK_INFO();
if (objResultPtr) {
TRACE_APPEND(("%.30s\n", O2S(objResultPtr)));
@@ -3029,8 +3034,11 @@ TclExecuteByteCode(
doCallPtrSetVar:
DECACHE_STACK_INFO();
iPtr->numLevels--; /* Decrement here because path through
* TclEvalEx will increment */
objResultPtr = TclPtrSetVar(interp, varPtr, arrayPtr,
part1Ptr, part2Ptr, valuePtr, storeFlags, opnd);
iPtr->numLevels++;
CACHE_STACK_INFO();
if (objResultPtr) {
#ifndef TCL_COMPILE_DEBUG
-2
View File
@@ -2275,7 +2275,6 @@ TclSubstTokens(
case TCL_TOKEN_COMMAND: {
Interp *iPtr = (Interp *) interp;
iPtr->numLevels++;
code = TclInterpReady(interp);
if (code == TCL_OK) {
/*
@@ -2297,7 +2296,6 @@ TclSubstTokens(
iPtr->evalFlags |= TCL_EVAL_FILE;
}
}
iPtr->numLevels--;
appendObj = Tcl_GetObjResult(interp);
break;
}
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Vendored Regular → Executable
View File
Regular → Executable
View File