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: a07f3367d7,d8ff1403929a72c0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.186.143 with SMTP id cs15mr13891299qab.3.1343892130544; Thu, 02 Aug 2012 00:22:10 -0700 (PDT) Received: by 10.224.177.12 with SMTP id bg12mr12263584qab.0.1343823367587; Wed, 01 Aug 2012 05:16:07 -0700 (PDT) Path: a15ni1561480qag.0!nntp.google.com!r1no2213102qas.0!news-out.google.com!a15ni21276933qag.0!nntp.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: Interfacing between Ada and C: records and structs Date: Wed, 1 Aug 2012 05:16:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <296e271a-967b-4dfb-8dca-f278ecfae03d@googlegroups.com> <5813d3d2-8a9f-4a08-bf09-db3c62847593@googlegroups.com> <38e1e122-b788-4863-88ce-6b1fd5372e43@googlegroups.com> NNTP-Posting-Host: 192.35.35.36 Mime-Version: 1.0 X-Trace: posting.google.com 1343823366 23578 127.0.0.1 (1 Aug 2012 12:16:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 1 Aug 2012 12:16:06 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.35.35.36; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-08-01T05:16:06-07:00 List-Id: On Tuesday, July 31, 2012 4:46:34 PM UTC-4, Niklas Holsti wrote: > > If the goal is to force passing by reference, another way is to make the > Mutex type limited: > > type Mutex is limited record > Mutex : aliased POSIX.C.pthread_mutex_t; > end record; > > Being "limited" should not increase the size of the record. But it > forbids some operations on the type, chiefly ":=". I am a bit hesitant to change the Florist library code in my project. But from looking at the Florist SourceForge website, it doesn't look like this API is actively developed by the open source community any longer. For now, I think I'll keep padding in my C-code to match up to the memory space generated in Ada. I'm starting to get too 'distracted' from the main goal of running gnatpp on this legacy code. :) Thanks!