Cygwin: glob: convert internal character datatype to wint_t
uint_fast64_t doesn't allow easy string handling, so convert the internal "Char" type to wint_t. Given that UTF-32 only needs 21 bits, we're well off with 28 usable character bits. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
1eadb23887
commit
244faaea8e
|
@ -130,12 +130,13 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/glob.c,v 1.28 2010/05/12 17:44:00 gordon Ex
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
|
|
||||||
#define M_QUOTE 0x8000000000ULL
|
#define M_QUOTE 0x40000000U
|
||||||
#define M_PROTECT 0x4000000000ULL
|
#define M_PROTECT 0x20000000U
|
||||||
#define M_MASK 0xffffffffffULL
|
#define M_MASK 0x70ffffffU
|
||||||
#define M_CHAR 0x00ffffffffULL
|
#define M_COLL_MASK 0x700000ffU
|
||||||
|
#define M_CHAR 0x0fffffffU
|
||||||
|
|
||||||
typedef uint_fast64_t Char;
|
typedef wint_t Char;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue