From 6c2f050742cfb5b3ff6ee96b106409f541eb53bc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 9 Mar 1995 10:00:12 +0000 Subject: Wed Mar 8 13:38:13 1995 Roland McGrath * posix/glob/configure.bat: Fixes from DJ. * time/backward, time/europe, time/northamerica, time/pacificnew, time/zdump.c, time/zic.c, time/tzfile.h, time/private.h, time/ialloc.c: Code and data updated from ADO's 95b. * time/emkdir.c: File removed. * time/Makefile (distribute, extra-objs, zic): Omit it. * time/localtime.c: Deansideclized. Never #define __tzname et al to non-__ names. * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int * instead of short int *. * ctype/ctype-info.c: Likewise. * ctype/ctype.h: Likewise. * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead of EB and EL versions. --- locale/lc-ctype.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'locale/lc-ctype.c') diff --git a/locale/lc-ctype.c b/locale/lc-ctype.c index 9b72ad16eb..c634d12adb 100644 --- a/locale/lc-ctype.c +++ b/locale/lc-ctype.c @@ -40,12 +40,13 @@ _nl_postload_ctype (void) #else #error bizarre byte order #endif +#define eval(x) x #define current(unsigned,x) \ - ((const unsigned short int *) _NL_CURRENT (LC_CTYPE, bo(_NL_CTYPE_##x)) \ + ((const unsigned int *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_##eval(x)) \ + 128) - __ctype_b = current (unsigned, CLASS); - __ctype_toupper = current (, TOUPPER); - __ctype_tolower = current (, TOLOWER); + __ctype_b = current (unsigned short, CLASS); + __ctype_toupper = current (, bo (TOUPPER)); + __ctype_tolower = current (, bo (TOLOWER)); } -- cgit v1.2.3