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.h | |
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.h')
-rw-r--r-- | generic/tclCompile.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h index ea975f9..50e2312 100644 --- a/generic/tclCompile.h +++ b/generic/tclCompile.h @@ -8,7 +8,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.h,v 1.77 2007/08/28 16:24:31 dgp Exp $ + * RCS: @(#) $Id: tclCompile.h,v 1.78 2007/09/09 16:51:19 dgp Exp $ */ #ifndef _TCLCOMPILATION @@ -630,8 +630,12 @@ typedef struct ByteCode { #define INST_SYNTAX 125 +/* Instruction to reverse N items on top of stack */ + +#define INST_REVERSE 126 + /* The last opcode */ -#define LAST_INST_OPCODE 125 +#define LAST_INST_OPCODE 126 /* * Table describing the Tcl bytecode instructions: their name (for displaying |