summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-24 06:54:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-24 06:54:34 -0700
commit9a208e2a76ba1c8595a1074e90722a68e70be1b9 (patch)
tree0614a7f54faf47d906fe130d58e17a43ac184e69
parent42b2f3d455d6edb445565d9935eae28ab42b9875 (diff)
downloadtxr-9a208e2a76ba1c8595a1074e90722a68e70be1b9.tar.gz
txr-9a208e2a76ba1c8595a1074e90722a68e70be1b9.tar.bz2
txr-9a208e2a76ba1c8595a1074e90722a68e70be1b9.zip
hash-construct: eliminate redundant intern.
* hash.c (hash_init): register hash-constrct using symbol in hash_construct_s variable that was previously interned rather than result of new call to intern.
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index bb270de9..ab2a0fd9 100644
--- a/hash.c
+++ b/hash.c
@@ -1360,7 +1360,7 @@ void hash_init(void)
reg_fun(intern(lit("make-similar-hash"), user_package), func_n1(make_similar_hash));
reg_fun(intern(lit("copy-hash"), user_package), func_n1(copy_hash));
reg_fun(intern(lit("hash"), user_package), func_n0v(hashv));
- reg_fun(intern(lit("hash-construct"), user_package), func_n2(hash_construct));
+ reg_fun(hash_construct_s, func_n2(hash_construct));
reg_fun(intern(lit("hash-from-pairs"), user_package), func_n1v(hash_from_pairs_v));
reg_fun(intern(lit("hash-list"), user_package), func_n1v(hash_list));
reg_fun(intern(lit("gethash"), user_package), func_n3o(gethash_n, 2));