index 1342a5b58fca93508d93f00571753be9b7e3d5db..4ea2f94bf469aa177f0803fccc2a1218d0b25907 100644 (file)
--- a/src/core/store-private.h
+++ b/src/core/store-private.h
/* unary operators */
MATCHER_ISNULL,
+ MATCHER_ISTRUE,
+ MATCHER_ISFALSE,
/* ary operators */
MATCHER_LT,
: ((t) == MATCHER_IN) ? "IN" \
: ((t) == MATCHER_NIN) ? "NOT IN" \
: ((t) == MATCHER_ISNULL) ? "IS NULL" \
+ : ((t) == MATCHER_ISTRUE) ? "IS TRUE" \
+ : ((t) == MATCHER_ISFALSE) ? "IS FALSE" \
: ((t) == MATCHER_LT) ? "<" \
: ((t) == MATCHER_LE) ? "<=" \
: ((t) == MATCHER_EQ) ? "=" \
typedef struct {
sdb_store_matcher_t super;
sdb_store_expr_t *expr;
-} isnull_matcher_t;
-#define ISNULL_M(m) ((isnull_matcher_t *)(m))
+} unary_matcher_t;
+#define UNARY_M(m) ((unary_matcher_t *)(m))
#ifdef __cplusplus
} /* extern "C" */