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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5a58661b62268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: a question on basic types of interfaces.C Date: Fri, 24 Nov 2006 08:36:12 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <4566a0ed@news.post.ch> References: <1164283964.323817.256290@m7g2000cwm.googlegroups.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1164353775 21102 194.41.146.1 (24 Nov 2006 07:36:15 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Fri, 24 Nov 2006 07:36:15 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <1164283964.323817.256290@m7g2000cwm.googlegroups.com> X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 24 Nov 2006 08:36:13 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:7673 Date: 2006-11-24T08:36:12+01:00 List-Id: evangeli@cnam.fr schrieb: > hello, > there are some points regarding Interfaces.C that I want to be sure of > if I consider Interfaces.C and are the following assertions > always valid : > > Interfaces.C.int'first = INT_MIN > Interfaces.C.int'last = INT_MAX > > Interfaces.C.short'first = SHRT_MIN > Interfaces.C.short'last = SHRT_MAX > > Interfaces.C.int'size = sizeof(int) * CHAR_BIT If you use compatible compilers: yes. I might be nitpicking but if you use a 64 bit GNAT-Ada and try to combine it with 16 bit Watcom-C then the assertions won't be true. 32 bit GNAT-Ada and 32 bit Watcom-C do actually work - sort of. Check the documentation of your Ada compiler for a list a compatible C compiler :-). Martin