From: Simon Wright <simon@pushface.org>
Subject: Re: Interfacing between Ada and C: records and structs
Date: Tue, 31 Jul 2012 20:27:07 +0100
Date: 2012-07-31T20:27:07+01:00 [thread overview]
Message-ID: <m2vch3loj8.fsf@nidhoggr.home> (raw)
In-Reply-To: e01280a4-3d74-47da-860b-c9f7cb0d2739@googlegroups.com
awdorrin <awdorrin@gmail.com> writes:
> I am wondering if the Dummy element in the Mutex record is not being
> treated as a null, but as a null pointer, adding 8 bytes to the record
> size.
If you say
type Dummy is null record;
then no space is reserved for the tag.
But if that is OK, what is it _for_? Normally something like this is
needed to pad out parts of a C struct that you don't need to bother
with, but that's clearly not the case here.
next prev parent reply other threads:[~2012-08-07 7:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 16:38 Interfacing between Ada and C: records and structs awdorrin
2012-07-31 17:16 ` Niklas Holsti
2012-07-31 18:44 ` awdorrin
2012-07-31 19:08 ` awdorrin
2012-07-31 19:27 ` Simon Wright [this message]
2012-07-31 19:44 ` awdorrin
2012-07-31 20:46 ` Niklas Holsti
2012-08-01 12:16 ` awdorrin
2012-07-31 19:23 ` Simon Wright
2012-08-02 4:39 ` Shark8
2012-08-02 12:32 ` awdorrin
[not found] <7beb59ba-ca6f-476e-8b39-604196b0b79f@googlegroups.com>
2012-08-01 2:51 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox