From: Simon Wright <simon@pushface.org>
Subject: Re: C code to Ada
Date: 21 Jan 2003 06:18:33 +0000
Date: 2003-01-21T06:18:33+00:00 [thread overview]
Message-ID: <x7vfzrnowjq.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3E2CAFED.4080705@acm.org
Jeffrey Carter <jrcarter@acm.org> writes:
> function Dlsym (File : Handle; Symbol : ICS.Chars_Ptr) return Handle;
The function return corresponding to a subprogram is an
access-to-subprogram (probably with convention C -- certainly a thin
pointer). I would have thought you'd need several overloadings, which
would probably have to be supplied by the user:
type p is procedure (x : integer);
pragma convention (c, p);
type f is function return integer;
pragma convention (c, f);
type ip is access all integer;
pragma convention (c, ip); -- OTT for plain integers, I guess
function dlsym (in_library : handle; named : ics.chars_ptr) return p;
function dlsym (in_library : handle; named : ics.chars_ptr) return f;
function dlsym (in_library : handle; named : ics.chars_ptr) return ip;
pragma import (c, dlsym, "dlsym");
next prev parent reply other threads:[~2003-01-21 6:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 18:44 C code to Ada chris.danx
2003-01-20 21:33 ` sk
2003-01-20 21:43 ` chris.danx
2003-01-20 22:56 ` James S. Rogers
2003-01-20 23:05 ` chris.danx
2003-01-21 2:17 ` Jeffrey Carter
2003-01-20 23:32 ` sk
2003-01-21 0:56 ` chris.danx
2003-01-21 1:26 ` sk
2003-01-21 15:49 ` Frank J. Lhota
2003-01-22 1:05 ` chris.danx
2003-01-21 2:27 ` Jeffrey Carter
2003-01-21 2:55 ` sk
2003-01-21 19:33 ` Jeffrey Carter
2003-01-21 6:18 ` Simon Wright [this message]
[not found] ` <3E2C6B2B.5090600@noname.com>
2003-01-20 21:39 ` sk
2003-01-21 1:23 ` sk
2003-01-25 21:28 ` chris.danx
2003-01-26 2:16 ` sk
2003-01-26 3:04 ` sk
[not found] ` <3E33502D.7030503@noname.com>
2003-01-26 5:37 ` sk
2003-01-23 8:00 ` sk
2003-01-24 18:03 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox