nomacros.c revision 3050
13050Sache#include <ctype.h> 23050Sache#include <rune.h> 33050Sache 43050Sache#if !defined(_USE_CTYPE_INLINE_) && !defined(_USE_CTYPE_MACROS_) 53050Sache/* 63050Sache * See comments in <machine/ansi.h> 73050Sache */ 83050Sacheint 93050Sache__istype(c, f) 103050Sache _BSD_RUNE_T_ c; 113050Sache unsigned long f; 123050Sache{ 133050Sache return ((((c & _CRMASK) ? ___runetype(c) 143050Sache : _CurrentRuneLocale->runetype[c]) & f) ? 1 : 0); 153050Sache} 163050Sache 173050Sacheint 183050Sache__isctype(_BSD_RUNE_T_ c, unsigned long f) 193050Sache _BSD_RUNE_T_ c; 203050Sache unsigned long f; 213050Sache{ 223050Sache return ((((c & _CRMASK) ? 0 233050Sache : _DefaultRuneLocale.runetype[c]) & f) ? 1 : 0); 243050Sache} 253050Sache 263050Sache_BSD_RUNE_T_ 273050Sachetoupper(c) 283050Sache _BSD_RUNE_T_ c; 293050Sache{ 303050Sache return ((c & _CRMASK) ? 313050Sache ___toupper(c) : _CurrentRuneLocale->mapupper[c]); 323050Sache} 333050Sache 343050Sache_BSD_RUNE_T_ 353050Sachetolower(c) 363050Sache _BSD_RUNE_T_ c; 373050Sache{ 383050Sache return ((c & _CRMASK) ? 393050Sache ___tolower(c) : _CurrentRuneLocale->maplower[c]); 403050Sache} 413050Sache#endif 42