OSDN Git Service

Fix isalpha(0x100000001LL) and friends on 64-bit machines.
authorericb <ericb>
Sat, 24 Oct 2009 22:24:28 +0000 (22:24 +0000)
committerericb <ericb>
Sat, 24 Oct 2009 22:24:28 +0000 (22:24 +0000)
commita610ae61eee5b16611d4667cacc66a02fa5ef7ca
tree194c6c46202506928cfd8c49cabd3e1b459ef4c0
parent7547fa889b8f29e0a3861c84d1da80514b6d6f9b
Fix isalpha(0x100000001LL) and friends on 64-bit machines.

* libc/include/ctype.h (__ctype_lookup): New macro.
(isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
(isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
on 64-bit machines.
newlib/ChangeLog
newlib/libc/include/ctype.h