summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-06-14 15:56:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-06-14 15:56:05 (GMT)
commit4a0b54903a95f70e6582b4be1b83762c970dc81c (patch)
tree500c7c5c1c3ffe14077431f6ada3f8cc0179c13f /generic/tclExecute.c
parent581f24016c998cd22f2affc43f5fbba975afdb2f (diff)
downloadtcl-4a0b54903a95f70e6582b4be1b83762c970dc81c.zip
tcl-4a0b54903a95f70e6582b4be1b83762c970dc81c.tar.gz
tcl-4a0b54903a95f70e6582b4be1b83762c970dc81c.tar.bz2
* generic/tclCompile.c: SetByteCodeFromAny() can no longer return
* generic/tclExecute.c: any code other than TCL_OK, so remove code * generic/tclProc.c: that formerly handled exceptional codes.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index fd4474e..0071263 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.292 2007/06/14 02:43:14 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.293 2007/06/14 15:56:06 dgp Exp $
*/
#include "tclInt.h"
@@ -1186,15 +1186,10 @@ TclCompEvalObj(
iPtr->invokeCmdFramePtr = invoker;
iPtr->invokeWord = word;
- result = tclByteCodeType.setFromAnyProc(interp, objPtr);
+ tclByteCodeType.setFromAnyProc(interp, objPtr);
iPtr->invokeCmdFramePtr = NULL;
- if (result == TCL_OK) {
- codePtr = (ByteCode *) objPtr->internalRep.otherValuePtr;
- goto runCompiledObj;
- } else {
- iPtr->numLevels--;
- return result;
- }
+ codePtr = (ByteCode *) objPtr->internalRep.otherValuePtr;
+ goto runCompiledObj;
}
/*