Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ukma!uflorida!usfvax2!tscs!pdn!boake2!ckctpa From: ckctpa!crash@boake2 (Frank J. Edwards) Newsgroups: comp.sys.amiga.tech Subject: Re: realloc() missing from Manx c.lib ? Message-ID: <365@ckctpa.UUCP> Date: 20 Jan 90 15:06:05 GMT Organization: ComputerKnowledge Corp, Clearwater FL Lines: 58 Ross, Don't feel bad -- it took me awhile to find it also! I had actually decoded how the malloc() call worked, and written my own realloc()! The file you need is called "heapmem.o" (or it's other various flavors, depending on what memory model you're using). It can be included in the link list by just specifying its name, i.e. ln -o indian chief.o big.o mem.o heapmem.o -lc The Manx linker will automagically search the CLIB environment variable for a list of directories to look in to find `heapmem.o' and `c.lib'. So that's what's missing from the link line. However, there's a bug in the Version 3.6a `heapmem.o' for which I have included my patches. Before explaining the patches, this is the file I'm working with. First of all, this bug DOES NOT apply to the 32-bit integer mode. (Another good reason to always use 32-bit ints :-). Here is the file I patched: Lib/heapmem.o ----rwed 992 2