]> git.ipfire.org Git - thirdparty/git.git/commit
streaming.c: avoid forward declarations
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 5 May 2021 12:33:28 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 May 2021 03:56:02 +0000 (12:56 +0900)
commitb65528360f1153c2f912d272cce18abe56e25562
treec8285d6d5998ed4f86dfa3a2c4a5839dc05cca87
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
streaming.c: avoid forward declarations

Change code added in 46bf043807c (streaming: a new API to read from
the object store, 2011-05-11) to avoid forward declarations of the
functions it uses. We can instead move this code to the bottom of the
file, and thus avoid the open_method_decl() calls.

Aside from the addition of the "static helpers[...]" comment being
added here, and the removal of the forward declarations this is a
move-only change.

The style of the added "static helpers[...]"  comment isn't in line
with our usual coding style, but is consistent with several other
comments used in this file, so let's use that style consistently here.

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