mprove ifdef's for non-fragile-abi

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-02-28 19:43:35 +00:00
parent db7e1148aa
commit 3a49540942
33 changed files with 40 additions and 2 deletions

View file

@ -63,6 +63,7 @@
#if defined(__MINGW32__)
WSAEVENT event;
#endif
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -74,6 +74,7 @@ extern "C" {
NSString *value;
NSMutableDictionary *objects;
NSMutableDictionary *params;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}
@ -111,6 +112,7 @@ extern "C" {
#if GS_EXPOSE(GSMimeDocument)
NSMutableArray *headers;
id content;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}
@ -217,6 +219,7 @@ extern "C" {
GSMimeParser *child;
GSMimeCodingContext *context;
NSStringEncoding _defaultEncoding;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -69,6 +69,7 @@ extern "C" {
unsigned _startPos; /* Where in data we started. */
BOOL _encodingRoot;
BOOL _initialPass;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}
@ -175,6 +176,7 @@ extern "C" {
NSZone *zone; /* Zone for allocating objs. */
NSMutableDictionary *objDict; /* Class information store. */
NSMutableArray *objSave;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -193,6 +193,7 @@ typedef struct autorelease_array_list
unsigned _released_count;
/* The method to add an object to this pool */
void (*_addImp)(id, SEL, id);
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -118,6 +118,7 @@ GS_EXPORT NSString* const NSLoadedClasses;
BOOL _codeLoaded;
unsigned _version;
NSString *_frameworkVersion;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -60,6 +60,7 @@ extern "C" {
NSMutableArray *_accesses;
/** Total number of accesses to objects */
int64_t _totalAccesses;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -76,11 +76,12 @@ typedef enum _NSPredicateOperatorType
SEL _selector;
NSUInteger _options;
NSPredicateOperatorType _type;
#elif !GS_NONFRAGILE
void *_unused;
#endif
@public
NSExpression *_left;
NSExpression *_right;
#endif
}
+ (NSPredicate *) predicateWithLeftExpression: (NSExpression *)left

View file

@ -105,6 +105,7 @@ extern "C" {
#if GS_EXPOSE(NSDateFormatter)
NSString *_dateFormat;
BOOL _allowsNaturalLanguage;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -128,6 +128,7 @@ extern "C" {
BOOL _raiseOnOverflow;
BOOL _raiseOnUnderflow;
BOOL _raiseOnDivideByZero;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -39,6 +39,7 @@ extern "C" {
#if GS_EXPOSE(NSDistributedLock)
NSString *_lockPath;
NSDate *_lockTime;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -85,6 +85,7 @@ GS_EXPORT NSString* const GSNetworkNotificationCenterType;
NSString *_type; /* Type of notification center. */
id _remote; /* Proxy for center. */
BOOL _suspended; /* Is delivery suspended? */
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -120,6 +120,7 @@ GS_EXPORT NSString* const NSCocoaErrorDomain;
int _code;
NSString *_domain;
NSDictionary *_userInfo;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -161,6 +161,7 @@ GS_EXPORT NSString * const NSFileHandleOperationException;
@private
NSFileHandle *_readHandle;
NSFileHandle *_writeHandle;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -199,6 +199,7 @@ typedef uint32_t OSType;
#if GS_EXPOSE(NSFileManager)
@private
NSString *_lastError;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}
@ -377,6 +378,7 @@ typedef uint32_t OSType;
BOOL isFollowing: 1;
BOOL justContents: 1;
} _flags;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -43,6 +43,7 @@ extern "C" {
@private
NSSet *_names;
NSSet *_addresses;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -49,6 +49,7 @@ extern "C" {
NSUInteger _hash;
NSUInteger _length;
NSUInteger *_indexes;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -49,6 +49,7 @@ extern "C" {
BOOL _validReturn;
BOOL _sendToSuper;
void *_retptr;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -70,6 +70,7 @@ extern "C" {
NSMutableDictionary *_enc; /* Object being encoded. */
NSMutableArray *_obj; /* Array of objects. */
NSPropertyListFormat _format;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}
@ -237,6 +238,7 @@ extern "C" {
#undef GSIArray
#endif
NSZone *_zone; /* Zone for allocating objs. */
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -94,6 +94,7 @@ extern "C" {
NSString *_positiveFormat;
NSDictionary *_attributesForPositiveValues;
NSDictionary *_attributesForNegativeValues;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -210,6 +210,7 @@ typedef SOCKET NSSocketNativeHandle;
WSAEVENT eventListener;
NSMapTable *events;
#endif
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -93,6 +93,7 @@ extern "C" {
unsigned _cursor; /* Position in data buffer. */
unsigned _version; /* Version of archiver used. */
NSZone *_zone; /* Zone for allocating objs. */
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -50,6 +50,7 @@ extern "C" {
NSPort *_recv;
NSPort *_send;
NSMutableArray *_components;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -59,6 +59,7 @@ extern "C" {
#if GS_EXPOSE(NSSocketPortNameServer)
NSMapTable *_portMap; /* Registered ports information. */
NSMapTable *_nameMap; /* Registered names information. */
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -41,6 +41,7 @@ extern "C" {
@private
Protocol *_myProtocol;
NSObject *_myTarget;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -49,6 +49,7 @@ extern "C" {
unichar _decimal;
BOOL _caseSensitive;
BOOL _isUnicode;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -49,6 +49,7 @@ extern "C" {
NSString *_key;
BOOL _ascending;
SEL _selector;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -53,6 +53,7 @@ extern "C" {
BOOL _hasTerminated;
BOOL _hasCollected;
BOOL _hasNotified;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -71,6 +71,7 @@ extern "C" {
struct autorelease_thread_vars _autorelease_vars;
id _gcontext;
void *_runLoopInfo; // Per-thread runloop related info.
#elif !GS_NONFRAGILE
void *_unused; // For future expansion
#endif
}

View file

@ -50,6 +50,7 @@ extern "C" {
id _target;
SEL _selector;
id _info;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -88,7 +88,6 @@ GS_EXPORT NSString* const NSUndoManagerWillUndoChangeNotification;
@private
NSMutableArray *_redoStack;
NSMutableArray *_undoStack;
id *_unused1;
id _group;
id _nextTarget;
NSArray *_modes;
@ -98,6 +97,8 @@ GS_EXPORT NSString* const NSUndoManagerWillUndoChangeNotification;
BOOL _runLoopGroupingPending;
unsigned _disableCount;
unsigned _levelsOfUndo;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -227,6 +227,7 @@ GS_EXPORT NSString* const GSLocale;
NSDate *_lastSync;
NSRecursiveLock *_lock;
NSDistributedLock *_fileLock;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -87,6 +87,7 @@ typedef NSUInteger NSXMLNodeKind;
NSXMLNode *_parent;
NSUInteger _index;
id _objectValue;
#elif !GS_NONFRAGILE
void *_unused;
#endif
}

View file

@ -73,6 +73,7 @@ GS_EXPORT NSString* const NSXMLParserErrorDomain;
@public
void *_parser; // GSXMLParser
void *_handler; // SAXHandler
#elif !GS_NONFRAGILE
void *_unused;
#endif
}