Print this page
Thread safety fixes.


  98 #endif
  99 
 100 /* character classification functions */
 101 
 102 /* iswascii is still a macro */
 103 #define iswascii(c)     isascii(c)
 104 
 105 /* isw*, except iswascii(), are not macros any more.  They become functions */
 106 #ifdef __STDC__
 107 
 108 /* is* also become functions */
 109 extern  int isphonogram(wint_t);
 110 extern  int isideogram(wint_t);
 111 extern  int isenglish(wint_t);
 112 extern  int isnumber(wint_t);
 113 extern  int isspecial(wint_t);
 114 /* From BSD/MacOS */
 115 extern  int iswideogram(wint_t);
 116 extern  int iswphonogram(wint_t);
 117 extern  int iswnumber(wint_t);

 118 extern  int iswspecial(wint_t);
 119 
 120 #else   /* __STDC__ */
 121 
 122 /* is* also become functions */
 123 extern  int isphonogram();
 124 extern  int isideogram();
 125 extern  int isenglish();
 126 extern  int isnumber();
 127 extern  int isspecial();
 128 /* From BSD/MacOS */
 129 extern  int iswideogram();
 130 extern  int iswphonogram();
 131 extern  int iswnumber();
 132 extern  int iswspecial();
 133 #endif
 134 
 135 #define iscodeset0(c)   isascii(c)
 136 #define iscodeset1(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS1)
 137 #define iscodeset2(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS2)




  98 #endif
  99 
 100 /* character classification functions */
 101 
 102 /* iswascii is still a macro */
 103 #define iswascii(c)     isascii(c)
 104 
 105 /* isw*, except iswascii(), are not macros any more.  They become functions */
 106 #ifdef __STDC__
 107 
 108 /* is* also become functions */
 109 extern  int isphonogram(wint_t);
 110 extern  int isideogram(wint_t);
 111 extern  int isenglish(wint_t);
 112 extern  int isnumber(wint_t);
 113 extern  int isspecial(wint_t);
 114 /* From BSD/MacOS */
 115 extern  int iswideogram(wint_t);
 116 extern  int iswphonogram(wint_t);
 117 extern  int iswnumber(wint_t);
 118 extern  int iswhexnumber(wint_t);
 119 extern  int iswspecial(wint_t);
 120 
 121 #else   /* __STDC__ */
 122 
 123 /* is* also become functions */
 124 extern  int isphonogram();
 125 extern  int isideogram();
 126 extern  int isenglish();
 127 extern  int isnumber();
 128 extern  int isspecial();
 129 /* From BSD/MacOS */
 130 extern  int iswideogram();
 131 extern  int iswphonogram();
 132 extern  int iswnumber();
 133 extern  int iswspecial();
 134 #endif
 135 
 136 #define iscodeset0(c)   isascii(c)
 137 #define iscodeset1(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS1)
 138 #define iscodeset2(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS2)