From: dhenry <tfc.duke@gmail.com>
Subject: Re: Ada to C interfacing with access on unconstrained array
Date: Wed, 21 Oct 2009 02:29:26 -0700 (PDT)
Date: 2009-10-21T02:29:26-07:00 [thread overview]
Message-ID: <6f97c919-9535-4fa6-939d-9ec2cb927ed5@e34g2000vbc.googlegroups.com> (raw)
In-Reply-To: nospam-586C6A.23294520102009@news.aioe.org
On 21 oct, 05:29, "John B. Matthews" <nos...@nospam.invalid> wrote:
> David: GNAT implements a convenient pragma that's especially helpful for
> this approach. Given a procedure such as
>
> procedure Climb (Coco_Rec : Coco_Type; Length : Positive);
>
> One can export the procedure
>
> pragma Convention(C, Climb);
> pragma Export_Procedure(
> Internal => Climb,
> External => climb,
> Parameter_Types => (Coco_Type, Positive),
> Mechanism => (Value, Value));
Interesting.
But how does this pragma would cope with the access on unconstrained
array?
Yours,
David.
next prev parent reply other threads:[~2009-10-21 9:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 13:07 Ada to C interfacing with access on unconstrained array dhenry
2009-10-20 16:11 ` Dmitry A. Kazakov
2009-10-21 9:25 ` dhenry
2009-10-21 12:09 ` Dmitry A. Kazakov
2009-10-21 12:14 ` Dmitry A. Kazakov
2009-10-20 16:24 ` Adam Beneschan
2009-10-20 18:40 ` tmoran
2009-10-21 3:29 ` John B. Matthews
2009-10-21 9:29 ` dhenry [this message]
2009-10-21 14:16 ` John B. Matthews
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox