chiark / gitweb /
@@@ tty mess
[mLib] / test / t / tvec-test.c
index a86f23022055453b3c77d103767a936601f8ebf0..3840e800bb26557fa740981bb74e4f36ee1aa856 100644 (file)
@@ -44,28 +44,28 @@ static const struct tvec_iassoc ienum_assocs[] = {
   { "less",           -1 },
   { "equal",           0 },
   { "greater",        +1 },
-  { 0 }
+  TVEC_ENDENUM
 };
 
 static const struct tvec_uassoc uenum_assocs[] = {
   { "apple",           0 },
   { "banana",          1 },
   { "clementine",      2 },
-  { 0 }
+  TVEC_ENDENUM
 };
 
 static const struct tvec_fassoc fenum_assocs[] = {
   { "e",               2.718281828459045 },
   { "pi",              3.141592653589793 },
   { "tau",             6.283185307179586 },
-  { 0 }
+  TVEC_ENDENUM
 };
 
 static const struct tvec_passoc penum_assocs[] = {
   { "alice",           &uenum_assocs[0] },
   { "bob",             &uenum_assocs[1] },
   { "carol",           &uenum_assocs[2] },
-  { 0 }
+  TVEC_ENDENUM
 };
 
 #if __STDC_VERSION__ >= 199901
@@ -114,7 +114,7 @@ static const struct tvec_flag attr_flags[] = {
   { "bright",          0x40, 0x40 },
   { "flash",           0x80, 0x80 },
 
-  { 0 }
+  TVEC_ENDFLAGS
 };
 
 static const struct tvec_flaginfo attr_info =