Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/ctype/ctype_cp.h')
-rw-r--r--newlib/libc/ctype/ctype_cp.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/newlib/libc/ctype/ctype_cp.h b/newlib/libc/ctype/ctype_cp.h
index 9370778a2..192cfa43d 100644
--- a/newlib/libc/ctype/ctype_cp.h
+++ b/newlib/libc/ctype/ctype_cp.h
@@ -469,13 +469,31 @@
_L, _L, _L, _L, _L, _L, _L, _L, \
_L, _L, _L, _L, _L, _L, _L
#define _CTYPE_PT154_255 _L
+#define _CTYPE_CP103_128_254 \
+ _L, _L, _P, _U, _P, _P, _P, _P, \
+ 0, _P, _L, _P, _U, _L, _U, 0, \
+ _U, _P, _P, _P, _P, _P, _P, _P, \
+ 0, _P, 0, _P, 0, 0, 0, 0, \
+ 0, _L, _U, _L, _P, _L, _P, _P, \
+ 0, 0, 0, _P, _P, _P, _P, 0, \
+ _P, _P, _P, _U, 0, _U, _P, _P, \
+ 0, _P, 0, _P, 0, 0, 0, _P, \
+ _L, _L, _L, _L, _L, _L, _L, _L, \
+ _L, _L, _L, _L, _L, _L, _L, _L, \
+ _L, _L, _L, _L, _L, _L, _L, _L, \
+ _L, _L, _L, _L, _L, _L, _L, _L, \
+ _U, _U, _U, _U, _U, _U, _U, _U, \
+ _U, _U, _U, _U, _U, _U, _U, _U, \
+ _U, _U, _U, _U, _U, _U, _U, _U, \
+ _U, _U, _U, _U, _U, _U, _U
+#define _CTYPE_CP103_255 _U
#if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
#ifndef __CYGWIN__
static const
#endif
-char __ctype_cp[26][128 + 256] = {
+char __ctype_cp[27][128 + 256] = {
{ _CTYPE_CP437_128_254,
0,
_CTYPE_DATA_0_127,
@@ -632,11 +650,17 @@ char __ctype_cp[26][128 + 256] = {
_CTYPE_PT154_128_254,
_CTYPE_PT154_255
},
+ { _CTYPE_CP103_128_254,
+ 0,
+ _CTYPE_DATA_0_127,
+ _CTYPE_CP103_128_254,
+ _CTYPE_CP103_255
+ },
};
#else /* !defined(ALLOW_NEGATIVE_CTYPE_INDEX) */
-static const char __ctype_cp[26][1 + 256] = {
+static const char __ctype_cp[27][1 + 256] = {
{ 0,
_CTYPE_DATA_0_127,
_CTYPE_CP437_128_254,
@@ -767,6 +791,11 @@ static const char __ctype_cp[26][1 + 256] = {
_CTYPE_PT154_128_254,
_CTYPE_PT154_255
},
+ { 0,
+ _CTYPE_DATA_0_127,
+ _CTYPE_CP103_128_254,
+ _CTYPE_CP103_255
+ },
};
#endif /* ALLOW_NEGATIVE_CTYPE_INDEX */