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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8ecbc35ea893182f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Interfacing to C: big structures Date: Wed, 27 Feb 2008 05:23:48 -0800 (PST) Organization: http://groups.google.com Message-ID: <3b375a2b-401d-42af-b1fa-47246a16291f@e23g2000prf.googlegroups.com> References: NNTP-Posting-Host: 85.3.255.124 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1204118628 886 127.0.0.1 (27 Feb 2008 13:23:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 27 Feb 2008 13:23:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=85.3.255.124; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20125 Date: 2008-02-27T05:23:48-08:00 List-Id: On 26 Lut, 00:26, "Randy Brukardt" wrote: > Use the Annex B interfacing facilities. The basic idea is to write the C > types in Ada, add the pragma Convention C to them, and let the Ada compiler > handle the rest. Is there some reason this doesn't work in this case? The reason is that I don't care about the internals (data fields and their layout) of the given structure. The only thing that matters for me is the set of functions that accept a pointer to "something". I have problems with mapping this "something" without reverse engineering it. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com