From: "Ángel González" <keisial@gmail.com>
To: Ian Pilcher <arequipeno@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Flexible array member initializers
Date: Wed, 08 Jan 2014 23:23:00 -0000 [thread overview]
Message-ID: <52CDDDFB.2060105@gmail.com> (raw)
In-Reply-To: <52CDB80F.2080807@gmail.com>
On 08/01/14 21:41, Ian Pilcher wrote:
> Ideally I could create some sort of generic macro that "casts" (using
> the term very loosely) any static initializer to an array of unsigned
> char that contains its binary representation. Sadly, I don't think
> that's actually possible.
I think you want to use an union, not a flexible array (yes, you will
overallocate for some types, but should be saner).
next prev parent reply other threads:[~2014-01-08 23:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 5:13 Ian Pilcher
2014-01-08 8:59 ` Jonathan Wakely
2014-01-08 20:41 ` Ian Pilcher
2014-01-08 21:00 ` Marc Glisse
2014-01-08 21:46 ` Ian Pilcher
2014-01-08 21:43 ` Jonathan Wakely
2014-01-08 21:49 ` Ian Pilcher
2014-01-08 22:21 ` Jonathan Wakely
2014-01-08 23:23 ` Ángel González [this message]
2014-01-11 2:03 ` Ian Pilcher
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=52CDDDFB.2060105@gmail.com \
--to=keisial@gmail.com \
--cc=arequipeno@gmail.com \
--cc=gcc-help@gcc.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.
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).