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,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!skynet.be!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read3.inet.fi.POSTED!53ab2750!not-for-mail From: Lauri Ora User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Default rep specs for record types - documented?? References: <1131118073.282094.236790@f14g2000cwb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 05 Nov 2005 04:07:11 GMT NNTP-Posting-Host: 80.223.245.232 X-Complaints-To: abuse@inet.fi X-Trace: read3.inet.fi 1131163631 80.223.245.232 (Sat, 05 Nov 2005 06:07:11 EET) NNTP-Posting-Date: Sat, 05 Nov 2005 06:07:11 EET Organization: Sonera corp Internet services Xref: g2news1.google.com comp.lang.ada:6226 Date: 2005-11-05T04:07:11+00:00 List-Id: Ed Falis wrote: > On Fri, 04 Nov 2005 21:26:49 -0500, Anonymous Coward > wrote: >> In article , Lauri Ora wrote: >>> Some versions of GNAT also has option -gnatR1 (List rep info), which >>> gives you similar output: >> That is a very useful option. I wish I had known about it sooner. Is >> there a similar switch for C code? It would make interface coding so >> much easier if I could generate this output for C types before >> constructing the corrosponding ADA interface. > But if you order the components the same in both languages, and use > pragma Convention (C, ...) on the Ada side, the Ada record layout will > match the C struct layout. Which types does this work for? Those defined in Interfaces.C? -Lauri