From f7738e49a04bb20bdce71a7e12722a99e9e1faab Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 14 Jan 2009 08:26:16 +0000 Subject: [PATCH] various gc change tidyups git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27598 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 +++++++++ Headers/Additions/GNUstepBase/GSCategories.h | 8 -------- Source/NSGarbageCollector.m | 11 ++++++----- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c5d068be..bd6f40294 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-01-14 Richard Frith-Macdonald + + * 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 * Source/GSArray.m diff --git a/Headers/Additions/GNUstepBase/GSCategories.h b/Headers/Additions/GNUstepBase/GSCategories.h index 465645d23..1e1d73948 100644 --- a/Headers/Additions/GNUstepBase/GSCategories.h +++ b/Headers/Additions/GNUstepBase/GSCategories.h @@ -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 */ diff --git a/Source/NSGarbageCollector.m b/Source/NSGarbageCollector.m index bffc15438..bc52d243b 100644 --- a/Source/NSGarbageCollector.m +++ b/Source/NSGarbageCollector.m @@ -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 +#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;