On Mon, 21 Oct 2019 at 11:46, Chapman Flack <chap(at)anastigmatix(dot)net> wrote:
>
> I would favor {} in a heartbeat if it were standard, because that
> sucker is an idiom.
>
> Failing that, though, I think I still favor the macro, because
> question (1) seems less fuzzy than question (2), and on "clear",
> the macro wins.
>
Is it possible to define the macro to be {} where supported and {0} where
needed? Something like:
#if ...
#define INIT_ALL_ELEMS_ZERO {}
#else
#define INIT_ALL_ELEMS_ZERO {0}
#endif
Then it's clear the 0 is just there to make certain compilers happy and
doesn't have any actual meaning.