{ "y", 1 },
{ "on", 1 },
- { 0, 0 }
+ TVEC_ENDENUM
};
const struct tvec_ienuminfo tvenum_bool =
{ "bool", bool_assoc, &tvrange_int };
+static const struct tvec_iassoc cmp_assoc[] = {
+ { "<", -1 },
+ { "less", -1 },
+ { "lt", -1 },
+
+ { "=", 0 },
+ { "equal", 0 },
+ { "eq", 0 },
+
+ { ">", +1 },
+ { "greater", +1 },
+ { "gt", +1 },
+
+ TVEC_ENDENUM
+};
+
+const struct tvec_ienuminfo tvenum_cmp =
+ { "cmp", cmp_assoc, &tvrange_int };
+
/* --- @tvec_claimeq_tenum@ --- *
*
* Arguments: @struct tvec_state *tv@ = test-vector state