-static const struct tvec_irange cmp_range = { -1, +1 };
-static const struct tvec_regdef versioncmp_regs[] = {
- { "v0", RV0, &tvty_string, 0 },
- { "v1", RV1, &tvty_string, 0 },
- { "rc", RRC, &tvty_int, 0, { &cmp_range } },
- TVEC_ENDREGS
-};
+static void test_versioncmp(const struct tvec_reg *in, struct tvec_reg *out,
+ void *ctx)
+ { out[RRC].v.i = versioncmp(in[RV0].v.text.p, in[RV1].v.text.p); }