diff options
author | dgp <dgp@users.sourceforge.net> | 2007-09-09 16:51:15 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-09-09 16:51:15 (GMT) |
commit | 661d0c07c6af17979d24832f834aae99e2377dac (patch) | |
tree | e92e8e7a5af578b7fbfc1a01740d384a0548acfa /generic/tclCompile.c | |
parent | 348e41c66d05f58ef37fb1307b90d49a09b112db (diff) | |
download | tcl-661d0c07c6af17979d24832f834aae99e2377dac.zip tcl-661d0c07c6af17979d24832f834aae99e2377dac.tar.gz tcl-661d0c07c6af17979d24832f834aae99e2377dac.tar.bz2 |
* generic/tclCompCmds.c: Use the new INST_REVERSE instruction
* tests/mathop.test: to correct the compiled versions of math
operator commands. [Bug 1724437].
* generic/tclCompile.c: New bytecode instruction INST_REVERSE to
* generic/tclCompile.h: reverse the order of N items at the top of
* generic/tclExecute.c: stack.
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 fda8e9c..7ccf919 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.129 2007/08/30 19:24:32 dgp Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.130 2007/09/09 16:51:18 dgp Exp $ */ #include "tclInt.h" @@ -383,6 +383,8 @@ InstructionDesc tclInstructionTable[] = { * index op1. Leaves the namespace on stack. */ {"syntax", 9, -1, 2, {OPERAND_INT4, OPERAND_UINT4}}, /* Compiled bytecodes to signal syntax error. */ + {"reverse", 5, +1, 1, {OPERAND_UINT4}}, + /* Reverse the order of the arg elements at the top of stack */ {0} }; |