all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Daniel Colascione <dancol@dancol.org>
Cc: Emacs Development <Emacs-devel@gnu.org>
Subject: Re: Why named structs and unions? C11 supports anonymous structs and unions
Date: Sun, 11 Feb 2018 23:28:03 -0800	[thread overview]
Message-ID: <b8889bdc-0b2d-8d63-9d88-03e99e9f21f9@cs.ucla.edu> (raw)
In-Reply-To: <223f1299-8dd8-4c0f-9aed-b216fa913042@email.android.com>

Daniel Colascione wrote:
> I feel like being stuck on C99 and not being able to use C11 would be
> much rarer. Besides: C99 compilers usually supported anonymous structs and
> unions as an extension.

One counterexample is the vendor-supplied compiler on the main server of our 
department, which is running Solaris 5.10 (circa 2005). This compiler is Sun C 
5.9 (circa 2009). Although more recent versions of this compiler do support 
anonymous structs and unions, bug reports are still being filed about the 
feature, e.g., https://community.oracle.com/thread/4106986 dated December 2017. 
So I would say it's still a bit dicey in more-recent versions.

If it were really important to require this C11 feature I suppose we could forge 
ahead and do it and tell laggards to upgrade their compilers or use GCC. But my 
impression is that the feature is mostly just a nicety, at least for Emacs.



  reply	other threads:[~2018-02-12  7:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12  3:14 Why named structs and unions? C11 supports anonymous structs and unions Daniel Colascione
2018-02-12  3:56 ` Paul Eggert
2018-02-12  4:09   ` Daniel Colascione
2018-02-12  7:28     ` Paul Eggert [this message]
2018-02-12 20:22       ` Daniel Colascione
2018-02-12 20:37         ` Paul Eggert
2018-02-12 22:18     ` Richard Stallman
2018-02-12 22:18     ` Richard Stallman

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=b8889bdc-0b2d-8d63-9d88-03e99e9f21f9@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=Emacs-devel@gnu.org \
    --cc=dancol@dancol.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.