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')
-rw-r--r--newlib/libc/ctype/ctype_.c11
-rw-r--r--newlib/libc/ctype/isalnum.c2
-rw-r--r--newlib/libc/ctype/isalpha.c4
-rw-r--r--newlib/libc/ctype/isblank.c3
-rw-r--r--newlib/libc/ctype/iscntrl.c4
-rw-r--r--newlib/libc/ctype/isdigit.c4
-rw-r--r--newlib/libc/ctype/islower.c3
-rw-r--r--newlib/libc/ctype/isprint.c3
-rw-r--r--newlib/libc/ctype/ispunct.c4
-rw-r--r--newlib/libc/ctype/isxdigit.c4
10 files changed, 26 insertions, 16 deletions
diff --git a/newlib/libc/ctype/ctype_.c b/newlib/libc/ctype/ctype_.c
index c3615d2a1..164a8eed7 100644
--- a/newlib/libc/ctype/ctype_.c
+++ b/newlib/libc/ctype/ctype_.c
@@ -111,14 +111,21 @@ _CONST
char __EXPORT *__ctype_ptr__ = (char *) _ctype_b + 127;
# ifdef __CYGWIN__
-
+# ifdef __x86_64__
+__asm__ (" \n\
+ .data \n\
+ .globl _ctype_ \n\
+ .set _ctype_,_ctype_b+127 \n\
+ .text \n\
+");
+# else
__asm__ (" \n\
.data \n\
.globl __ctype_ \n\
.set __ctype_,__ctype_b+127 \n\
.text \n\
");
-
+# endif
# else /* !__CYGWIN__ */
_CONST char _ctype_[1 + 256] = {
diff --git a/newlib/libc/ctype/isalnum.c b/newlib/libc/ctype/isalnum.c
index 3fd5f9515..8bc2897c9 100644
--- a/newlib/libc/ctype/isalnum.c
+++ b/newlib/libc/ctype/isalnum.c
@@ -18,7 +18,7 @@ DESCRIPTION
<<isalnum>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for alphabetic or
numeric ASCII characters, and <<0>> for other arguments. It is defined
-for all integer values.
+only if <[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isalnum>>'.
diff --git a/newlib/libc/ctype/isalpha.c b/newlib/libc/ctype/isalpha.c
index a30ca9e19..d25a8fa27 100644
--- a/newlib/libc/ctype/isalpha.c
+++ b/newlib/libc/ctype/isalpha.c
@@ -16,8 +16,8 @@ TRAD_SYNOPSIS
DESCRIPTION
<<isalpha>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero when <[c]> represents an
-alphabetic ASCII character, and 0 otherwise. It is defined only when
-<<isascii>>(<[c]>) is true or <[c]> is EOF.
+alphabetic ASCII character, and 0 otherwise. It is defined only if
+<[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isalpha>>'.
diff --git a/newlib/libc/ctype/isblank.c b/newlib/libc/ctype/isblank.c
index f4d38b95c..896a00768 100644
--- a/newlib/libc/ctype/isblank.c
+++ b/newlib/libc/ctype/isblank.c
@@ -17,7 +17,8 @@ TRAD_SYNOPSIS
DESCRIPTION
<<isblank>> is a function which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for blank characters, and 0
-for other characters.
+for other characters. It is defined only if <[c]> is representable as an
+unsigned char or if <[c]> is EOF.
RETURNS
<<isblank>> returns non-zero if <[c]> is a blank character.
diff --git a/newlib/libc/ctype/iscntrl.c b/newlib/libc/ctype/iscntrl.c
index a4fdff178..76b0f55de 100644
--- a/newlib/libc/ctype/iscntrl.c
+++ b/newlib/libc/ctype/iscntrl.c
@@ -17,8 +17,8 @@ TRAD_SYNOPSIS
DESCRIPTION
<<iscntrl>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for control characters, and 0
-for other characters. It is defined only when <<isascii>>(<[c]>) is
-true or <[c]> is EOF.
+for other characters. It is defined only if <[c]> is representable as an
+unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef iscntrl>>'.
diff --git a/newlib/libc/ctype/isdigit.c b/newlib/libc/ctype/isdigit.c
index 18383ee45..9db2700b7 100644
--- a/newlib/libc/ctype/isdigit.c
+++ b/newlib/libc/ctype/isdigit.c
@@ -16,8 +16,8 @@ int isdigit(<[c]>);
DESCRIPTION
<<isdigit>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for decimal digits, and 0 for
-other characters. It is defined only when <<isascii>>(<[c]>) is true
-or <[c]> is EOF.
+other characters. It is defined only if <[c]> is representable as an
+unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isdigit>>'.
diff --git a/newlib/libc/ctype/islower.c b/newlib/libc/ctype/islower.c
index bef010b8b..ec4309610 100644
--- a/newlib/libc/ctype/islower.c
+++ b/newlib/libc/ctype/islower.c
@@ -18,7 +18,8 @@ DESCRIPTION
<<islower>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for minuscules
(lowercase alphabetic characters), and 0 for other characters.
-It is defined only when <<isascii>>(<[c]>) is true or <[c]> is EOF.
+It is defined only if <[c]> is representable as an unsigned char or if
+<[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef islower>>'.
diff --git a/newlib/libc/ctype/isprint.c b/newlib/libc/ctype/isprint.c
index 2f317a291..b95aedd16 100644
--- a/newlib/libc/ctype/isprint.c
+++ b/newlib/libc/ctype/isprint.c
@@ -23,7 +23,8 @@ DESCRIPTION
<<isprint>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for printable
characters, and 0 for other character arguments.
-It is defined only when <<isascii>>(<[c]>) is true or <[c]> is EOF.
+It is defined only if <[c]> is representable as an unsigned char or if
+<[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining either macro using `<<#undef isprint>>' or `<<#undef isgraph>>'.
diff --git a/newlib/libc/ctype/ispunct.c b/newlib/libc/ctype/ispunct.c
index 9b9c9c0bc..9ca674975 100644
--- a/newlib/libc/ctype/ispunct.c
+++ b/newlib/libc/ctype/ispunct.c
@@ -17,8 +17,8 @@ int ispunct(<[c]>);
DESCRIPTION
<<ispunct>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for printable
-punctuation characters, and 0 for other characters. It is defined
-only when <<isascii>>(<[c]>) is true or <[c]> is EOF.
+punctuation characters, and 0 for other characters. It is defined only
+if <[c]> is representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef ispunct>>'.
diff --git a/newlib/libc/ctype/isxdigit.c b/newlib/libc/ctype/isxdigit.c
index 9748eb4b5..314f74e7e 100644
--- a/newlib/libc/ctype/isxdigit.c
+++ b/newlib/libc/ctype/isxdigit.c
@@ -17,8 +17,8 @@ int isxdigit(int <[c]>);
DESCRIPTION
<<isxdigit>> is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for hexadecimal digits,
-and <<0>> for other characters. It is defined only when
-<<isascii>>(<[c]>) is true or <[c]> is EOF.
+and <<0>> for other characters. It is defined only if <[c]> is
+representable as an unsigned char or if <[c]> is EOF.
You can use a compiled subroutine instead of the macro definition by
undefining the macro using `<<#undef isxdigit>>'.