mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
fee7b24beb
commit
c874161ec5
@ -34,22 +34,12 @@ __set_ctype (struct __locale_t *loc, const char *charset)
|
||||
idx = 0;
|
||||
else
|
||||
++idx;
|
||||
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
|
||||
{
|
||||
memcpy (_ctype_b, __ctype_iso[idx], 128);
|
||||
memcpy (_ctype_b + 256, __ctype_iso[idx] + 256, 128);
|
||||
}
|
||||
ctype_ptr = (char *) __ctype_iso[idx];
|
||||
break;
|
||||
case 'C':
|
||||
idx = __cp_index (charset + 2);
|
||||
if (idx < 0)
|
||||
break;
|
||||
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
|
||||
{
|
||||
memcpy (_ctype_b, __ctype_cp[idx], 128);
|
||||
memcpy (_ctype_b + 256, __ctype_cp[idx] + 256, 128);
|
||||
}
|
||||
ctype_ptr = (char *) __ctype_cp[idx];
|
||||
break;
|
||||
default:
|
||||
@ -57,11 +47,6 @@ __set_ctype (struct __locale_t *loc, const char *charset)
|
||||
}
|
||||
if (!ctype_ptr)
|
||||
{
|
||||
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
|
||||
{
|
||||
memset (_ctype_b, 0, 128);
|
||||
memset (_ctype_b + 256, 0, 128);
|
||||
}
|
||||
ctype_ptr = (char *) _ctype_b;
|
||||
}
|
||||
loc->ctype_ptr = ctype_ptr + 127;
|
||||
|
@ -34,9 +34,6 @@ details. */
|
||||
#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
|
||||
CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
|
||||
|
||||
#define CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE \
|
||||
(CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 209)
|
||||
|
||||
#define CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL(u) \
|
||||
(CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (u) >= 227)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user