summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-09-10 21:47:19 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-09-10 21:47:19 (GMT)
commit6726323860d0fd2b135fac517b16af7e6f03dfc7 (patch)
tree53df79f30aa1f95acee9cfb25609b392d548fb24 /generic/tclExecute.c
parent71d40deea8b47cd669486365cd6f61855e4ecbd2 (diff)
downloadtcl-6726323860d0fd2b135fac517b16af7e6f03dfc7.zip
tcl-6726323860d0fd2b135fac517b16af7e6f03dfc7.tar.gz
tcl-6726323860d0fd2b135fac517b16af7e6f03dfc7.tar.bz2
* generic/tclCompile.c: fix tclInstructionTable entry for
dictUpdateEnd * generic/tclExecute.c: remove unneeded setting of 'cleanup' variable before jumping to checkForCatch.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index c9eabbe..606d2d1 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.332 2007/09/09 19:28:30 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.333 2007/09/10 21:47:21 msofer Exp $
*/
#include "tclInt.h"
@@ -6276,7 +6276,6 @@ TclExecuteByteCode(
opnd, O2S(OBJ_AT_DEPTH(opnd))),
Tcl_GetObjResult(interp));
result = TCL_ERROR;
- cleanup = opnd + 1;
goto checkForCatch;
}
}
@@ -6296,7 +6295,6 @@ TclExecuteByteCode(
TRACE_WITH_OBJ(("%u => ERROR ", opnd), Tcl_GetObjResult(interp));
result = TCL_ERROR;
}
- cleanup = opnd + 1;
goto checkForCatch;
case INST_DICT_SET:
@@ -6412,7 +6410,6 @@ TclExecuteByteCode(
case INST_DICT_APPEND:
case INST_DICT_LAPPEND:
opnd = TclGetUInt4AtPtr(pc+1);
- cleanup = 2;
varPtr = &(compiledLocals[opnd]);
while (TclIsVarLink(varPtr)) {
@@ -6543,7 +6540,6 @@ TclExecuteByteCode(
&valuePtr, &done);
if (result != TCL_OK) {
ckfree((char *) searchPtr);
- cleanup = 0;
goto checkForCatch;
}
TclNewObj(statePtr);
@@ -6675,7 +6671,6 @@ TclExecuteByteCode(
duiPtr->varIndices[i]) == NULL) {
CACHE_STACK_INFO();
dictUpdateStartFailed:
- cleanup = 1;
result = TCL_ERROR;
goto checkForCatch;
}
@@ -6705,7 +6700,6 @@ TclExecuteByteCode(
if (Tcl_DictObjSize(interp, dictPtr, &length) != TCL_OK
|| Tcl_ListObjGetElements(interp, OBJ_AT_TOS, &length,
&keyPtrPtr) != TCL_OK) {
- cleanup = 1;
result = TCL_ERROR;
goto checkForCatch;
}
@@ -6751,7 +6745,6 @@ TclExecuteByteCode(
if (allocdict) {
Tcl_DecrRefCount(dictPtr);
}
- cleanup = 2;
result = TCL_ERROR;
goto checkForCatch;
}