From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Interfacing to C and void*
Date: Mon, 20 Feb 2006 16:19:44 +0100
Date: 2006-02-20T16:19:44+01:00 [thread overview]
Message-ID: <dtcmmf$cen$1@sunnews.cern.ch> (raw)
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.
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
next reply other threads:[~2006-02-20 15:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 15:19 Maciej Sobczak [this message]
2006-02-20 18:24 ` Interfacing to C and void* Georg Bauhaus
2006-02-20 18:54 ` Jeffrey R. Carter
2006-02-20 19:01 ` Martin Krischik
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