From: "Julian Morrison" <julian@extropy.demon.co.uk>
Subject: Re: Questions: interfacing to C
Date: Tue, 02 Jan 2001 05:15:58 +0000
Date: 2001-01-02T05:15:58+00:00 [thread overview]
Message-ID: <978412551.18903.0.nnrp-10.9e98cc46@news.demon.co.uk> (raw)
In-Reply-To: 92rmtb$59q$1@nnrp1.deja.com
"Robert Dewar" <robert_dewar@my-deja.com> wrote:
> I really don't see why Interfaces.C.Pointers is relevant here.
> Everything that is needed here can likely be found in Annex B.
>
> Part of the trouble is that we do not have enough information in the
> question, what does "shim" mean? One does not interface directly to
> types, but typically through procedure calls, so what we really need
> here is the full set of declarations.
I'm trying to "pragma Import" some C functions (a subset of OpenSSL's
crypto stuff, to be exact) and I have to build Ada equivalents of the
structs it requires and sometimes returns, so I can pass them around and
poke about inside (eg: to set up a RSA key struct from a received binary
public-key). I'm trying to figure the limits of what the language will do
for me as a freebie - as versus what I have to manually convert.
> Note that convention C_Pass_By_Copy is also relevant in this
> discussion.,
Where in the ARM is that one defined? I can't find the dratted thing.
PS, to you and anyone else who's responded, thanks :-)
next prev parent reply other threads:[~2001-01-02 5:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-02 3:34 Questions: interfacing to C Julian Morrison
2001-01-02 4:19 ` James Rogers
2001-01-02 4:54 ` Robert Dewar
2001-01-02 5:15 ` Julian Morrison [this message]
2001-01-02 4:56 ` Julian Morrison
2001-01-02 4:32 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox