summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-04-14 17:35:53 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-04-14 17:35:53 (GMT)
commit5a6b65068cccb6e5109ddd85bd447bffbbf2f335 (patch)
tree955cfd69ccc431be4c64ee69c1ee47fa19e12df0 /generic/tclExecute.c
parent7dc31060371e4e2a0fa67131337c40b68df7f6aa (diff)
downloadtcl-5a6b65068cccb6e5109ddd85bd447bffbbf2f335.zip
tcl-5a6b65068cccb6e5109ddd85bd447bffbbf2f335.tar.gz
tcl-5a6b65068cccb6e5109ddd85bd447bffbbf2f335.tar.bz2
* generic/tclExecute.c: removed some code at INSTEXPAND_SKTOP that
duplicates functionality already present at checkForCatch.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index b296e5c..4ef4d04 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.275 2007/04/11 17:55:46 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.276 2007/04/14 17:35:54 msofer Exp $
*/
#include "tclInt.h"
@@ -1671,21 +1671,19 @@ TclExecuteByteCode(
case INST_EXPAND_STKTOP: {
int objc, length, i;
- Tcl_Obj **objv, *valuePtr, *objPtr;
+ Tcl_Obj **objv, *valuePtr;
/*
- * Make sure that the element at stackTop is a list; if not, remove
- * the element from the expand link list and leave.
+ * Make sure that the element at stackTop is a list; if not, just
+ * leave with an error. Note that the element from the expand list
+ * will be removed at checkForCatch.
*/
valuePtr = OBJ_AT_TOS;
if (Tcl_ListObjGetElements(interp, valuePtr, &objc, &objv) != TCL_OK) {
- result = TCL_ERROR;
TRACE_WITH_OBJ(("%.30s => ERROR: ", O2S(valuePtr)),
Tcl_GetObjResult(interp));
- objPtr = expandNestList;
- expandNestList = (Tcl_Obj *) objPtr->internalRep.twoPtrValue.ptr2;
- TclDecrRefCount(objPtr);
+ result = TCL_ERROR;
goto checkForCatch;
}
POP_OBJECT();