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,424530a246fbaa56 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-01 21:16:03 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!extropy.demon.co.uk!not-for-mail From: "Julian Morrison" Newsgroups: comp.lang.ada Subject: Re: Questions: interfacing to C Date: Tue, 02 Jan 2001 05:15:58 +0000 Message-ID: <978412551.18903.0.nnrp-10.9e98cc46@news.demon.co.uk> References: <978406443.13177.0.nnrp-09.9e98cc46@news.demon.co.uk> <3A515730.D2106823@worldnet.att.net> <92rmtb$59q$1@nnrp1.deja.com> NNTP-Posting-Host: extropy.demon.co.uk X-NNTP-Posting-Host: extropy.demon.co.uk:158.152.204.70 X-Trace: news.demon.co.uk 978412551 nnrp-10:18903 NO-IDENT extropy.demon.co.uk:158.152.204.70 X-Complaints-To: abuse@demon.net User-Agent: Pan/0.9.2 (Unix) X-No-Productlinks: Yes Xref: supernews.google.com comp.lang.ada:3543 Date: 2001-01-02T05:15:58+00:00 List-Id: "Robert Dewar" wrote: > 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. I'm trying to "pragma Import" some C functions (a subset of OpenSSL's crypto stuff, to be exact) and I have to build Ada equivalents of the structs it requires and sometimes returns, so I can pass them around and poke about inside (eg: to set up a RSA key struct from a received binary public-key). I'm trying to figure the limits of what the language will do for me as a freebie - as versus what I have to manually convert. > Note that convention C_Pass_By_Copy is also relevant in this > discussion., Where in the ARM is that one defined? I can't find the dratted thing. PS, to you and anyone else who's responded, thanks :-)