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