From mboxrd@z Thu Jan 1 00:00:00 1970 From: Einar Karttunen To: Plan9 ML <9fans@cse.psu.edu> Message-ID: <20040307113209.GA18849@melkki.cs.Helsinki.FI> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [9fans] making emalloc a library function Date: Sun, 7 Mar 2004 13:32:09 +0200 Topicbox-Message-UUID: 1dbdd074-eacd-11e9-9e20-41e7f4b1d025 Hello Quite many programs define emalloc, which does the same thing. I was thinking of ripping these out and replacing with a library. I have two alternative routes. Either make libemalloc which contains emalloc, estrdup and so on or add a flag which makes libc malloc behave like emalloc. The first way would give programs freedom, but library code would still use raw malloc instead of the emalloc. The second solution would be harder for programs wishing to use both emalloc and malloc (of course this would be still possible), but it would be more general... The changes would break no existing code in either case. Should I go forward with either idea? - Einar Karttunen