CodingGuidelines: recommend against unportable C99 struct syntax
commit438c2f859b2c8c01c57a6969ec5858c0253cfa69
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 10 Oct 2022 20:38:00 +0000 (10 13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Oct 2022 15:55:01 +0000 (11 08:55 -0700)
treed368331041ba9a09d47f324053d271225004c6d5
parentd7d850e2b979c2063a7b39c6554233a8af189f3e
CodingGuidelines: recommend against unportable C99 struct syntax

Per 33665d98e6b (reftable: make assignments portable to AIX xlc
v12.01, 2022-03-28) forms like ".a.b = *c" can be replaced by using
".a = { .b = *c }" instead.

We'll probably allow these sooner than later, but since the workaround
is trivial let's note it among the C99 features we'd like to hold off
on for now.

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