summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.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/tclCompExpr.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/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 64d28aa..e25160d 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompExpr.c,v 1.24 2004/10/06 05:52:21 dgp Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.25 2004/10/08 15:39:52 dkf Exp $
*/
#include "tclInt.h"
@@ -91,6 +91,8 @@ typedef struct ExprInfo {
#define OP_STREQ 21
#define OP_STRNEQ 22
#define OP_EXPON 23
+#define OP_IN_LIST 24
+#define OP_NOT_IN_LIST 25
/*
* Table describing the expression operators. Entries in this table must
@@ -134,6 +136,8 @@ static OperatorDesc operatorTable[] = {
{"eq", 2, INST_STR_EQ},
{"ne", 2, INST_STR_NEQ},
{"**", 2, INST_EXPON},
+ {"in", 2, INST_LIST_IN},
+ {"ni", 2, INST_LIST_NOT_IN},
{NULL}
};