unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why not C99 designated initializer syntax?
@ 2016-12-12 21:56 Daniel Colascione
  2016-12-12 22:07 ` Philipp Stephani
  2016-12-12 22:29 ` Paul Eggert
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Colascione @ 2016-12-12 21:56 UTC (permalink / raw)
  To: emacs-devel


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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-12 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-12 21:56 Why not C99 designated initializer syntax? Daniel Colascione
2016-12-12 22:07 ` Philipp Stephani
2016-12-12 22:11   ` Daniel Colascione
2016-12-12 22:29 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).