]> git.ipfire.org Git - thirdparty/git.git/commit - hashmap.c
hashmap: use *_entry APIs for iteration
authorEric Wong <e@80x24.org>
Sun, 6 Oct 2019 23:30:38 +0000 (23:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Oct 2019 01:20:11 +0000 (10:20 +0900)
commit87571c3f71ba41d89eef5202f8589daa26f984ca
treed3b072917efce49f3f95d7d48763a8dfc83ef211
parent939af16eac1608766273d3971598dbcc4fe09928
hashmap: use *_entry APIs for iteration

Inspired by list_for_each_entry in the Linux kernel.
Once again, these are somewhat compromised usability-wise
by compilers lacking __typeof__ support.

Signed-off-by: Eric Wong <e@80x24.org>
Reviewed-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 files changed:
attr.c
blame.c
builtin/describe.c
builtin/difftool.c
config.c
hashmap.c
hashmap.h
merge-recursive.c
oidmap.h
revision.c
submodule-config.c
t/helper/test-hashmap.c
t/helper/test-lazy-init-name-hash.c