comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Interfacing to C: big structures
Date: Wed, 27 Feb 2008 05:23:48 -0800 (PST)
Date: 2008-02-27T05:23:48-08:00	[thread overview]
Message-ID: <3b375a2b-401d-42af-b1fa-47246a16291f@e23g2000prf.googlegroups.com> (raw)
In-Reply-To: fpvirp$fp9$1@jacob-sparre.dk

On 26 Lut, 00:26, "Randy Brukardt" <ra...@rrsoftware.com> wrote:

> Use the Annex B interfacing facilities. The basic idea is to write the C
> types in Ada, add the pragma Convention C to them, and let the Ada compiler
> handle the rest. Is there some reason this doesn't work in this case?

The reason is that I don't care about the internals (data fields and
their layout) of the given structure. The only thing that matters for
me is the set of functions that accept a pointer to "something". I
have problems with mapping this "something" without reverse
engineering it.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com



  reply	other threads:[~2008-02-27 13:23 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 21:17 Interfacing to C: big structures Maciej Sobczak
2008-02-25 23:26 ` Randy Brukardt
2008-02-27 13:23   ` Maciej Sobczak [this message]
2008-02-25 23:26 ` Randy Brukardt
2008-02-25 23:26 ` Randy Brukardt
2008-02-25 23:43 ` Robert A Duff
2008-02-26 13:53   ` Stephen Leake
2008-02-26 21:12     ` Randy Brukardt
2008-02-26  2:36 ` Steve
2008-02-26 12:00 ` Alex R. Mosteo
2008-02-26 14:05   ` Robert A Duff
2008-02-26 15:19     ` Alex R. Mosteo
2008-02-26 15:33       ` Robert A Duff
2008-02-26 16:21         ` Alex R. Mosteo
2008-02-27  1:28           ` Robert A Duff
2008-03-10  1:38             ` David Thompson
2008-02-26 17:35   ` Adam Beneschan
2008-02-26 19:47     ` Simon Wright
2008-02-26 21:14       ` Randy Brukardt
2008-02-27  1:40         ` Robert A Duff
2008-02-27 17:12       ` Adam Beneschan
2008-02-27 20:37         ` Simon Wright
2008-02-28 11:30         ` Alex R. Mosteo
2008-02-28 15:53           ` Robert A Duff
2008-02-29 10:45             ` Alex R. Mosteo
2008-02-27  1:37     ` Robert A Duff
2008-02-27 13:49       ` Maciej Sobczak
replies disabled

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