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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,424530a246fbaa56 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-01 21:00:07 PST Path: supernews.google.com!sn-xit-02!supernews.com!xfer13.netnews.com!netnews.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Questions: interfacing to C Date: Tue, 02 Jan 2001 04:54:05 GMT Organization: Deja.com Message-ID: <92rmtb$59q$1@nnrp1.deja.com> References: <978406443.13177.0.nnrp-09.9e98cc46@news.demon.co.uk> <3A515730.D2106823@worldnet.att.net> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Tue Jan 02 04:54:05 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x67.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3542 Date: 2001-01-02T04:54:05+00:00 List-Id: In article <3A515730.D2106823@worldnet.att.net>, James Rogers wrote: > Your two questions seem to be summarized by: "How do I bind to a C > pointer?" > > The answer is to use the package Interfaces.C.Pointers. This > package is described in section B.3.2 of the Ada Reference Manual. I really don't see why Interfaces.C.Pointers is relevant here. Everything that is needed here can likely be found in Annex B. Part of the trouble is that we do not have enough information in the question, what does "shim" mean? One does not interface directly to types, but typically through procedure calls, so what we really need here is the full set of declarations. Note that convention C_Pass_By_Copy is also relevant in this discussion., Sent via Deja.com http://www.deja.com/