mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
and deprecate it. Searched for and removed obsolete references to garbage collection in comments and documentation.
This commit is contained in:
parent
6837924e60
commit
c76ebf2962
61 changed files with 384 additions and 313 deletions
|
@ -379,7 +379,7 @@ existingConnection(NSPort *receivePort, NSPort *sendPort)
|
|||
* We don't want this connection to be destroyed by another thread
|
||||
* between now and when it's returned from this function and used!
|
||||
*/
|
||||
IF_NO_GC([[c retain] autorelease];)
|
||||
IF_NO_ARC([[c retain] autorelease];)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
c = [self allocWithZone: NSDefaultMallocZone()];
|
||||
c = [c initWithReceivePort: r sendPort: s];
|
||||
IF_NO_GC([c autorelease];)
|
||||
IF_NO_ARC([c autorelease];)
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
@ -1259,7 +1259,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
*/
|
||||
[self setRequestMode: nil];
|
||||
|
||||
IF_NO_GC(RETAIN(self);)
|
||||
IF_NO_ARC(RETAIN(self);)
|
||||
|
||||
if (debug_connection)
|
||||
{
|
||||
|
@ -3522,7 +3522,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
node = GSIMapNodeForKey(IlocalTargets, (GSIMapKey)(NSUInteger)target);
|
||||
NSAssert(node == 0, NSInternalInconsistencyException);
|
||||
|
||||
IF_NO_GC([anObj retain];)
|
||||
IF_NO_ARC([anObj retain];)
|
||||
GSIMapAddPair(IlocalObjects, (GSIMapKey)object, (GSIMapVal)((id)anObj));
|
||||
GSIMapAddPair(IlocalTargets,
|
||||
(GSIMapKey)(NSUInteger)target, (GSIMapVal)((id)anObj));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue