]> git.ipfire.org Git - thirdparty/git.git/commit
CodingGuidelines: mention C99 features we can't use
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 10 Oct 2022 20:37:59 +0000 (13:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2022 20:41:12 +0000 (13:41 -0700)
commitd7d850e2b979c2063a7b39c6554233a8af189f3e
tree83a972d66d897d944ab64b314c6341fbb0970193
parent82dd01d81b1babf6714435b80683e756de1a4d64
CodingGuidelines: mention C99 features we can't use

The C99 section of the CodingGuidelines is a good overview of what we
can use, but is sorely lacking in what we can't use. Something that
comes up occasionally is the portability of %z.

Per [1] we couldn't use it for the longest time due to MSVC not
supporting it, but nowadays by requiring C99 we rely on the MSVC
version that does, but we can't use it yet because a C library that
MinGW uses doesn't support it.

1. https://lore.kernel.org/git/a67e0fd8-4a14-16c9-9b57-3430440ef93c@gmail.com/

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