summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-16 06:36:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-16 06:36:41 -0700
commitde8bd6233c62718c592694a2b8463e329567d85f (patch)
tree5423d47105d75a96946677a1086c2eb6d412df7f /sysif.h
parentcd22aba61b64883e6026cd1fc31cc2f5a426f314 (diff)
downloadtxr-de8bd6233c62718c592694a2b8463e329567d85f.tar.gz
txr-de8bd6233c62718c592694a2b8463e329567d85f.tar.bz2
txr-de8bd6233c62718c592694a2b8463e329567d85f.zip
env: move function to sysif.c
* lib.c (env_list): Static variable removed; now appears in sysif.c (env): Function removed; now in sysif.c. (obj_init): Don't gc-protect env_list here any more. * lib.h (env): Declaration removed. * match.c: Must include "sysif.h" now for env. * sysif.c (env_list): Static variable moved here. (env): Function moved here. (sysif_init): env_list gc-protected here. * sysif.h (env): Declared.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysif.h b/sysif.h
index d599c737..3f445f0a 100644
--- a/sysif.h
+++ b/sysif.h
@@ -36,6 +36,7 @@ extern val atime_nsec_s, mtime_nsec_s, ctime_nsec_s;
extern val path_s;
val errno_to_file_error(int err);
+val env(void);
val getenv_wrap(val name);
val errno_to_str(int err);
val at_exit_call(val func);