From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: C to Ada
Date: Mon, 20 Jan 2003 19:28:56 +0000
Date: 2003-01-20T19:28:56+00:00 [thread overview]
Message-ID: <q4YW9.2972$Ts5.29214@newsfep4-win.server.ntli.net> (raw)
-- Apologise if this appears twice, these news servers are a pita!!!
Hi,
How do you map something like this to Ada (for a binding)? It's
probable that I'll only be working with GNAT on the Linux front (it's
all there is), so a GNAT specific option although not ideal, is acceptable.
/* Open the shared object FILE and map it in; return a handle that can
be passed to `dlsym' to get symbol values from it. */
extern void *dlopen (__const char *__file, int __mode) __THROW;
I know rougly how to map the __file, and __mode params but am not sure
how to deal with the void * or in this case the throw. This is taken
from dlfcn.h which is the header for dynamic library support in Linux.
If anyone already has a (GMGPL) binding to this library and they'd like
to share, please let me know, it'll save me making one. In any event
how do you translate this C code so it can be called from Ada?
After I get a wee thin binding working, I'm going to make it a little
thicker and toss it into the open.
Cheers,
Chris
--
for personal replies change spamoff to chris
next reply other threads:[~2003-01-20 19:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 19:28 chris.danx [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-23 22:12 C to Ada Brian May
2006-11-24 2:28 ` rodkay
2006-11-25 22:18 ` Brian May
2006-11-25 23:52 ` rodkay
2006-11-26 15:45 ` Robert A Duff
2006-11-26 18:12 ` Jeffrey Creem
2006-11-26 19:00 ` Martin Krischik
1997-02-23 0:00 Cliff Lim
1997-02-27 0:00 ` David Wheeler
1996-10-30 0:00 Eiffel and Java + Ada dispatching Jon S Anthony
1996-11-04 0:00 ` Don Harrison
1996-11-04 0:00 ` C to Ada Ali Mirhosseini
1996-11-04 0:00 ` Matthew Daniel
1996-11-04 0:00 ` Robert Dewar
1995-04-07 0:00 c to ada JH Lee
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox