diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 14:22:04 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 14:22:04 -0500 |
| commit | f777999710878dc9c5cdea3b297c0c1ccd934adc (patch) | |
| tree | 2d37c4cdd8487d563487caa58fa60ef946b8d5fb /src/nonstd/struct_locale_t.c | |
| parent | 5608b687ac1a10b1cc525d8e61d0abfce2f5737d (diff) | |
clean up internal locale stuff
Diffstat (limited to 'src/nonstd/struct_locale_t.c')
| -rw-r--r-- | src/nonstd/struct_locale_t.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/nonstd/struct_locale_t.c b/src/nonstd/struct_locale_t.c index 1981bd8d..5487ae6a 100644 --- a/src/nonstd/struct_locale_t.c +++ b/src/nonstd/struct_locale_t.c @@ -1,22 +1,31 @@ #include <nonstd/locale.h> struct __locale_t { - int mask; - char *all; - char *collate; - unsigned char *collation; - char *ctype; - unsigned char *ctattr; - unsigned char *ctoupper; - unsigned char *ctolower; - char *message; + char all[UCHAR_MAX]; + + char ctype[UCHAR_MAX]; + struct { + unsigned char ctattr[UCHAR_MAX + 1]; + unsigned char ctoupper[UCHAR_MAX + 1]; + unsigned char ctolower[UCHAR_MAX + 1]; + } lc_ctype; + + char collate[UCHAR_MAX]; + struct collation { + char * sequence; + int weight; + } *lc_collate; + + char messages[UCHAR_MAX]; struct { char *yesexpr; char *noexpr; } lc_messages; + char *monetary; char *numeric; struct lconv mn; + char *time; struct { char *abday[7]; |
