comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Matthews <ignore@ramatthews.free-online.co.uk>
Subject: Re: misaligned actual cannot be passed by reference
Date: Wed, 07 Dec 2011 14:47:16 +0000
Date: 2011-12-07T14:47:16+00:00	[thread overview]
Message-ID: <3fCdndlJWtDr4ULTnZ2dnUVZ8nidnZ2d@brightview.co.uk> (raw)
In-Reply-To: 625d37e2-4b4b-44a8-bafb-48555713802f@d17g2000yql.googlegroups.com

To share with your C code, this is normally sufficient:

pragma Convention(C, FP_SHARED_BUF_TYPE);

with no need for the representation clause.
GNAT should then give a compatable layout.

In addition, I presume: "POSIX.Mutexes.Descriptor_Of (CMN_SHM.LOCK_MISSION_VARS)"
is needing the address of the parameter - so shouldn't that component of the
record be declared as aliased?


Robert




      parent reply	other threads:[~2011-12-07 14:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-06 14:14 misaligned actual cannot be passed by reference awdorrin
2011-12-06 21:53 ` awdorrin
2011-12-07 14:47 ` Robert Matthews [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox