From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: How to import C pointers to structures?
Date: Mon, 19 May 2014 16:33:56 -0600
Date: 2014-05-19T16:33:56-06:00 [thread overview]
Message-ID: <qFvev.185780$1w1.71327@fx03.iad> (raw)
In-Reply-To: <lle0dv$1gi$1@speranza.aioe.org>
On 19-May-14 16:26, Victor Porton wrote:
>
> How to import it to Ada? We don't know struct_t layout.
You generally *can't* do a real/meaningful import w/o knowing the
layout. You /can/ have an importation of the pointer itself, though
that's not particularly helpful w/o the structure; something like:
Type Structure_Stub is null record
with Convention => C;
Type Structure_Pointer is access Structure_Stub
with Convention => C;
------
I think.
I try to steer clear of C.
next prev parent reply other threads:[~2014-05-19 22:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 22:26 How to import C pointers to structures? Victor Porton
2014-05-19 22:33 ` Shark8 [this message]
2014-05-19 22:44 ` Adam Beneschan
2014-05-20 0:10 ` Shark8
2014-05-20 0:22 ` Adam Beneschan
2014-05-20 6:36 ` Simon Wright
2014-05-20 8:29 ` björn lundin
2014-05-20 19:07 ` Per Sandberg
2014-05-22 13:37 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox