comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Access Type
Date: Fri, 24 Dec 2010 22:06:51 +0000
Date: 2010-12-24T22:06:51+00:00	[thread overview]
Message-ID: <m2vd2i966c.fsf@pushface.org> (raw)
In-Reply-To: 3af2d3d1-ede9-4255-a31b-c5f66c6cee2e@c2g2000yqc.googlegroups.com

kug1977 <kug1977@web.de> writes:

> I will pass this to Openfirmware which is like a 32-bit C. So I use
>
>      type Ci_Args is record
>          Service         : t_OFW_Service_Name_Access;
>          ...
>       end record;
>       pragma Convention (C, Ci_Args); -- represent CI_Args as a C-
> style struct
>
>       Arg   : Ci_Args;
>
> I hope this will prevent the compiler from using something else than a
> 32-bit Address
> for the Service entry.

I think you should also add

   pragma Convention (C, t_OFW_Service_Name_Access);



  reply	other threads:[~2010-12-24 22:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24 16:36 Access Type kug1977
2010-12-24 17:30 ` Robert A Duff
2010-12-24 20:59   ` kug1977
2010-12-24 22:06     ` Simon Wright [this message]
2010-12-27  1:50     ` Ludovic Brenta
2010-12-27 12:29       ` Simon Wright
2010-12-27 17:53         ` Ludovic Brenta
2010-12-27 18:15           ` Simon Wright
2010-12-27 20:03             ` Pascal Obry
2010-12-28 20:08               ` kug1977
2010-12-28 23:52                 ` Simon Wright
2010-12-29  8:46                   ` kug1977
2010-12-29 15:18                     ` Simon Wright
2010-12-29 15:27                       ` Ludovic Brenta
replies disabled

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