[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why not C99 designated initializer syntax?
From: |
Daniel Colascione |
Subject: |
Why not C99 designated initializer syntax? |
Date: |
Mon, 12 Dec 2016 13:56:33 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Why are we writing code like this?
struct font_driver const nsfont_driver =
{
type: LISPSYM_INITIALLY (Qns),
case_sensitive: true,
...
};
and not like this?
struct font_driver const nsfont_driver =
{
.type = LISPSYM_INITIALLY (Qns),
.case_sensitive = true,
...
};
The former is a deprecated GCC extension. The latter is the standard.
We need C99 these days anyway.
- Why not C99 designated initializer syntax?,
Daniel Colascione <=