comp.lang.ada
 help / color / mirror / Atom feed
* What should be convention C?
@ 2014-07-24 16:34 Victor Porton
  2014-07-24 16:50 ` Niklas Holsti
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Porton @ 2014-07-24 16:34 UTC (permalink / raw)


Suppose we need to interface a procedure C_Procedure which receives a 
pointer to a record C_Record.

Is Convention=>C needed for both of the below? Or just to one (which?)

type C_Record is
   record
      A: unsigned;
      B: unsigned;
   end record
     with Convention=>C;

procedure C_Procedure(X: access C_Record)
  with Convention=>C;

-- 
Victor Porton - http://portonvictor.org

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

end of thread, other threads:[~2014-07-24 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-24 16:34 What should be convention C? Victor Porton
2014-07-24 16:50 ` Niklas Holsti

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