comp.lang.ada
 help / color / mirror / Atom feed
From: fjloma@andaluciajunta.es (Francisco Javier Loma Daza)
Subject: C array to ada record interface
Date: 14 Jul 2004 16:17:28 -0700
Date: 2004-07-14T16:17:28-07:00	[thread overview]
Message-ID: <404ee0af.0407141517.30cacac7@posting.google.com> (raw)

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



             reply	other threads:[~2004-07-14 23:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14 23:17 Francisco Javier Loma Daza [this message]
2004-07-15  0:36 ` C array to ada record interface Brian May
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