From: tmoran@acm.org
Subject: Re: Interfacing to C library...
Date: Sat, 02 Nov 2002 06:02:15 GMT
Date: 2002-11-02T06:02:15+00:00 [thread overview]
Message-ID: <HTJw9.56355$wG.160470@rwcrnsc51.ops.asp.att.net> (raw)
In-Reply-To: pan.2002.11.02.05.14.57.594236@jps-nospam.net
> struct foo { ... }
> long pass_by_value (struct foo);
Most of the time structs are passed by copy they are probably small (it
being usually unreasonable to copy large objects). So an
Unchecked_Conversion to Interfaces.C.Int, or Interfaces.C.Double, will do
what you want.
If not, and you are using Gnat, look up Pragma C_Pass_By_Copy in the
gnat_rm.html document. For other Ada compilers, look in their docs.
next prev parent reply other threads:[~2002-11-02 6:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 15:38 Interfacing to C library Eric G. Miller
2002-11-01 17:11 ` Robert A Duff
2002-11-01 17:40 ` tmoran
2002-11-02 5:10 ` Eric G. Miller
2002-11-02 6:02 ` tmoran [this message]
2002-11-02 16:10 ` Robert A Duff
2002-11-02 18:35 ` Eric G. Miller
2002-11-02 18:55 ` Robert A Duff
2002-11-02 23:59 ` Eric G. Miller
2002-11-03 16:47 ` Robert A Duff
2002-11-03 18:55 ` Eric G. Miller
2002-11-03 9:28 ` Dale Stanbrough
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox