comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Passing Floats Ada->C
Date: 1998/07/28
Date: 1998-07-28T00:00:00+00:00	[thread overview]
Message-ID: <m34sw3ufye.fsf@mheaney.ni.net> (raw)
In-Reply-To: 35BCA22D.DB070D0F@email.mot.com

Dennis Miller <Dennis_Miller-P28917xxx@email.mot.com> writes:

> Has anyone encountered any difficulties in sending float values from Ada
> to C?

The problem I've had in the past is that Float in Ada sometimes means
something else in C, say long float.  Make sure the underlying
representations are the same.

If you're using Ada 95, you shouldn't have a problem if you stick to the
types in package Interfaces.C, and remember to use pragma Convention (C)
on your subprograms.










  parent reply	other threads:[~1998-07-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-27  0:00 Passing Floats Ada->C Dennis Miller
1998-07-27  0:00 ` Rick Stikkers
1998-07-28  0:00 ` Matthew Heaney [this message]
1998-07-28  0:00   ` Keith Thompson
replies disabled

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