Lines 94-99
struct locale_time_t
Link Here
|
94 |
const char *alt_mon[12]; |
94 |
const char *alt_mon[12]; |
95 |
const uint32_t *walt_mon[12]; |
95 |
const uint32_t *walt_mon[12]; |
96 |
int alt_mon_defined; |
96 |
int alt_mon_defined; |
|
|
97 |
const char *ab_alt_mon[12]; |
98 |
const uint32_t *wab_alt_mon[12]; |
99 |
int ab_alt_mon_defined; |
97 |
unsigned char week_ndays; |
100 |
unsigned char week_ndays; |
98 |
uint32_t week_1stday; |
101 |
uint32_t week_1stday; |
99 |
unsigned char week_1stweek; |
102 |
unsigned char week_1stweek; |
Lines 651-656
time_output (struct localedef_t *locale, const struct charmap_t *charmap,
Link Here
|
651 |
for (n = 0; n < 12; ++n) |
654 |
for (n = 0; n < 12; ++n) |
652 |
add_locale_wstring (&file, time->walt_mon[n] ?: empty_wstr); |
655 |
add_locale_wstring (&file, time->walt_mon[n] ?: empty_wstr); |
653 |
|
656 |
|
|
|
657 |
/* The ab'alt'mons. */ |
658 |
for (n = 0; n < 12; ++n) |
659 |
add_locale_string (&file, time->ab_alt_mon[n] ?: ""); |
660 |
|
661 |
/* The wide character ab'alt'mons. */ |
662 |
for (n = 0; n < 12; ++n) |
663 |
add_locale_wstring (&file, time->wab_alt_mon[n] ?: empty_wstr); |
664 |
|
654 |
write_locale_data (output_path, LC_TIME, "LC_TIME", &file); |
665 |
write_locale_data (output_path, LC_TIME, "LC_TIME", &file); |
655 |
} |
666 |
} |
656 |
|
667 |
|
Lines 795-800
time_read (struct linereader *ldfile, struct localedef_t *result,
Link Here
|
795 |
STRARR_ELEM (am_pm, 2, 2); |
806 |
STRARR_ELEM (am_pm, 2, 2); |
796 |
STRARR_ELEM (alt_digits, 0, 100); |
807 |
STRARR_ELEM (alt_digits, 0, 100); |
797 |
STRARR_ELEM (alt_mon, 12, 12); |
808 |
STRARR_ELEM (alt_mon, 12, 12); |
|
|
809 |
STRARR_ELEM (ab_alt_mon, 12, 12); |
798 |
|
810 |
|
799 |
case tok_era: |
811 |
case tok_era: |
800 |
/* Ignore the rest of the line if we don't need the input of |
812 |
/* Ignore the rest of the line if we don't need the input of |
Lines 955-960
time_read (struct linereader *ldfile, struct localedef_t *result,
Link Here
|
955 |
memcpy (time->walt_mon, time->wmon, sizeof (time->wmon)); |
967 |
memcpy (time->walt_mon, time->wmon, sizeof (time->wmon)); |
956 |
time->alt_mon_defined = 1; |
968 |
time->alt_mon_defined = 1; |
957 |
} |
969 |
} |
|
|
970 |
/* The same for abbreviated versions. */ |
971 |
if (!ignore_content && !time->ab_alt_mon_defined) |
972 |
{ |
973 |
memcpy (time->ab_alt_mon, time->abmon, sizeof (time->abmon)); |
974 |
memcpy (time->wab_alt_mon, time->wabmon, sizeof (time->wabmon)); |
975 |
time->ab_alt_mon_defined = 1; |
976 |
} |
958 |
return; |
977 |
return; |
959 |
|
978 |
|
960 |
default: |
979 |
default: |