summaryrefslogtreecommitdiff
path: root/lib/hamt.c
Commit message (Collapse)AuthorAgeFilesLines
* hamt: Fix coding errors.Marc Nieper-Wißkirchen2021-04-051-3/+3
| | | | | | | | | | | Reported by Bruno Haible in <https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00047.html> after a Coverity run. * lib/hamt.c (bucket_do_while, hamt_iterator): Add missing derefencing operator and silence a bogus warning on uninitialized variables. * tests/test-hamt.c (test_general): Replace two errorneous assignment operators with comparison operators.
* hamt: New module.Marc Nieper-Wißkirchen2021-04-031-0/+1083
This module provides (persistent) hash array mapped tries. * MODULES.html.sh: Add hamt. * lib/hamt.c: New file. * lib/hamt.h: New file. * modules/hamt: New file. * modules/hamt-tests: New file. * tests/test-hamt.c: New file.