Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: Overloading functions Message-ID: <9996@polya.Stanford.EDU> Date: 13 Jun 89 19:14:16 GMT References: <9368@csli.Stanford.EDU> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Distribution: na Organization: . Lines: 18 In article <9368@csli.Stanford.EDU> Daniel M. Rosenberg writes: >Bash makes its own versions of malloc(), free(), and realloc(). Ld >does not appreciate them competing with the ones in libc. Is there >any simple way to tell the compiler or loader to just overload >redefined functions? Using shared libraries, no, you have no way to overload functions. You can, however, use the non-shared versions of the libraries --- replace -lsys_s with -lc and any others you might need. Please note that the memory allocation routines in the NeXT libraries are highly optimized and do a good job. Unless there's some other reason to override them, it might not be a bad idea to just use the NeXT versions. (I'm not familiar with the bash code; it might turn out that the bash versions of malloc etc do other stuff...) Ali Ozer, NeXT Developer Support aozer@NeXT.com