From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Ada Address = C pointer ?
Date: Fri, 26 Oct 2001 18:09:12 +0000 (UTC)
Date: 2001-10-26T18:09:12+00:00 [thread overview]
Message-ID: <slrn9tj9m1.8s0.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: mailman.1004118513.18362.comp.lang.ada@ada.eu.org
* M. A. Alves wrote:
>Are these equivalences compiler(GNAT)-specific or of the language?
>
> Ada C
> -----------------------
> Address void *
> Address char *
> Null_Address NULL
GNAT. But pragma (Convention, C, ...); does what you expect.
>If they are of the language, where on the ARM it says so?
The char_p equivalent can be found as Interfaces.C.Strings.chars_p;
The void_p equivalent can be found as
type void_p is access all Storage_Array;
pragma (Convention, C, void_p); -- for void_p'Size use chars_p'Size;
next prev parent reply other threads:[~2001-10-26 18:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-26 18:53 Ada Address = C pointer ? M. A. Alves
2001-10-26 18:09 ` Lutz Donnerhacke [this message]
2001-10-26 21:06 ` Florian Weimer
2001-10-26 19:34 ` Mark Johnson
2001-10-26 23:39 ` tmoran
2001-10-29 13:07 ` M. A. Alves
2001-10-29 20:19 ` Matthew Heaney
2001-10-29 23:15 ` tmoran
2001-10-30 10:30 ` M. A. Alves
2001-10-30 19:53 ` tmoran
2001-10-31 13:01 ` M. A. Alves
2001-10-31 14:44 ` Marin David Condic
2001-10-30 9:58 ` M. A. Alves
2001-10-30 12:02 ` Lutz Donnerhacke
2001-10-30 12:53 ` M. A. Alves
2001-10-30 12:56 ` Lutz Donnerhacke
2001-10-30 14:26 ` M. A. Alves
2001-10-30 14:19 ` Matthew Heaney
2001-10-30 14:41 ` M. A. Alves
2001-10-30 17:10 ` Mark Johnson
2001-10-30 18:01 ` M. A. Alves
2001-10-30 20:23 ` tmoran
2001-10-31 13:13 ` M. A. Alves
2001-10-30 19:53 ` tmoran
2001-10-29 23:15 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox