From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: C array to ada record interface
Date: Thu, 15 Jul 2004 10:36:17 +1000
Date: 2004-07-15T10:36:17+10:00 [thread overview]
Message-ID: <sa4zn62hzsu.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: 404ee0af.0407141517.30cacac7@posting.google.com
>>>>> "Francisco" == Francisco Javier Loma Daza <fjloma@andaluciajunta.es> writes:
Francisco> It may be a FAQ, but I had not succeed to find some info so ...
Francisco> I have a C struct like that
Francisco> struct
Francisco> {
Francisco> int a,b,c:
Francisco> int len;
Francisco> struct b* arr;
Francisco> } A;
What is the b type?
Francisco> And I would love to interface in Ada with a record with
Francisco> a discriminant
Francisco> type B_array(len: Positive) is record
Francisco> arr: array of B(1..len);
Francisco> end record;
Francisco> type A(len: Positive) is
Francisco> a,b,c: Integer;
Francisco> arr: A(len);
Did you really mean to create a recursive type here? Shouldn't this be
B_Array?
Francisco> end record;
Francisco> What representation clauses and interfacing pragmas I
Francisco> need to use? Is there a repository of examples about C
Francisco> interfacing?
--
Brian May <bam@snoopy.apana.org.au>
next prev parent reply other threads:[~2004-07-15 0:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-14 23:17 C array to ada record interface Francisco Javier Loma Daza
2004-07-15 0:36 ` Brian May [this message]
2004-07-15 1:23 ` Jeffrey Carter
2004-07-22 18:02 ` Francisco Javier Loma Daza
2004-07-24 18:48 ` Ludovic Brenta
2004-07-25 17:26 ` Francisco Javier Loma Daza
2004-07-25 19:28 ` tmoran
2004-07-26 21:42 ` Ludovic Brenta
2004-07-27 21:04 ` tmoran
2004-07-27 22:15 ` Martin Dowie
2004-07-28 2:42 ` Robert I. Eachus
2004-07-29 5:56 ` tmoran
2004-07-29 19:58 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox