1 --- toupper.c.orig Tue May 20 15:21:44 2003
2 +++ toupper.c Tue Jun 17 17:49:05 2003
9 +__private_extern__ int
10 +__compRuneEntry(const void *, const void *); // from runetype.c
17 _RuneRange *rr = &_CurrentRuneLocale->mapupper_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);