From: Philipp Stephani <p.stephani2@gmail.com>
To: Daniel Colascione <dancol@dancol.org>, emacs-devel@gnu.org
Subject: Re: Why not C99 designated initializer syntax?
Date: Mon, 12 Dec 2016 22:07:05 +0000 [thread overview]
Message-ID: <CAArVCkSVd1XudWFvcW_NxMJfe-q=8guWQf1xesCi6rCSgqpwsg@mail.gmail.com> (raw)
In-Reply-To: <r025twa83j72.fsf@dancol.org>
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
Daniel Colascione <dancol@dancol.org> schrieb am Mo., 12. Dez. 2016 um
22:56 Uhr:
>
> 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.
>
>
Probably just an accident. There doesn't seem to be a ban on C99 designated
initializers; for example, I've added some to emacs-module.c
[-- Attachment #2: Type: text/html, Size: 1406 bytes --]
next prev parent reply other threads:[~2016-12-12 22:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 21:56 Why not C99 designated initializer syntax? Daniel Colascione
2016-12-12 22:07 ` Philipp Stephani [this message]
2016-12-12 22:11 ` Daniel Colascione
2016-12-12 22:29 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkSVd1XudWFvcW_NxMJfe-q=8guWQf1xesCi6rCSgqpwsg@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=dancol@dancol.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.