🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #23455

Re: Problems Using LSC math library

#23455
From: Richard Siegel
Date: Sat, 09 Jan 1988 20:26
19 lines
966 bytes

Older versions (pre 2.15) had problems in the math library. The new version is 
available for downloading from comp.binaries.mac or from the info-mac 
archives, and should fix the problem.

The time-honored solution for getting around the global data limit is to 
declare large static structures (arrays and the like) as pointers, and 
allocating blocks with NewPtr(). For example, instead of

	char a[35000]

use

	char a[] = NewPtr(35000 * sizeof(char));

This is identical to using an array, without eating the global space.

		--Rich
Technical Details
Message-ID: <YVtd1ly00Xc6yGM0QB@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!rs4u+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!rs4u+
From: rs4u+@andrew.cmu.edu (Richard Siegel)
Newsgroups: comp.sys.mac
Subject: Re: Problems Using LSC math library
Message-ID: <YVtd1ly00Xc6yGM0QB@andrew.cmu.edu>
Date: 9 Jan 88 20:26:25 GMT
Organization: Carnegie Mellon University
Lines: 19
In-Reply-To: <10167@shemp.UCLA.EDU>