From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,995362da150dc3a9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f36g2000hsa.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Interfacing to C and long long data type Date: Wed, 25 Jun 2008 14:35:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4abde3e1-3c8c-4b01-b63b-d29e7039070b@f36g2000hsa.googlegroups.com> References: NNTP-Posting-Host: 85.3.207.244 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214429702 23893 127.0.0.1 (25 Jun 2008 21:35:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Jun 2008 21:35:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f36g2000hsa.googlegroups.com; posting-host=85.3.207.244; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:886 Date: 2008-06-25T14:35:02-07:00 List-Id: On 25 Cze, 18:55, Keith Thompson 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