X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcore%2Fstore-private.h;h=700fed60ff723f4e60bd986bff75df9c805fe4aa;hb=bbd1b997cf153d54878efebc182bd88f1c64d45c;hp=1342a5b58fca93508d93f00571753be9b7e3d5db;hpb=d8d03b18f0e0a4c39e2adec3cc2cd093d52c1f93;p=sysdb.git diff --git a/src/core/store-private.h b/src/core/store-private.h index 1342a5b..700fed6 100644 --- a/src/core/store-private.h +++ b/src/core/store-private.h @@ -160,10 +160,11 @@ enum { MATCHER_ANY, MATCHER_ALL, MATCHER_IN, - MATCHER_NIN, /* unary operators */ MATCHER_ISNULL, + MATCHER_ISTRUE, + MATCHER_ISFALSE, /* ary operators */ MATCHER_LT, @@ -186,8 +187,9 @@ enum { : ((t) == MATCHER_ANY) ? "ANY" \ : ((t) == MATCHER_ALL) ? "ALL" \ : ((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) ? "=" \ @@ -247,8 +249,8 @@ typedef struct { 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" */