diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-10-16 07:12:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-10-16 07:12:38 -0700 |
commit | ac6a452df1c5c5c9d2fc3118278fddc913df1faa (patch) | |
tree | 94be782a03773d9722895ed4833b08a3f336d78f /tests/012 | |
parent | 11801dbdc034a43cdb5865ed6e1b55c4dd761e22 (diff) | |
download | txr-ac6a452df1c5c5c9d2fc3118278fddc913df1faa.tar.gz txr-ac6a452df1c5c5c9d2fc3118278fddc913df1faa.tar.bz2 txr-ac6a452df1c5c5c9d2fc3118278fddc913df1faa.zip |
env-hash: now persistent and synced with setenv.
* sysif.c (env_hash): Function renamed to get_env_hash and a
static variable named env_hash introduced.
Function returns a previously allocated hash table, if
it exists, except in compat mode.
(getenv_wrap): Stash the result into the hash also.
(setenv_wrap): Keep the hash up-to-date with the action of
setenv.
(unsetenv_wrap): Also delete from the hash.
(sysif_init): Protect the env_hash variable from gc.
* txr.1: Documented, with compat notes.
Diffstat (limited to 'tests/012')
0 files changed, 0 insertions, 0 deletions