From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fc7fc1b95198137d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-26 11:09:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Ada Address = C pointer ? Date: Fri, 26 Oct 2001 18:09:12 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1004119752 13328 217.17.192.37 (26 Oct 2001 18:09:12 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Fri, 26 Oct 2001 18:09:12 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:15272 Date: 2001-10-26T18:09:12+00:00 List-Id: * 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;