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,235855e3822c83d1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.152.217 with SMTP id h25mr414696bkw.3.1336899819362; Sun, 13 May 2012 02:03:39 -0700 (PDT) Path: h15ni2878bkw.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Importing C function with variable argument list Date: Sun, 13 May 2012 10:03:37 +0100 Organization: A noiseless patient Spider Message-ID: References: <610ee323-4c7f-413d-8568-aed4955f5152@z38g2000vbu.googlegroups.com> <1288794.275.1334249936588.JavaMail.geo-discussion-forums@ynlp2> <696103.1385.1336076109161.JavaMail.geo-discussion-forums@vbez18> <3eduq7lqvgmp2ui5kt1k5pgk2oopvo9o31@4ax.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="Pd4gCuG8QV/d3K7tc8x0Wg"; logging-data="8874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xkSDqPeEAnsCl9nM1vhfwand5aQrVNSg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:INzt63QQDHlFsW00MMwS9Ld7Y+w= sha1:Z61JKdAw7AmP/TAw4TA1ylH9g3I= Content-Type: text/plain; charset=us-ascii Date: 2012-05-13T10:03:37+01:00 List-Id: David Thompson writes: > Isn't the general rule of thumb (since nothing in C is ever > well-defined) that an int is the size of the default machine word > (32-bit on 32-bit, 64 on 64, etc)? On Mac OS X (definitely Lion, probably all) C uses i386/limits.h for both i386 and x86_64. So it's 32-bit ints for both. And for Ada, Integer'Size is 32.