diff options
author | Roland McGrath <roland@gnu.org> | 1995-03-09 10:00:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-03-09 10:00:12 +0000 |
commit | 6c2f050742cfb5b3ff6ee96b106409f541eb53bc (patch) | |
tree | f7296a81b8d5524dddfa0aa1cc24342d8ef9ac24 /ctype | |
parent | 286351153566acc7dcc82834d90e0b8d87dff8be (diff) | |
download | glibc-6c2f050742cfb5b3ff6ee96b106409f541eb53bc.tar.gz |
Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* 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.
Diffstat (limited to 'ctype')
-rw-r--r-- | ctype/ctype-info.c | 8 | ||||
-rw-r--r-- | ctype/ctype.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ctype/ctype-info.c b/ctype/ctype-info.c index 61f881bb01..a1054b2d16 100644 --- a/ctype/ctype-info.c +++ b/ctype/ctype-info.c @@ -24,8 +24,8 @@ extern const char _nl_C_LC_CTYPE_class[]; extern const char _nl_C_LC_CTYPE_toupper[]; extern const char _nl_C_LC_CTYPE_tolower[]; -#define b(u,x) (((u short int *) _nl_C_LC_CTYPE_##x) + 128); +#define b(u,x) (((u int *) _nl_C_LC_CTYPE_##x) + 128); -const unsigned short int *__ctype_b = b(unsigned, class); -const short int *__ctype_tolower = b(, tolower); -const short int *__ctype_toupper = b(, toupper); +const unsigned short int *__ctype_b = b(unsigned short, class); +const int *__ctype_tolower = b(, tolower); +const int *__ctype_toupper = b(, toupper); diff --git a/ctype/ctype.h b/ctype/ctype.h index f568ff45a8..c9129f08ec 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -68,12 +68,12 @@ enum char' value [0,255]; by EOF (-1); or by any `signed char' value [-128,-1). ANSI requires that the ctype functions work for `unsigned char' values and for EOF; we also support negative `signed char' values - for broken old programs. The case conversion arrays are of `short int's + for broken old programs. The case conversion arrays are of `int's rather than `unsigned char's because tolower (EOF) must be EOF, which doesn't fit into an `unsigned char'. */ extern __const unsigned short int *__ctype_b; /* Characteristics. */ -extern __const short int *__ctype_tolower; /* Case conversions. */ -extern __const short int *__ctype_toupper; /* Case conversions. */ +extern __const int *__ctype_tolower; /* Case conversions. */ +extern __const int *__ctype_toupper; /* Case conversions. */ #define __isctype(c, type) \ (__ctype_b[(int) (c)] & (unsigned short int) type) |