Article View: comp.sys.mac.programmer.codewarrior
Article #1404Re: MP-safe MSL/new()
From: Howard Hinnant
Date: Fri, 06 Oct 2000 00:00
Date: Fri, 06 Oct 2000 00:00
26 lines
1920 bytes
1920 bytes
In article <karsten.loeffler-E694CB.17013406102000@news.belwue.de>, Karsten Loeffler <karsten.loeffler@uni-tuebingen.de> wrote: | Thank you both, howard an graham. | I'll give the first try to the recompile-C-lib-method. | | But there's a problem: While I found the project 'MSL C.PPC.MTrgt.mcp', | I haven't found one for Carbon (MSL C.Carbon.Lib). | Where is it? It is a different target in MSL C.PPC.MTrgt.mcp (assuming Pro 6 here). Prior to Pro 6 there is no carbonized (production version) MSL C. For C++, the same lib is good for carbon and non-carbon (doesn't depend so much on the OS). | And a another question (regarding pool_alloc.mac.c): | Is it legal to free every pointer in __sys_free(...) where | MPGetAllocatedBlockSize(ptr) returns not NULL ? | And free the remaining with DisposePtr(ptr)? There are people here who know a lot more about Mac OS than I do, but I would tend to match NewPtr with DisposePtr and MPAllocate with MPDeallocate (I'm sure I've misspelled the MP guys). Or did I misunderstand the question? -Howard
Technical Details
Message-ID:
<hinnant-0610001317070001@ith3-43b.twcny.rr.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<karsten.loeffler-7D396D.15575505102000@newsserv.uni-tuebingen.de> <hinnant-0510001154380001@ith3-473.twcny.rr.com> <karsten.loeffler-E694CB.17013406102000@news.belwue.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,6951f08fa8b3ff8d X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,6951f08fa8b3ff8d X-Google-Attributes: gidf635e,public From: hinnant@anti-spam_metrowerks.com (Howard Hinnant) Subject: Re: MP-safe MSL/new() Date: 2000/10/06 Message-ID: <hinnant-0610001317070001@ith3-43b.twcny.rr.com> X-Deja-AN: 678362841 References: <karsten.loeffler-7D396D.15575505102000@newsserv.uni-tuebingen.de> <hinnant-0510001154380001@ith3-473.twcny.rr.com> <karsten.loeffler-E694CB.17013406102000@news.belwue.de> X-Complaints-To: abuse@twcny.rr.com X-Trace: typhoon.nyroc.rr.com 970852396 24.24.28.59 (Fri, 06 Oct 2000 13:13:16 EDT) Organization: Metrowerks NNTP-Posting-Date: Fri, 06 Oct 2000 13:13:16 EDT Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac