From: Ulrich Drepper Date: Thu, 24 Feb 2000 22:48:54 +0000 (+0000) Subject: Add table pointer for both endianesses. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5cc7038cbd8ebd0665e08b02e2fa58b5aa4627;p=thirdparty%2Fglibc.git Add table pointer for both endianesses. --- diff --git a/locale/C-ctype.c b/locale/C-ctype.c index 44bace10685..e442d11bea4 100644 --- a/locale/C-ctype.c +++ b/locale/C-ctype.c @@ -343,7 +343,7 @@ const struct locale_data _nl_C_LC_CTYPE = _nl_C_name, NULL, 0, 0, /* no file mapped */ UNDELETABLE, - 15, + 20, { { string: _nl_C_LC_CTYPE_class }, #if BYTE_ORDER == LITTLE_ENDIAN @@ -369,7 +369,14 @@ const struct locale_data _nl_C_LC_CTYPE = { string: _nl_C_LC_CTYPE_width }, { word: 1 }, { string: "ANSI_X3.4-1968" }, +#if BYTE_ORDER == LITTLE_ENDIAN + { string: NULL }, +#endif { string: (const char *) (_nl_C_LC_CTYPE_toupper + 128) }, + { string: NULL }, { string: (const char *) (_nl_C_LC_CTYPE_tolower + 128) } +#if BYTE_ORDER == BIG_ENDIAN + { string: NULL }, +#endif } };