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 13:44:43 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news-han1.dfn.de!news.fh-hannover.de!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Ada Address = C pointer ? Date: Fri, 26 Oct 2001 23:06:27 +0200 Organization: Enyo's not your organization Message-ID: <87n12e9kmk.fsf@deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:15279 Date: 2001-10-26T23:06:27+02:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) writes: > 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; The second part (on void_p) is wrong. chars_ptr and void * are guaranteed to have the same representation, but there's no such guarantee for your suggested equivalent.