aboutsummaryrefslogtreecommitdiff
path: root/COPYING3
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-02-26 09:41:44 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-02-26 09:41:44 +0000
commitbe7f7a7503ef2dc45243bac4843ead3a599e9674 (patch)
treeb109420fff9e3d64e801bc60c01f8529444111ad /COPYING3
parentd91ab868e147a93e28a30a08beb9275ae7e1d37b (diff)
downloadnewlib-be7f7a7503ef2dc45243bac4843ead3a599e9674.zip
newlib-be7f7a7503ef2dc45243bac4843ead3a599e9674.tar.gz
newlib-be7f7a7503ef2dc45243bac4843ead3a599e9674.tar.bz2
* libc/time/strftime.c: Add support for era and alt_digits data from
LC_TIME locale category. Conditionalize using _WANT_C99_TIME_FORMATS flag. (STRTOUL): Define differently for building strftime or wcsftime. (STRCPY): Ditto. (STRCHR): Ditto. (STRLEN): Ditto. (CHECK_LENGTH): Define to simplify code. (era_info_t): New type to store era info. (get_era_info): New function to fetch era info matching incoming struct tm. (free_era_info): New function to free era info. (alt_digits_t): New type to store alternative digits. (get_alt_digits): New function to convert alt_digits string into alt_digits_t structure. (free_alt_digits): New function to free alt_digits info. (conv_to_alt_digits): New function to convert unsigned value into alternative digits. (strftime): Conditionalize on _WANT_C99_TIME_FORMATS. If _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function providing era_info and alt_digits pointers and call ... (__strftime): Rename from strftime and make static if _WANT_C99_TIME_FORMATS is defined. Add parameters for era_info and alt_digits pointers. Handle conversion modifiers according to POSIX-1.2008. Redefine %F and %Y according to POSIX. Add default case to allow to bail out on invalid conversion specifiers. * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's config.h. * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
Diffstat (limited to 'COPYING3')
0 files changed, 0 insertions, 0 deletions