comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Interfacing to C and long long data type
Date: Wed, 25 Jun 2008 14:35:02 -0700 (PDT)
Date: 2008-06-25T14:35:02-07:00	[thread overview]
Message-ID: <4abde3e1-3c8c-4b01-b63b-d29e7039070b@f36g2000hsa.googlegroups.com> (raw)
In-Reply-To: lz1w2lwj23.fsf@stalkings.ghoti.net

On 25 Cze, 18:55, Keith Thompson <ks...@mib.org> wrote:

> You can declare
>
>     type C_Long_Long is range -2**63 .. 2**63-1;

GNAT already defines Interfaces.Integer_64, so I guess I can use that
as well. I was not sure if it would be fully legal to do so.
Considering the fact that representation of integers in C is largely
left to the implementation, any interoperability is achieved only with
the assumption that the compiler does the right thing, but with GNAT
and the C part compiled with gcc, this should be the case.

> > Similar issue exists with long long double.
>
> Not really, because there is no "long long double" type in C or C++.

Right. I wonder where I got that from. :-)

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com



  reply	other threads:[~2008-06-25 21:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 15:23 Interfacing to C and long long data type Maciej Sobczak
2008-06-25 16:55 ` Keith Thompson
2008-06-25 21:35   ` Maciej Sobczak [this message]
2008-06-26  8:53     ` Sébastien Morand
2008-06-26 10:19       ` Georg Bauhaus
2008-06-26 11:59       ` Maciej Sobczak
2008-06-27 14:31         ` Sébastien Morand
2008-06-27 16:11         ` Dmitry A. Kazakov
2008-06-27 18:53           ` Adam Beneschan
2008-06-27 20:29             ` Simon Wright
2008-06-27 20:46             ` Dmitry A. Kazakov
2008-06-25 19:08 ` Simon Wright
replies disabled

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