comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Interfacing to C and void*
Date: Mon, 20 Feb 2006 20:01:31 +0100
Date: 2006-02-20T20:01:31+01:00	[thread overview]
Message-ID: <1324118.dmjBZp3eKX@linux1.krischik.com> (raw)
In-Reply-To: dtcmmf$cen$1@sunnews.cern.ch

Maciej Sobczak wrote:

> Hi,
> 
> Suppose I have the following two C functions:
> 
> void * factory();
> void sink(void *p);
> 
> I use them this way:
> 
> void *someObject = factor();
> sink(someObject);
> 
> 
> What is the recommended approach to interfacing to such functions from
> Ada? I cannot find anything (in part B of AARM) that would help with
> void*. Of course, I could wrap these functions into something that uses
> long values (or some other tokens) and appropriate mapping at the level
> of the wrapper, but I still hope there is more direct way.

http://en.wikibooks.org/wiki/Ada_Programming/Memory#Where_is_void.2A.3F

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  parent reply	other threads:[~2006-02-20 19:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20 15:19 Interfacing to C and void* Maciej Sobczak
2006-02-20 18:24 ` Georg Bauhaus
2006-02-20 18:54   ` Jeffrey R. Carter
2006-02-20 19:01 ` Martin Krischik [this message]
2006-02-20 19:41   ` Martin Dowie
2006-02-21  8:09     ` Alex R. Mosteo
2006-02-21 18:47     ` Martin Krischik
replies disabled

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