diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-29 06:15:05 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-29 06:15:05 -0800 |
commit | 5cdd2fd5ff14c113b867df969779c75fca79932e (patch) | |
tree | 65ec24eb1a32105a182837804e532184b7278d3e /eval.c | |
parent | b730e5dce382923990bc4ad76b90da8b9f73100f (diff) | |
download | txr-5cdd2fd5ff14c113b867df969779c75fca79932e.tar.gz txr-5cdd2fd5ff14c113b867df969779c75fca79932e.tar.bz2 txr-5cdd2fd5ff14c113b867df969779c75fca79932e.zip |
* configure (config_flags): New variable, allowing us to
have stricter diagnosis for configure tests.
(have_timegm, need_svid_source, need_bsd_source): New
variables. sys/stat.h test only declares static data and
compiles an object file. Adding tests for timegm, tzset,
setenv and unsetenv.
* eval.c (eval_init): Register new intrinsic, make_time_utc.
* lib.c (make_time_impl): New static function.
(make_time): Reimplemented as call to make_time_impl.
(timegm_hack): New conditionally-defined static function.
(make_time_utc): New function.
* lib.h (make_time_utc): Declared.
* txr.1: make-time-utc documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2548,6 +2548,7 @@ void eval_init(void) reg_fun(intern(lit("time-string-local"), user_package), func_n2(time_string_local)); reg_fun(intern(lit("time-string-utc"), user_package), func_n2(time_string_utc)); reg_fun(intern(lit("make-time"), user_package), func_n7(make_time)); + reg_fun(intern(lit("make-time-utc"), user_package), func_n7(make_time_utc)); reg_fun(intern(lit("errno"), user_package), func_n1o(errno_wrap, 0)); reg_fun(intern(lit("daemon"), user_package), func_n2(daemon_wrap)); |