all messages for Emacs-related lists mirrored at yhetil.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 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.