Ga=EBl Varoquaux wrote:
> Is the syntax :
>=20
> current_color =3D (rgb_color){0, 0, 0};
>=20
> Standard and portable.=20
Yes and no. It's a GCC extension (--> see
info gcc "C Extensions" compound
) that was adopted into C99. C99 is formally "the standard" since its
ratification, but it's an almost purely hypothetical thing in praxis.
> It compiles with gcc 3.3.5 but I do not know
> if it is standard C.
It's not. You'll notice if you tell GCC to disable extensions (-ansi=20
-pedantic, plus some -D flags to re-enable usual functionality of the C=20
library).
|