[comp.sys.mac.programmer] LSC malloc/calloc

leeke@glacier.STANFORD.EDU (Steven D. Leeke) (06/01/88)

Has anyone modified LSC's malloc and calloc to use relocatable blocks
rather than non-relocatable blocks?  If so, I'd appreciate hearing from
you.

Many thanks,

Steve Leeke

-- 
Steven D. Leeke, Center for Integrated Systems, Stanford University
    {ucbvax,decvax}!decwrl!glacier!leeke, leeke@glacier.stanford.edu

"I suppose they don't use money in the 23rd century?"

dan@Apple.COM (Dan Allen) (06/02/88)

Your request for a relocatable malloc is hard for me to understand.  If
malloc returns a pointer that you save away somewhere in your code, and
then relocatable block is then relocated, you have an **INVALID**
pointer to garbage.  To me, a relocatable pointer is impossible, but
perhaps I do not fully understand your question/request...

Dan Allen
Software Explorer
Apple Computer