(__ctype_tolower, __ctype_toupper): Use int * instead of short int *.
authorroland <roland>
Wed, 8 Mar 1995 19:41:41 +0000 (19:41 +0000)
committerroland <roland>
Wed, 8 Mar 1995 19:41:41 +0000 (19:41 +0000)
locale/lc-ctype.c

index 9b72ad1..c634d12 100644 (file)
@@ -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));
 }