🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1390

Re: MP-safe MSL/new()

#1390
From: Karsten Loeffler
Date: Mon, 09 Oct 2000 06:28
33 lines
2496 bytes
In article <hinnant-0610001317070001@ith3-43b.twcny.rr.com>, 
hinnant@anti-spam_metrowerks.com (Howard Hinnant) wrote:

> In article <karsten.loeffler-E694CB.17013406102000@news.belwue.de>,
> Karsten Loeffler <karsten.loeffler@uni-tuebingen.de> wrote:
> 
> | 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).

sorry, I've overlooked that.


> | 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?

I've wondered how it can be detected if memory block representented by a 
pointer wether it was allocated by NewPtr() or MPAllocate().
But now a will try to alloctae everything with MPAllocate without any 
use of NewPtr()

karsten
Technical Details
Message-ID: <karsten.loeffler-96141C.08284709102000@news.belwue.de>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!karsten.loeffler
References: <karsten.loeffler-7D396D.15575505102000@newsserv.uni-tuebingen.de> <hinnant-0510001154380001@ith3-473.twcny.rr.com> <karsten.loeffler-E694CB.17013406102000@news.belwue.de> <hinnant-0610001317070001@ith3-43b.twcny.rr.com>

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
X-Google-ArrivalTime: 2000-10-08 23:28:43 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!karsten.loeffler
From: Karsten Loeffler <karsten.loeffler@uni-tuebingen.de>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: MP-safe MSL/new()
Date: Mon, 09 Oct 2000 08:28:47 +0200
Organization: University Tuebingen
Lines: 33
Message-ID: <karsten.loeffler-96141C.08284709102000@news.belwue.de>
References: <karsten.loeffler-7D396D.15575505102000@newsserv.uni-tuebingen.de> <hinnant-0510001154380001@ith3-473.twcny.rr.com> <karsten.loeffler-E694CB.17013406102000@news.belwue.de> <hinnant-0610001317070001@ith3-43b.twcny.rr.com>
NNTP-Posting-Host: physiol24.physiologie.medizin.uni-tuebingen.de
User-Agent: MT-NewsWatcher/3.0 (PPC)