From b21d9c695dfb570a459129885063749e6efa561e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 12 Feb 2014 22:09:48 -0800 Subject: Different approach: optional arguments on hash-isec and hash-uni allow for more flexible joining of data from the hash tables. * eval.c (eval_init): Remove hash_guni and hash_gisec. Change registration for hash_uni and hash_isec to three arguments with one optional. * hash.c (hash_uni): Third parameter introduced, join_func. The default behavior changes: in the two argument case, clashing keys prefer the value from hash1 rather than hash2. For this reason, we now iterate over hash2 first, then hash1. (hash_guni): Removed. (hash_isec): Third parameter introduced, join_func. (hash_gisec): Removed. * hash.h (hash_uni, hash_isec): Declarations updated. (hash_guni, hash_gisec): Delarations removed. * txr.1: Documentation updated. --- ChangeLog | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 02a1b139..544d470c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,28 @@ * txr.1: Documented inhash. Also, added surprisingly missing documentation for gethash! +2014-02-12 Kaz Kylheku + + Different approach: optional arguments on hash-isec and hash-uni allow + for more flexible joining of data from the hash tables. + + * eval.c (eval_init): Remove hash_guni and hash_gisec. Change + registration for hash_uni and hash_isec to three arguments with + one optional. + + * hash.c (hash_uni): Third parameter introduced, join_func. + The default behavior changes: in the two argument case, + clashing keys prefer the value from hash1 rather than hash2. + For this reason, we now iterate over hash2 first, then hash1. + (hash_guni): Removed. + (hash_isec): Third parameter introduced, join_func. + (hash_gisec): Removed. + + * hash.h (hash_uni, hash_isec): Declarations updated. + (hash_guni, hash_gisec): Delarations removed. + + * txr.1: Documentation updated. + 2014-02-12 Kaz Kylheku * eval.c (eval_init): Register hash_guni and hash_gisec as intrinsics. -- cgit v1.2.3