From owner-freebsd-hackers Sat May 31 17:21:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA24725 for hackers-outgoing; Sat, 31 May 1997 17:21:26 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id RAA24720 for ; Sat, 31 May 1997 17:21:19 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id CAA01019; Sun, 1 Jun 1997 02:21:09 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id CAA02269; Sun, 1 Jun 1997 02:04:17 +0200 (MET DST) Message-ID: <19970601020417.FV62313@uriah.heep.sax.de> Date: Sun, 1 Jun 1997 02:04:17 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG (freebsd-hackers) Cc: un_x@anchorage.net (Steve Howe) Subject: Re: Borland 16bit bcc vs cc/gcc (float) References: <19970531092837.DA51579@uriah.heep.sax.de> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Steve Howe wrote: > what's non-standard about long double? Nothing, i've been mistaken on this. > they're standard ANSI C types ... ? much of my software > relies on this precision - i can't do 64 bit int-to-string-to-int > conversions without them, ... Well, but ANSI says nothing about the actual precision. An implementation is allowed to represent float/double/long double all with 6 bytes, and would still be ANSI-compliant. It's merely an incident that most i386 implementations do long double as 80 bits, since this is the i387 `native' format. > ahhh! :) everyone says this - but exit() never returns, so main > never returns anything, so IMHO, main should always be type void. No. The compiler would even be allowed to throw your main() into the bit-bucket if you declare it to be `void'. And it's not too hypothetical that some architecture might have different calling conventions for functions returning int vs. functions returning void. main() returns an int _by definition_, that's nothing you could change. OTOH, you aren't required to call exit() explicitly, it's implicitly called by definition upon return from main() (and being passed the return value from main()). > please help me! :) Read Bruce's followup. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)