reftable/block: introduce macro to initialize `struct block_iter`
commita8305bc6d8eb55cf52264964c8fc0289b72f2fd8
authorPatrick Steinhardt <ps@pks.im>
Mon, 11 Dec 2023 09:08:07 +0000 (11 10:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Dec 2023 15:23:17 +0000 (11 07:23 -0800)
treeb42facff286a99ea07ac7b5abb294b54a2843c27
parent829231dc203f777a32ebdbbaf66e7661a21ac74a
reftable/block: introduce macro to initialize `struct block_iter`

There are a bunch of locations where we initialize members of `struct
block_iter`, which makes it harder than necessary to expand this struct
to have additional members. Unify the logic via a new `BLOCK_ITER_INIT`
macro that initializes all members.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/block.c
reftable/block.h
reftable/block_test.c
reftable/iter.h
reftable/reader.c