Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!jade!eris!mwm From: mwm@eris.UUCP Newsgroups: comp.sys.amiga Subject: Re: Portable "C" Code Message-ID: <3046@jade.BERKELEY.EDU> Date: Sat, 4-Apr-87 22:35:17 EST Article-I.D.: jade.3046 Posted: Sat Apr 4 22:35:17 1987 Date-Received: Sun, 5-Apr-87 22:46:14 EST References: <6082@amdahl.UUCP> <2865@well.UUCP> Sender: usenet@jade.BERKELEY.EDU Reply-To: mwm@eris.BERKELEY.EDU (Mike (My watch has windows) Meyer) Organization: Missionaria Phonibalonica Lines: 23 Keywords: portable code c manx lattice guidelines religion style In article <2865@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: >In article <6082@amdahl.UUCP> kim@amdahl.UUCP (really Robert Mitchell) writes: >> 1) Manx defaults to 16 bit integers and Lattice uses 32 bit. >> 2) Assembly language subroutines in Manx expect 16 bit >> integer parameters, while Lattice promotes to 32 bit. >> > Um... er... Assembly, per se, doesn't *expect* anything. I could >have supplied the random number generator I wrote for Lettuce and declared >it extern long, and it would have worked great (if I passed it a long). I >should have called attention to this gotcha. Uh, is there anything wrong with using the supplied version of rand() and srand() for your random number generator? They're ANSI standard, so should run on anything. Of course, if you need a good PRN, you might wanna check out your version first.... Founder of the Committee to Reuse Code Everywhere,