diff options
author | dgp <dgp@noemail.net> | 2003-03-19 16:51:40 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-03-19 16:51:40 (GMT) |
commit | f265b2c4a10c5a3fd3dde85da72a975c8b55af4d (patch) | |
tree | ae9311f08dbcb62362114996a3674c7d55de2c9c /generic/tclCompile.c | |
parent | 4a553f707baa93a9c831042bd92d3b5edf2822b0 (diff) | |
download | tcl-f265b2c4a10c5a3fd3dde85da72a975c8b55af4d.zip tcl-f265b2c4a10c5a3fd3dde85da72a975c8b55af4d.tar.gz tcl-f265b2c4a10c5a3fd3dde85da72a975c8b55af4d.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.
FossilOrigin-Name: 8153ce2774235acfe6f80cae7af59a4923e21d0b
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index c98348f..6812331 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.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: tclCompile.c,v 1.44 2003/03/13 02:48:52 dgp Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.45 2003/03/19 16:51:42 dgp Exp $ */ #include "tclInt.h" @@ -269,6 +269,8 @@ InstructionDesc tclInstructionTable[] = { * stacked objs: stktop is old value, next is new element value, next * come (operand-2) indices; pushes the new value. */ + {"return", 1, -1, 0, {OPERAND_NONE}}, + /* return TCL_RETURN code. */ {0} }; |