Commit graph

13 commits

Author SHA1 Message Date
Nathan Fisher
ebf8b1c901 Add test/runner.c; Fix test failure due to allocating wrong size for linkmap; Overall cleanup; 2024-04-17 03:05:41 -04:00
f4e9b80737 Minor refactor and formatting changes 2024-02-11 01:09:21 -05:00
Nathan Fisher
ee7c9b1b5d Change linkmap structure to handle collisions by placing into the
next free bucket rather than by using a linked list structure. Fix
bug where the filename was being freed in linkmap buckets, even
though the data was owned by the caller.
2023-09-14 22:17:11 -04:00
f05040ff2b Add test for get_or_add for linkmap 2023-08-22 22:37:59 -04:00
0a210b4e7e Fix UB in load_sha256 test caused by accessing incorrect union field 2023-08-22 13:17:54 -04:00
Nathan Fisher
29cc81ccae Add test for linkmap init/deinit; Fix bug in linkmap deinit; 2023-08-19 19:42:00 -04:00
Nathan Fisher
ed9648ff78 Replace linklist with linkmap and remove former completely. Also
remove generic hashmap implementation in favor of linkmap.
2023-08-18 12:37:24 -04:00
e372af0c42 Return a valid target when adding to linkmap if it exists 2023-08-18 11:00:30 -04:00
e266346bf2 Insert new buckets into linked list for for linkmap 2023-08-18 10:42:29 -04:00
Nathan Fisher
6a58dd2a63 Ensure we find a bucket for storing link info after hash collisions; Fix
`install` make target by adding path to `haggis.h`
2023-08-18 00:23:02 -04:00
Nathan Fisher
4149c4275f Left comment note for required functionality 2023-08-17 23:28:25 -04:00
Nathan Fisher
fcdcd40e95 Add haggis_linkmap_get_or_add 2023-08-17 23:26:53 -04:00
69107b2c80 Progress on new linkmap structure, for tracking hardlinks 2023-08-17 11:45:59 -04:00