comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: Passing float values to C
Date: Sat, 12 Feb 2005 20:59:53 +0100
Date: 2005-02-12T20:59:53+01:00	[thread overview]
Message-ID: <1603285.ASpjRijX0L@linux1.krischik.com> (raw)
In-Reply-To: u7jldodlv.fsf@obry.org

Pascal Obry wrote:

> 
> tmoran@acm.org writes:
> 
>> >       procedure cprintfs(Variable : Interfaces.C.Strings.chars_ptr; val
>> > : Interfaces.C.short );
>> >       pragma Import(C, cprintfs, "cprintfs");
>>   That says you are passing a short float, val.
> 
> No, Interfaces.C.short is a short *int*.

Which is OK - the C type was also "short int".

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




  reply	other threads:[~2005-02-12 19:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-12 16:58 Passing float values to C Garry
2005-02-12 18:05 ` tmoran
2005-02-12 18:08   ` Pascal Obry
2005-02-12 19:59     ` Martin Krischik [this message]
2005-02-12 21:36       ` tmoran
2005-02-13  0:38 ` Jeffrey Carter
replies disabled

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