From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Ada address of operator?
Date: 1999/02/11
Date: 1999-02-11T00:00:00+00:00 [thread overview]
Message-ID: <m3emnwhk4y.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36C02FFC.458368B1@aston.ac.uk
Danny <clarked@aston.ac.uk> writes:
> I'm trying to use a C library in an Ada function and a typical prototype
> from this library would be
>
> struct AType;
> struct AnotherType;
>
> int getObject( AType *pType, AnotherType **ppAnotherType );
If you use Import_Valued_Procedure (in GNAT), then you may not need to
use pointers at all:
procedure Get_Object
(Return_Value : out Int;
In_Param : in A_Type;
Out_Param : out Another_Type);
pragma Import_Valued_Procedure (Get_Object, "getObject");
--or something like that
prev parent reply other threads:[~1999-02-11 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-09 0:00 Ada address of operator? Danny
1999-02-09 0:00 ` Niklas Holsti
1999-02-10 0:00 ` Nick Roberts
1999-02-12 0:00 ` Nick Roberts
1999-02-11 0:00 ` Matthew Heaney [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