aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/lib/ctype.c
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/lib/ctype.c
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/lib/ctype.c')
-rw-r--r--extras/mini-os/lib/ctype.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/extras/mini-os/lib/ctype.c b/extras/mini-os/lib/ctype.c
new file mode 100644
index 0000000000..be09593914
--- /dev/null
+++ b/extras/mini-os/lib/ctype.c
@@ -0,0 +1,27 @@
+#include <ctype.h>
+
+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 */