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,d9e66bfe9beb10b9,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: fjloma@andaluciajunta.es (Francisco Javier Loma Daza) Newsgroups: comp.lang.ada Subject: C array to ada record interface Date: 14 Jul 2004 16:17:28 -0700 Organization: http://groups.google.com Message-ID: <404ee0af.0407141517.30cacac7@posting.google.com> NNTP-Posting-Host: 80.102.9.183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1089847049 13186 127.0.0.1 (14 Jul 2004 23:17:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Jul 2004 23:17:29 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:2176 Date: 2004-07-14T16:17:28-07:00 List-Id: It may be a FAQ, but I had not succeed to find some info so ... I have a C struct like that struct { int a,b,c: int len; struct b* arr; } A; And I would love to interface in Ada with a record with a discriminant type B_array(len: Positive) is record arr: array of B(1..len); end record; type A(len: Positive) is a,b,c: Integer; arr: A(len); end record; What representation clauses and interfacing pragmas I need to use? Is there a repository of examples about C interfacing? Thanks in advance