From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: Calling C++ from Ada
Date: Sun, 14 May 2006 18:38:05 GMT
Date: 2006-05-14T18:38:05+00:00 [thread overview]
Message-ID: <hOK9g.730388$084.249115@attbi_s22> (raw)
In-Reply-To: <pan.2006.05.14.08.59.44.155698@laposte.net>
Yves Bailly wrote:
>
> Is this approach too nasty ? Is it more or less portable ?
Your assumption that System.Address is equivalent to a C pointer is not
portable among compilers. A better approach might be to have your
imported C creation subprogram take an Interfaces.C.Strings.Chars_Ptr,
and pass an 'Unchecked_Access to Interfaces.C.Strings.To_Chars_Ptr
instead of 'Address.
--
Jeff Carter
"Perfidious English mouse-dropping hoarders."
Monty Python & the Holy Grail
10
next prev parent reply other threads:[~2006-05-14 18:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-13 14:48 Calling C++ from Ada Yves Bailly
2006-05-13 17:02 ` Jeffrey Creem
2006-05-13 19:08 ` Yves Bailly
2006-05-13 19:55 ` Jeffrey Creem
2006-05-14 8:59 ` Yves Bailly
2006-05-14 13:39 ` Jeffrey Creem
2006-05-14 18:38 ` Jeffrey R. Carter [this message]
2006-05-15 15:24 ` rodkay
2006-05-15 16:23 ` Jeffrey Creem
2006-05-16 2:14 ` Gene
2006-05-16 4:31 ` rodkay
2006-05-16 11:47 ` Jeffrey Creem
2006-05-17 4:53 ` rodkay
2006-05-17 6:05 ` Martin Krischik
2006-05-25 5:34 ` rodkay
2006-05-25 11:29 ` Alex R. Mosteo
2006-05-29 3:43 ` Gene
2006-05-29 14:53 ` rodkay
2006-05-29 17:48 ` Martin Krischik
2006-05-13 22:38 ` Craig Carey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox