summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-08 15:39:37 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-08 15:39:37 (GMT)
commitb8ad7e6569c1ac14d88d993310013ae3095d00b1 (patch)
tree8013273a78ab046ca1744309207ab85ea5ab26c9 /generic/tclCompile.c
parent4b9c1da0d3b0ca6029c1fe83989006927422d95d (diff)
downloadtcl-b8ad7e6569c1ac14d88d993310013ae3095d00b1.zip
tcl-b8ad7e6569c1ac14d88d993310013ae3095d00b1.tar.gz
tcl-b8ad7e6569c1ac14d88d993310013ae3095d00b1.tar.bz2
Core of implementation of TIP#201 ('in' and 'ni' operators)
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index d320a15..11383b7 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.77 2004/10/06 09:31:38 dkf Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.78 2004/10/08 15:39:52 dkf Exp $
*/
#include "tclInt.h"
@@ -295,6 +295,11 @@ InstructionDesc tclInstructionTable[] = {
{"startCommand", 5, 0, 1, {OPERAND_UINT4}},
/* Start of bytecoded command: op is the length of the cmd's code */
+
+ {"listIn", 1, -1, 0, {OPERAND_NONE}},
+ /* List containment: push [lsearch stktop stknext]>=0) */
+ {"listNotIn", 1, -1, 0, {OPERAND_NONE}},
+ /* List negated containment: push [lsearch stktop stknext]<0) */
{0}
};