}
static const struct tvec_env swap_testenv = { 0, 0, 0, 0, swap_test, 0, 0 };
-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 } },
- { 0, 0, 0, 0 }
+ { "rc", RRC, &tvty_ienum, 0, { &tvenum_cmp } },
+ TVEC_ENDREGS
};
static const struct tvec_test tests[] = {
{ "versioncmp", versioncmp_regs, &swap_testenv, test_versioncmp },
- { 0, 0, 0, 0 }
+ TVEC_ENDTESTS
};
static const struct tvec_config testconfig =