]> pd.if.org Git - pdclib/blobdiff - functions/wctype/iswctype.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / wctype / iswctype.c
index 5c5f7ed1795efcf92624a3d19e7cedafb534b06e..ab626ea8757971015247cf5d75aeda6c35e662af 100644 (file)
@@ -6,23 +6,28 @@
 \r
 #include <wctype.h>\r
 #ifndef REGTEST\r
-#include <_PDCLIB_locale.h>\r
+#include "_PDCLIB_locale.h"\r
 \r
-int iswctype( wint_t wc, wctype_t desc )\r
+int _PDCLIB_iswctype_l( wint_t wc, wctype_t desc, locale_t l )\r
 {\r
     wc = _PDCLIB_unpackwint( wc );\r
 \r
-    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( wc );\r
+    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, wc );\r
 \r
     if(!info) return 0;\r
 \r
     return info->flags & desc;\r
 }\r
 \r
+int iswctype( wint_t wc, wctype_t desc )\r
+{\r
+    return _PDCLIB_iswctype_l( wc, desc, _PDCLIB_threadlocale() );\r
+}\r
+\r
 #endif\r
 \r
 #ifdef TEST\r
-#include <_PDCLIB_test.h>\r
+#include "_PDCLIB_test.h"\r
 \r
 int main( void )\r
 {\r