Mercurial > hg > octave-jordi > gnulib-hg
comparison modules/strftime @ 18060:ea0b31e02258
fprintftime, strftime: use timezone_t args
* NEWS: Document the change.
* lib/fprintftime.h (fprintftime):
* lib/strftime.c (extra_args) [my_strftime]:
* lib/strftime.h (nstrftime):
Time zone arg is now of type timezone_t, not int.
* lib/strftime.c (mktime_z) [_LIBC]: New macro.
(__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
(my_strftime) [emacs && !my_strftime]:
(emacs_strftimeu) [emacs && !FPRINTFTIME]:
Remove; Emacs doesn't need this any more.
(HAVE_TZSET) [my_strftime]: Unset, since we no longer want
fprintftime and nstrftime to call tzset.
(ut) [!my_strftime]: Remove, replacing with ...
(tz) [!my_stftime]: ... this new macro. All uses changed.
(strftime_case_): Use localtime_rz and mktime_z instead
of localtime_r and mktime.
* modules/fprintftime (Depends-on): Add time_rz.
* modules/strftime (Depends-on): Add time_rz. Remove time_r.
* tests/test-strftime.c (main): Adjust to new nstrftime API.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 23 Jul 2015 18:28:13 -0700 |
parents | 83f1d4430d74 |
children |
comparison
equal
deleted
inserted
replaced
18059:20ad7d4822c8 | 18060:ea0b31e02258 |
---|---|
8 m4/strftime.m4 | 8 m4/strftime.m4 |
9 | 9 |
10 Depends-on: | 10 Depends-on: |
11 extensions | 11 extensions |
12 stdbool | 12 stdbool |
13 time_r | 13 time_rz |
14 | 14 |
15 configure.ac: | 15 configure.ac: |
16 gl_FUNC_GNU_STRFTIME | 16 gl_FUNC_GNU_STRFTIME |
17 | 17 |
18 Makefile.am: | 18 Makefile.am: |