]> granicus.if.org Git - graphviz/commitdiff
remove disabled _lib_wctype-guarded code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 12 Aug 2021 01:34:48 +0000 (18:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 00:27:59 +0000 (17:27 -0700)
lib/ast/strmatch.c

index 2494d13adc825abc03065f4b9f3bd2db7c0aa1e5..4fa5881dc8c5bfe4481d8a055a71c4b9f4149d6e 100644 (file)
@@ -49,8 +49,6 @@
 #include <stddef.h>
 #include <string.h>
 
-#undef _lib_wctype
-
 #ifndef        isblank
 #define        isblank(x)      ((x)==' '||(x)=='\t')
 #endif
@@ -443,20 +441,6 @@ onematch(Match_t * mp, int g, char *s, char *p, char *e, char *r,
                                if (oldp[5] == 't' && isxdigit(sc))
                                    ok = 1;
                                break;
-#if _lib_wctype
-                           default:
-                               {
-                                   char cc[32];
-
-                                   if (x >= sizeof(cc))
-                                       x = sizeof(cc) - 1;
-                                   strncpy(cc, oldp, x);
-                                   cc[x] = 0;
-                                   if (iswctype(sc, wctype(cc)))
-                                       ok = 1;
-                               }
-                               break;
-#endif
                            }
                        }
                        else if (range)