mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -284,7 +284,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
{
|
||||
GSTimedPerformer *array[count];
|
||||
|
||||
IF_NO_GC(RETAIN(target));
|
||||
IF_NO_ARC(RETAIN(target));
|
||||
[perf getObjects: array];
|
||||
while (count-- > 0)
|
||||
{
|
||||
|
@ -318,8 +318,8 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
{
|
||||
GSTimedPerformer *array[count];
|
||||
|
||||
IF_NO_GC(RETAIN(target));
|
||||
IF_NO_GC(RETAIN(arg));
|
||||
IF_NO_ARC(RETAIN(target));
|
||||
IF_NO_ARC(RETAIN(arg));
|
||||
[perf getObjects: array];
|
||||
while (count-- > 0)
|
||||
{
|
||||
|
@ -545,7 +545,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
{
|
||||
[array[i] fire];
|
||||
RELEASE(array[i]);
|
||||
IF_NO_GC([arp emptyPool];)
|
||||
IF_NO_ARC([arp emptyPool];)
|
||||
}
|
||||
[arp drain];
|
||||
}
|
||||
|
@ -1040,7 +1040,7 @@ updateTimer(NSTimer *t, NSDate *d, NSTimeInterval now)
|
|||
GSIArrayRemoveItemAtIndexNoRelease(timers, i);
|
||||
[t fire];
|
||||
GSPrivateNotifyASAP(_currentMode);
|
||||
IF_NO_GC([arp emptyPool];)
|
||||
IF_NO_ARC([arp emptyPool];)
|
||||
if (updateTimer(t, d, now) == YES)
|
||||
{
|
||||
/* Updated ... replace in array.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue