]> pd.if.org Git - pdclib/blobdiff - functions/ctype/ispunct.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib] / functions / ctype / ispunct.c
index 2859efc32478cc35574d41eebb58ad564ff4e427..6c067889f5350394a80650a0e2288fc27102f457 100644 (file)
@@ -9,10 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 int ispunct( int c )
 {
-    return ( _PDCLIB_locale_info.ctype[c].flags & _PDCLIB_CTYPE_PUNCT );
+    return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_PUNCT );
 }
 
 #endif