aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/ctype.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-11-23 16:41:54 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-11-23 16:41:54 +0000
commit63c4c4eabe15e762b4760169f9e931bac47c6beb (patch)
treeb15e639246c01edea06768a6caf6149ef64941a8 /extras/mini-os/include/ctype.h
parent29c4a80b7449ea5d95a74d38c87b5c471102ce7d (diff)
downloadxen-63c4c4eabe15e762b4760169f9e931bac47c6beb.tar.gz
xen-63c4c4eabe15e762b4760169f9e931bac47c6beb.tar.bz2
xen-63c4c4eabe15e762b4760169f9e931bac47c6beb.zip
[Mini-OS] Move _ctype into a module
Move the _ctype array into its own module, instead of having it defined in a header. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
Diffstat (limited to 'extras/mini-os/include/ctype.h')
-rw-r--r--extras/mini-os/include/ctype.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/extras/mini-os/include/ctype.h b/extras/mini-os/include/ctype.h
index 013948656a..ef8f5b61e5 100644
--- a/extras/mini-os/include/ctype.h
+++ b/extras/mini-os/include/ctype.h
@@ -16,31 +16,7 @@
#define _SP 0x80 /* hard space (0x20) */
-unsigned char _ctype[] = {
-_C,_C,_C,_C,_C,_C,_C,_C, /* 0-7 */
-_C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C, /* 8-15 */
-_C,_C,_C,_C,_C,_C,_C,_C, /* 16-23 */
-_C,_C,_C,_C,_C,_C,_C,_C, /* 24-31 */
-_S|_SP,_P,_P,_P,_P,_P,_P,_P, /* 32-39 */
-_P,_P,_P,_P,_P,_P,_P,_P, /* 40-47 */
-_D,_D,_D,_D,_D,_D,_D,_D, /* 48-55 */
-_D,_D,_P,_P,_P,_P,_P,_P, /* 56-63 */
-_P,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U, /* 64-71 */
-_U,_U,_U,_U,_U,_U,_U,_U, /* 72-79 */
-_U,_U,_U,_U,_U,_U,_U,_U, /* 80-87 */
-_U,_U,_U,_P,_P,_P,_P,_P, /* 88-95 */
-_P,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L, /* 96-103 */
-_L,_L,_L,_L,_L,_L,_L,_L, /* 104-111 */
-_L,_L,_L,_L,_L,_L,_L,_L, /* 112-119 */
-_L,_L,_L,_P,_P,_P,_P,_C, /* 120-127 */
-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 128-143 */
-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 144-159 */
-_S|_SP,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P, /* 160-175 */
-_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P, /* 176-191 */
-_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U, /* 192-207 */
-_U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L, /* 208-223 */
-_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L, /* 224-239 */
-_L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L}; /* 240-255 */
+extern unsigned char _ctype[];
#define __ismask(x) (_ctype[(int)(unsigned char)(x)])