summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-03-19 16:51:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-03-19 16:51:41 (GMT)
commitd9155272bb564f8042c5e7ff324807a01c31bc83 (patch)
treeae9311f08dbcb62362114996a3674c7d55de2c9c /generic/tclExecute.c
parentdd21b2af3a8ddd0cbcffc3949ed0f9f581042d01 (diff)
downloadtcl-d9155272bb564f8042c5e7ff324807a01c31bc83.zip
tcl-d9155272bb564f8042c5e7ff324807a01c31bc83.tar.gz
tcl-d9155272bb564f8042c5e7ff324807a01c31bc83.tar.bz2
* generic/tclCompCmds.c (TclCompileReturnCmd): Alternative fix for
* generic/tclCompile.c (INST_RETURN): [Bug 633204] that uses a new * generic/tclCompile.h (INST_RETURN): bytecode INST_RETURN to * generic/tclExecute.c (INST_RETURN): properly bytecode the [return] command to something that returns TCL_RETURN.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 2496126..40e211d 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.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: tclExecute.c,v 1.95 2003/03/13 02:48:53 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.96 2003/03/19 16:51:43 dgp Exp $
*/
#include "tclInt.h"
@@ -1224,6 +1224,8 @@ TclExecuteByteCode(interp, codePtr)
iPtr->stats.instructionCount[*pc]++;
#endif
switch (*pc) {
+ case INST_RETURN:
+ result = TCL_RETURN;
case INST_DONE:
if (stackTop <= initStackTop) {
stackTop--;