1 --- tolower.c.orig Tue May 20 15:21:44 2003
2 +++ tolower.c Tue Jun 17 17:45:56 2003
9 +__private_extern__ int
10 +__compRuneEntry(const void *, const void *); // from runetype.c
17 _RuneRange *rr = &_CurrentRuneLocale->maplower_ext;
18 - _RuneEntry *re = rr->ranges;
21 if (c < 0 || c == EOF)
24 - for (x = 0; x < rr->nranges; ++x, ++re) {
28 - return(re->map + c - re->min);
30 + re = (_RuneEntry *)bsearch(&c, rr->ranges, rr->nranges,
31 + sizeof(_RuneEntry), __compRuneEntry);
34 + return(re->map + c - re->min);