URI:
       tcbtype.h - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tcbtype.h (1099B)
       ---
            1 #undef        _U
            2 #undef        _L
            3 #undef        _N
            4 #undef        _S
            5 #undef        _P
            6 #undef        _C
            7 #undef        _X
            8 #undef        _O
            9 
           10 #define        _U        01
           11 #define        _L        02
           12 #define        _N        04
           13 #define        _S        010
           14 #define        _P        020
           15 #define        _C        040
           16 #define        _X        0100
           17 #define        _O        0200
           18 
           19 extern        unsigned char        _cbtype_[];        /* in /usr/src/libc/gen/ctype_.c */
           20 
           21 #undef isop
           22 #undef        isalpha
           23 #undef        isupper
           24 #undef        islower
           25 #undef        isdigit
           26 #undef        isxdigit
           27 #undef        isspace
           28 #undef ispunct
           29 #undef isalnum
           30 #undef isprint
           31 #undef iscntrl
           32 #undef isascii
           33 #undef toupper
           34 #undef tolower
           35 #undef toascii
           36 
           37 #define isop(c)        ((_cbtype_+1)[c]&_O)
           38 #define        isalpha(c)        ((_cbtype_+1)[c]&(_U|_L))
           39 #define        isupper(c)        ((_cbtype_+1)[c]&_U)
           40 #define        islower(c)        ((_cbtype_+1)[c]&_L)
           41 #define        isdigit(c)        ((_cbtype_+1)[c]&_N)
           42 #define        isxdigit(c)        ((_cbtype_+1)[c]&(_N|_X))
           43 #define        isspace(c)        ((_cbtype_+1)[c]&_S)
           44 #define ispunct(c)        ((_cbtype_+1)[c]&_P)
           45 #define isalnum(c)        ((_cbtype_+1)[c]&(_U|_L|_N))
           46 #define isprint(c)        ((_cbtype_+1)[c]&(_P|_U|_L|_N))
           47 #define iscntrl(c)        ((_cbtype_+1)[c]&_C)
           48 #define isascii(c)        ((unsigned)(c)<=0177)
           49 #define toupper(c)        ((c)-'a'+'A')
           50 #define tolower(c)        ((c)-'A'+'a')
           51 #define toascii(c)        ((c)&0177)