Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / symm / gthingtab.c.in
index 29b733b..92fe792 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <string.h>
 
+#include <mLib/macros.h>
+
 #include "@what.h"
 
 %repeat
@@ -27,6 +29,6 @@ const @cls *@{what}_byname(const char *p)
   const @cls *const *c;
 
   for (c = @{what}tab; *c; c++)
-    if (strcmp(p, (*c)->name) == 0) return (*c);
+    if (STRCMP(p, ==, (*c)->name)) return (*c);
   return (0);
 }