summaryrefslogtreecommitdiffstats
path: root/hash.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-23 20:45:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-23 20:45:54 -0800
commit026acf026747478ed25f20671b43c084dd0cbff8 (patch)
treef9cf51f253ce4e572e3a5872d0700ff69bf03a2e /hash.h
parent7394c87e3cc11fdb0b7df884603b183df1c41eda (diff)
downloadtxr-026acf026747478ed25f20671b43c084dd0cbff8.tar.gz
txr-026acf026747478ed25f20671b43c084dd0cbff8.tar.bz2
txr-026acf026747478ed25f20671b43c084dd0cbff8.zip
Adding clearhash function.
This is needed for an upcoming bugfix, so why not expose it as an intrinsic. * hash.c (clearhash): New function. (hash_init): clearhash intrinsic registered. * hash.h (clearhash): Declared. * txr.1: Documented clearhash.
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.h b/hash.h
index a0c40797..0f0db6df 100644
--- a/hash.h
+++ b/hash.h
@@ -39,6 +39,7 @@ val gethash_f(val hash, val key, loc found);
val sethash(val hash, val key, val value);
val pushhash(val hash, val key, val value);
val remhash(val hash, val key);
+val clearhash(val hash);
val hash_count(val hash);
val get_hash_userdata(val hash);
val set_hash_userdata(val hash, val data);