Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / math / genwheel.c
index 9bf3cbe..0354cc2 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <mLib/darray.h>
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 #include <mLib/mdwopt.h>
 #include <mLib/quis.h>
 #include <mLib/report.h>
@@ -127,8 +128,8 @@ int main(int argc, char *argv[])
     if (!sym) {
       for (q = header; *q; q++) {
        int ch = (unsigned char)*q;
-       if (isalnum(ch))
-         ch = toupper(ch);
+       if (ISALNUM(ch))
+         ch = TOUPPER(ch);
        else
          ch = '_';
        DPUTC(&d, ch);