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:
Richard Frith-MacDonald 2010-02-28 19:43:35 +00:00
parent 470d0b18f2
commit b59b875d50
33 changed files with 40 additions and 2 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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