Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / math / bittest.c
index 5f7b1d7..e335286 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <mLib/macros.h>
 #include "bitops.h"
 #include "mpx.h"
 
@@ -45,7 +46,7 @@ int main(void)
   buf[2] = B##string(1u, 0u) & 1u? '1' : '0';                          \
   buf[3] = B##string(1u, 1u) & 1u? '1' : '0';                          \
   buf[4] = 0;                                                          \
-  if (strcmp(buf, ref) != 0) {                                         \
+  if (STRCMP(buf, !=, ref)) {                                          \
     fprintf(stderr, "mismatch ref `%s' != buf `%s'\n", ref, buf);      \
     rc = 1;                                                            \
   }                                                                    \