X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/e63124bc579bfd97cfe2f620ddd84df9f20477d8..c81c35dfd10050ffef85d57dc2ad73f52f38a3f2:/utils/t/bits-test.c diff --git a/utils/t/bits-test.c b/utils/t/bits-test.c index c87fec5..b4a515b 100644 --- a/utils/t/bits-test.c +++ b/utils/t/bits-test.c @@ -75,13 +75,13 @@ static const struct tvec_regdef shift_regs[] = { { "x", RX, &tvty_bytes, 0, { &ur_eight } }, { "n", RN, &tvty_uint, 0, { &ur_shift } }, { "z", RZ, &tvty_bytes, 0, { &ur_eight } }, - { 0, 0, 0, 0 } + TVEC_ENDREGS }; static const struct tvec_regdef arith_regs[] = { { "x", RX, &tvty_bytes, 0, { &ur_eight } }, { "y", RY, &tvty_bytes, 0, { &ur_eight } }, { "z", RZ, &tvty_bytes, 0, { &ur_eight } }, - { 0, 0, 0, 0 } + TVEC_ENDREGS }; static const struct tvec_test tests[] = { @@ -91,13 +91,13 @@ static const struct tvec_test tests[] = { { "ror64", shift_regs, 0, test_ROR }, { "add64", arith_regs, 0, test_ADD }, { "sub64", arith_regs, 0, test_SUB }, - { 0, 0, 0, 0 } + TVEC_ENDTESTS }; -static const struct tvec_info testinfo = +static const struct tvec_config testconfig = { tests, NROUT, NREG, sizeof(struct tvec_reg) }; int main(int argc, char *argv[]) - { return (tvec_main(argc, argv, &testinfo, 0)); } + { return (tvec_main(argc, argv, &testconfig, 0)); } /*----- That's all, folks -------------------------------------------------*/