From: Daniel Colascione <dancol@dancol.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Emacs Development <Emacs-devel@gnu.org>
Subject: Re: Why named structs and unions? C11 supports anonymous structs and unions
Date: Mon, 12 Feb 2018 12:22:53 -0800 [thread overview]
Message-ID: <65cfb499-1ef2-b12f-bc12-4063d879d33d@dancol.org> (raw)
In-Reply-To: <b8889bdc-0b2d-8d63-9d88-03e99e9f21f9@cs.ucla.edu>
On 02/11/2018 11:28 PM, Paul Eggert wrote:
> 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.
That's unfortunate.
> 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.
If there would be real people adversely impacted by a C11 requirement,
we can hold off a little while. The union stuff is merely ugly; it's not
a severe problem. I'd definitely like to move to C11 and anonymous inner
structures eventually though.
next prev parent reply other threads:[~2018-02-12 20:22 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
2018-02-12 20:22 ` Daniel Colascione [this message]
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=65cfb499-1ef2-b12f-bc12-4063d879d33d@dancol.org \
--to=dancol@dancol.org \
--cc=Emacs-devel@gnu.org \
--cc=eggert@cs.ucla.edu \
/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.