diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-18 10:47:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-18 10:47:14 -0700 |
commit | e21f19001551eddbb8d27acea1327590ce124461 (patch) | |
tree | 20d20e1f3ed7deca262fcd0c2bd366af88715c81 /lib.h | |
parent | c765b773e63b2099a050fef21b5e7f06296af2ec (diff) | |
download | txr-e21f19001551eddbb8d27acea1327590ce124461.tar.gz txr-e21f19001551eddbb8d27acea1327590ce124461.tar.bz2 txr-e21f19001551eddbb8d27acea1327590ce124461.zip |
Adding getenv, setenv and unsetenv.
* lib.c (setenv, unsetenv): Changed static functions to external.
Moved them out of the #if !HAVE_TIMEGM block.
* lib.h (setenv, unsetenv): Declared.
* sysif.c (getenv_wrap, setenv_wrap, unsetenv_wrap): New functions.
(sysif_init): Registered getenv, setenv and unsetenv.
* txr.1: Documented getenv, setenv and unsetenv.
* tl.vim, txr.vim: Regenerated.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -848,6 +848,10 @@ val obj_print(val obj, val stream); val obj_pprint(val obj, val stream); val tostring(val obj); val tostringp(val obj); +#if !HAVE_SETENV +void setenv(const char *name, const char *value, int overwrite); +void unsetenv(const char *name); +#endif val time_sec(void); val time_sec_usec(void); val time_string_local(val time, val format); |