]> git.ipfire.org Git - thirdparty/git.git/commit
streaming.c: remove {open,close,read}_method_decl() macros
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 5 May 2021 12:33:30 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 May 2021 03:56:06 +0000 (12:56 +0900)
commitbc062ad001f31a466d9aa3987005e34b3d9bbff4
tree8e8bdace5bf383cba6d62a335e6ac525ab7bb0a2
parent0d9af06e36d2e88e5e370c23e876a835fcf8b7ce
streaming.c: remove {open,close,read}_method_decl() macros

Remove the {open,close,read}_method_decl() macros added in
46bf043807c (streaming: a new API to read from the object store,
2011-05-11) in favor of inlining the definition of the arguments of
these functions.

Since we'll end up using them via the "{open,close,read}_istream_fn"
types we don't gain anything in the way of compiler checking by using
these macros, and as of preceding commits we no longer need to declare
these argument lists twice. So declaring them at a distance just
serves to make the code less readable.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
streaming.c