diff options
author | Andy Wingo <wingo@pobox.com> | 2015-10-25 10:36:25 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2015-10-25 10:43:26 +0000 |
commit | e676e48047b6c2ff7a1a60a541e6e0c92212353f (patch) | |
tree | d08a1ec48a82e5ad2f79775ac2526a6398185187 /lib/regex_internal.h | |
parent | f63093c80179f4a0d1ff7b00ccf7d813f43b37dd (diff) | |
download | guile-wip-stime.tar.gz |
Adapt stime.c to gnulib updateswip-stime
* libguile/stime.c: Rely on gnulib to provide time.h and strptime.
(timet): Remove this internal define; replaced with time_t.
(scm_from_struct_tm): Rename from filltime. Take the zone to set as
an SCM.
(scm_to_timezone, scm_struct_tm_zone_name): New helpers.
(scm_to_struct_tm_and_timezone): Rename from bdtime2c and parse out a
timezone_t as well.
(scm_localtime): Use localtime_rz to avoid having to call tzset.
(scm_gmtime): Use gmtime_r.
(scm_mktime): Use mktime_z.
(scm_strftime): Use the timezone_t argument to nstrftime. Use
nstrftime with a NULL buffer to measure how big of a buffer to
allocate.
(scm_strptime): Use scm_from_struct_tm.
Diffstat (limited to 'lib/regex_internal.h')
0 files changed, 0 insertions, 0 deletions