mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
various gc change tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c7647d9f1
commit
d8f2b6b369
3 changed files with 15 additions and 13 deletions
|
@ -1,3 +1,12 @@
|
|||
2009-01-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source\NSGarbageCollector.m: Avoid compiler warning
|
||||
* Source\pathconfig/pathconfig.mak.in: Fix syntax error in warning
|
||||
* Headers\Additions\GNUstepBase\GSCategories.h: remove obsolete methods
|
||||
* GNUmakefile: Fix order of includes
|
||||
* Source/GSArray.m: Remove unused line from last change
|
||||
* Source/NSNotificationCenter.m: Remove unused line
|
||||
|
||||
2009-01-13 18:35-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSArray.m
|
||||
|
|
|
@ -321,18 +321,10 @@ typedef enum _NSGNUstepStringEncoding
|
|||
+ (id) newLockAt: (id *)location;
|
||||
@end
|
||||
|
||||
@interface NSLock (GSCompatibility)
|
||||
- (void) gcFinalize;
|
||||
@end
|
||||
|
||||
@interface NSRecursiveLock (GSCategories)
|
||||
+ (id)newLockAt:(id *)location;
|
||||
@end
|
||||
|
||||
@interface NSRecursiveLock (GSCompatibility)
|
||||
- (void) gcFinalize;
|
||||
@end
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
* Functions
|
||||
*/
|
||||
|
|
|
@ -24,21 +24,22 @@
|
|||
*/
|
||||
|
||||
#import "Foundation/NSGarbageCollector.h"
|
||||
#import "Foundation/NSLock.h"
|
||||
#import "Foundation/NSZone.h"
|
||||
|
||||
static NSGarbageCollector *collector = nil;
|
||||
static unsigned disabled = 0;
|
||||
|
||||
#if GS_WITH_GC
|
||||
|
||||
#include <gc.h>
|
||||
|
||||
#import "Foundation/NSLock.h"
|
||||
static NSLock *lock = nil;
|
||||
|
||||
#endif
|
||||
|
||||
@implementation NSGarbageCollector
|
||||
|
||||
static NSGarbageCollector *collector = nil;
|
||||
static NSLock *lock = nil;
|
||||
static unsigned disabled = 0;
|
||||
|
||||
+ (id) defaultCollector
|
||||
{
|
||||
return collector;
|
||||
|
|
Loading…
Reference in a new issue