🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9447

Re: Manxifying Lattice Code

#9447
From: Matt Dillon
Date: Sat, 06 Aug 1988 19:08
16 lines
987 bytes
>: 	pplanet = (tplanet *) malloc (sizeof(tplanet));
>
>How big is sizeof(tplanet)?  Manx malloc() wants its argument to be a word, so
>if it's bigger than 64K it won't work correctly.
>
>If that's the case, try AllocMem().

	Now wait just a moment here.  If the original program was written
for 32 bit integers, then simply use the 32 bit integer option for Aztec C
(+L), and *poof* malloc() takes an int = 32 bits.

	If the original program was written for 16 bit integers, then the
malloc call in the original program was known to take only a word and thus
that is NOT the problem.  Simply compile without the +L option.

					-Matt
Technical Details
Message-ID: <8808061908.AA02259@cory.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!ig!agate!ucbvax!CORY.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!ig!agate!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Manxifying Lattice Code
Message-ID: <8808061908.AA02259@cory.Berkeley.EDU>
Date: 6 Aug 88 19:08:47 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 16