chiark / gitweb /
@@@ tvec wip
[mLib] / hash / t / hash-test.c
index 756232d78b3f9670e49de06beb4e3d30d8fd30fa..1718a98f03ddd731ed056159ca9b9040948552d4 100644 (file)
@@ -109,18 +109,18 @@ static const struct tvec_regdef unihash_regs[] = {
   { "k", RK, &tvty_uint, 0, { &tvrange_u32 } },
   { "m", RM, &tvty_bytes, 0 },
   { "h", RH, &tvty_uint, 0, { &tvrange_u32 } },
-  { 0, 0, 0, 0 }
+  TVEC_ENDREGS
 };
 
 static const struct tvec_regdef crc32_regs[] = {
   { "m", RM, &tvty_bytes, 0 },
   { "h", RH, &tvty_uint, 0, { &tvrange_u32 } },
-  { 0, 0, 0, 0 }
+  TVEC_ENDREGS
 };
 
 static const struct tvec_regdef bench_regs[] = {
   { "msz", RM, &tvty_buffer, TVRF_ID },
-  { 0, 0, 0, 0 }
+  TVEC_ENDREGS
 };
 
 static const struct tvec_bench crc32_bench =
@@ -133,7 +133,7 @@ static const struct tvec_test tests[] = {
   { "unihash", unihash_regs, &step_testenv, test_unihash },
   { "crc32-bench", bench_regs, &crc32_bench._env, bench_crc32 },
   { "unihash-bench", bench_regs, &unihash_bench._env, bench_unihash },
-  { 0, 0, 0, 0 }
+  TVEC_ENDTESTS
 };
 
 static const struct tvec_config testconfig =