2009-01-12 21:35:51 +00:00
|
|
|
/** Implementation for NSGarbageCollector for GNUStep
|
|
|
|
Copyright (C) 2009 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
|
|
|
Created: Jan 2009
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2019-12-09 23:36:00 +00:00
|
|
|
Lesser General Public License for more details.
|
2009-01-12 21:35:51 +00:00
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2024-11-07 13:37:59 +00:00
|
|
|
Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA.
|
2009-01-12 21:35:51 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2010-02-19 08:12:46 +00:00
|
|
|
#import "common.h"
|
2009-01-12 21:35:51 +00:00
|
|
|
#import "Foundation/NSGarbageCollector.h"
|
|
|
|
|
|
|
|
@implementation NSGarbageCollector
|
|
|
|
|
|
|
|
+ (id) defaultCollector
|
|
|
|
{
|
2016-07-18 10:50:28 +00:00
|
|
|
return nil;
|
2009-01-12 21:35:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) collectIfNeeded
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) collectExhaustively
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) disable
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) disableCollectorForPointer: (void *)ptr
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) enable
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) enableCollectorForPointer: (void *)ptr
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) init
|
|
|
|
{
|
2016-07-18 10:50:28 +00:00
|
|
|
[self dealloc];
|
|
|
|
return nil;
|
2009-01-12 21:35:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) isCollecting
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) isEnabled
|
|
|
|
{
|
2016-07-18 10:50:28 +00:00
|
|
|
return NO;
|
2009-01-12 21:35:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSZone*) zone
|
|
|
|
{
|
2009-02-11 10:11:33 +00:00
|
|
|
return NSDefaultMallocZone();
|
2009-01-12 21:35:51 +00:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|