comp.lang.ada
 help / color / mirror / Atom feed
* C array to ada record interface
@ 2004-07-14 23:17 Francisco Javier Loma Daza
  2004-07-15  0:36 ` Brian May
  2004-07-15  1:23 ` Jeffrey Carter
  0 siblings, 2 replies; 13+ messages in thread
From: Francisco Javier Loma Daza @ 2004-07-14 23:17 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-07-29 19:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-14 23:17 C array to ada record interface Francisco Javier Loma Daza
2004-07-15  0:36 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox