mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Stuff for STRICT_OpenStep, STRUCT_MacOS_X, and NO_GNUSTEP
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3155 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f0f72ea7e3
commit
24fbe3de4f
1 changed files with 19 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Interface for NSObject for GNUStep
|
||||
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Date: 1995
|
||||
|
@ -24,6 +24,17 @@
|
|||
#ifndef __NSObject_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSObject_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
/*
|
||||
* Check consistency of definitions for system compatibility.
|
||||
*/
|
||||
#if defined(STRICT_OpenStep)
|
||||
#define NO_GNUSTEP 1
|
||||
#elif defined(STRICT_MacOS_X)
|
||||
#define NO_GNUSTEP 1
|
||||
#else
|
||||
#undef NO_GNUSTEP
|
||||
#endif
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <objc/Protocol.h>
|
||||
#include <Foundation/NSZone.h>
|
||||
|
@ -122,11 +133,6 @@
|
|||
|
||||
@end
|
||||
|
||||
/* Global lock to be used by classes when operating on any global
|
||||
data that invoke other methods which also access global; thus,
|
||||
creating the potential for deadlock. */
|
||||
extern NSRecursiveLock *gnustep_global_lock;
|
||||
|
||||
NSObject *NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone);
|
||||
void NSDeallocateObject(NSObject *anObject);
|
||||
NSObject *NSCopyObject(NSObject *anObject, unsigned extraBytes, NSZone *zone);
|
||||
|
@ -143,10 +149,6 @@ NSComparisonResult;
|
|||
|
||||
enum {NSNotFound = 0x7fffffff};
|
||||
|
||||
@interface NSObject (GNUstep)
|
||||
|
||||
@end
|
||||
|
||||
@interface NSObject (NEXTSTEP)
|
||||
- error:(const char *)aString, ...;
|
||||
- notImplemented:(SEL)aSel;
|
||||
|
@ -154,6 +156,12 @@ enum {NSNotFound = 0x7fffffff};
|
|||
Removed because OpenStep has -(NSString*)name; */
|
||||
@end
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
/* Global lock to be used by classes when operating on any global
|
||||
data that invoke other methods which also access global; thus,
|
||||
creating the potential for deadlock. */
|
||||
extern NSRecursiveLock *gnustep_global_lock;
|
||||
|
||||
@interface NSObject (GNU)
|
||||
- (int) compare: anObject;
|
||||
- (Class)transmuteClassTo:(Class)aClassObject;
|
||||
|
@ -165,6 +173,7 @@ enum {NSNotFound = 0x7fffffff};
|
|||
- read: (TypedStream*)aStream;
|
||||
- write: (TypedStream*)aStream;
|
||||
@end
|
||||
#endif
|
||||
|
||||
#include <Foundation/NSDate.h>
|
||||
@interface NSObject (TimedPerformers)
|
||||
|
|
Loading…
Reference in a new issue