mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +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
c57d587055
commit
f7738e49a0
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>
|
2009-01-13 18:35-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/GSArray.m
|
* Source/GSArray.m
|
||||||
|
|
|
@ -321,18 +321,10 @@ typedef enum _NSGNUstepStringEncoding
|
||||||
+ (id) newLockAt: (id *)location;
|
+ (id) newLockAt: (id *)location;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSLock (GSCompatibility)
|
|
||||||
- (void) gcFinalize;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface NSRecursiveLock (GSCategories)
|
@interface NSRecursiveLock (GSCategories)
|
||||||
+ (id)newLockAt:(id *)location;
|
+ (id)newLockAt:(id *)location;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSRecursiveLock (GSCompatibility)
|
|
||||||
- (void) gcFinalize;
|
|
||||||
@end
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------
|
||||||
* Functions
|
* Functions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,21 +24,22 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "Foundation/NSGarbageCollector.h"
|
#import "Foundation/NSGarbageCollector.h"
|
||||||
#import "Foundation/NSLock.h"
|
|
||||||
#import "Foundation/NSZone.h"
|
#import "Foundation/NSZone.h"
|
||||||
|
|
||||||
|
static NSGarbageCollector *collector = nil;
|
||||||
|
static unsigned disabled = 0;
|
||||||
|
|
||||||
#if GS_WITH_GC
|
#if GS_WITH_GC
|
||||||
|
|
||||||
#include <gc.h>
|
#include <gc.h>
|
||||||
|
|
||||||
|
#import "Foundation/NSLock.h"
|
||||||
|
static NSLock *lock = nil;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@implementation NSGarbageCollector
|
@implementation NSGarbageCollector
|
||||||
|
|
||||||
static NSGarbageCollector *collector = nil;
|
|
||||||
static NSLock *lock = nil;
|
|
||||||
static unsigned disabled = 0;
|
|
||||||
|
|
||||||
+ (id) defaultCollector
|
+ (id) defaultCollector
|
||||||
{
|
{
|
||||||
return collector;
|
return collector;
|
||||||
|
|
Loading…
Reference in a new issue