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-Thread: 103376,ac6f6c30c45f808a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!news-FFM2.ecrc.net!noris.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Message-ID: <41EBB998.B2DFBF5C@alfred-hilscher.de> Date: Mon, 17 Jan 2005 14:11:52 +0100 From: Alfred Hilscher Organization: none X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada equivalent for C-pointer? References: <41E7F653.2F899F47@alfred-hilscher.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 17 Jan 2005 14:12:39 MET NNTP-Posting-Host: 6cabe78a.newsread4.arcor-online.net X-Trace: DXC=UT242M_IPmgGI7?jFVGnfc:ejgIfPPlddjW\KbG]kaMhFYk:AnJB[Cm;3gUaBbjIkfWEh14DWb8Dh52nT;FHS6`aCL_2`S=LURm X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:7865 Date: 2005-01-17T14:12:39+01:00 List-Id: Alfred Hilscher schrieb: > > I want to interface to a C-function expecting a "far *", what have I to > pass: an "access all ..." or "System.Address"? Are there differences > between access and address, or are their internal representations equal? > I use GNAT 3.15p. > > > ----------------------------------------------------- > To send me mail, please replace "Spam" by "Jedermann" > ----------------------------------------------------- Thanks to all of you. What I do is to write some bindings for a windows dll. The C-header looks like this: int function (far *xy); As Nick stated, in the flat model of windows a "far" and a "near" would be the same. So I will declare it as an "access" type (ev. with the "pragma Convention (C, C_Pointer);").