comp.lang.ada
 help / color / mirror / Atom feed
* Interfacing to C and void*
@ 2006-02-20 15:19 Maciej Sobczak
  2006-02-20 18:24 ` Georg Bauhaus
  2006-02-20 19:01 ` Martin Krischik
  0 siblings, 2 replies; 7+ messages in thread
From: Maciej Sobczak @ 2006-02-20 15:19 UTC (permalink / 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/



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-21 18:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2006-02-20 19:41   ` Martin Dowie
2006-02-21  8:09     ` Alex R. Mosteo
2006-02-21 18:47     ` Martin Krischik

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