mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Better DLL handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6679 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b9d4e6e9d
commit
ab5ab29c0a
129 changed files with 359 additions and 412 deletions
|
@ -10,6 +10,12 @@
|
|||
* Tools/gdomap.c: Change WIN32 to MINGW. Check if IFF_POINTOPOINT
|
||||
is defined.
|
||||
|
||||
* Headers/gnustep/base/*h: Remove preface include from headers.
|
||||
Change extern function and var definitions to GS_EXPORT for better
|
||||
handling of DLLs
|
||||
* Headers/gnustep/base/NSObjCRuntime.h: Set definition of GS_EXPORT
|
||||
based on using or compiling DLL
|
||||
|
||||
2000-06-11 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/preface.h.in: Define MINGW if MINW32.
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Archiver_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Archiver_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coder.h>
|
||||
|
||||
/* Eventually some functionality may be moved out of Coder and
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Array_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Array_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/IndexedCollection.h>
|
||||
#include <base/OrderedCollecting.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __ArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __ArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/IndexedCollectionPrivate.h>
|
||||
|
||||
#define DEFAULT_ARRAY_CAPACITY 2
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Bag_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Bag_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collection.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __BinaryCStream_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __BinaryCStream_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Stream.h>
|
||||
#include <base/CStream.h>
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#ifndef __BinaryTree_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __BinaryTree_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/IndexedCollection.h>
|
||||
|
||||
/* The <BinaryTreeComprising> protocol defines the interface to an object
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __BinaryTreeNode_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __BinaryTreeNode_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/BinaryTree.h>
|
||||
#include <base/Coding.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __CStream_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __CStream_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Stream.h>
|
||||
#include <base/CStreaming.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __CStreaming_h__GNUSTEP_BASE_INCLUDE
|
||||
#define __CStreaming_h__GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Streaming.h>
|
||||
|
||||
@protocol CStreaming <Streaming>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __CircularArray_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __CircularArray_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Array.h>
|
||||
|
||||
@interface CircularArray : Array
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __CircularArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __CircularArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/ArrayPrivate.h>
|
||||
|
||||
#define CIRCULAR_TO_BASIC(INDEX) \
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Coder_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Coder_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coding.h>
|
||||
#include <base/Streaming.h>
|
||||
#include <Foundation/NSHashTable.h>
|
||||
|
@ -144,6 +143,6 @@
|
|||
+ (void) encodeObject: anObject withConnectedCoder: aRmc;
|
||||
@end
|
||||
|
||||
extern id CoderSignatureMalformedException;
|
||||
GS_EXPORT id CoderSignatureMalformedException;
|
||||
|
||||
#endif /* __Coder_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __CoderPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __CoderPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coder.h>
|
||||
#include <base/CStreaming.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __Coding_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Coding_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
/* #include <base/String.h>
|
||||
xxx Think about trying to get <String> back in types,
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#ifndef __Collecting_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Collecting_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coding.h>
|
||||
#include <base/Invoking.h>
|
||||
#include <base/Enumerating.h>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#ifndef __Collection_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Collection_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <base/Collecting.h>
|
||||
#include <base/preface.h>
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#ifndef __CollectionPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __CollectionPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
|
||||
@interface ConstantCollection (ArchivingHelpers)
|
||||
/* These methods should never be called except in order, and inside
|
||||
-encodeWithCoder: and -decodeWithCoder: */
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __ConnectedCoder_h
|
||||
#define __ConnectedCoder_h
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coder.h>
|
||||
#include <base/Port.h>
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#ifndef __DelegatePool_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __DelegatePool_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Array.h>
|
||||
|
||||
/* Available sending behaviors */
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Dictionary_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Dictionary_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/KeyedCollection.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#ifndef __Enumerating_h__GNUSTEP_BASE_INCLUDE
|
||||
#define __Enumerating_h__GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
@protocol Enumerating <NSObject>
|
||||
|
||||
- initWithCollection: aCollection;
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
*/
|
||||
|
||||
#define main gnustep_base_user_main
|
||||
extern int gnustep_base_user_main (/* int argc, char *argv[] */);
|
||||
GS_IMPORT int gnustep_base_user_main (/* int argc, char *argv[] */);
|
||||
|
||||
#endif /* GS_FAKE_MAIN */
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __GapArray_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __GapArray_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Array.h>
|
||||
|
||||
@interface GapArray : Array
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#ifndef __GapArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __GapArrayPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/ArrayPrivate.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#ifndef __GetDefEncoding_h__GNUSTEP_BASE_INCLUDE
|
||||
#define __GetDefEncoding_h__GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
NSStringEncoding GetDefEncoding();
|
||||
NSString* GetEncodingName(NSStringEncoding encoding);
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Heap_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Heap_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Array.h>
|
||||
|
||||
@interface Heap : Array
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#ifndef __IndexedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __IndexedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collecting.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __IndexedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __IndexedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/KeyedCollection.h>
|
||||
#include <base/IndexedCollecting.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __IndexedCollectionPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __IndexedCollectionPrivate_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/CollectionPrivate.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef __InvalidationListening_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __InvalidationListening_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
/* This protocol is just temporary. It will disappear when GNU writes
|
||||
a more general notification system.
|
||||
It is not recommended that you use it in your code. */
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
extraneous stuff after the first type.
|
||||
*/
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collection.h>
|
||||
#include <base/Invoking.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __Invoking_h__GNUSTEP_BASE_INCLUDE
|
||||
#define __Invoking_h__GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@protocol Invoking <NSObject>
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#ifndef __KeyedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __KeyedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collecting.h>
|
||||
|
||||
@protocol ConstantKeyedCollecting <ConstantCollecting>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __KeyedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __KeyedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collection.h>
|
||||
#include <base/KeyedCollecting.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __LinkedList_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __LinkedList_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/OrderedCollection.h>
|
||||
|
||||
/* The <LinkedListComprising> protocol defines the interface to an object
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __LinkedListNode_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __LinkedListNode_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/LinkedList.h>
|
||||
#include <base/Coding.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Locking_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Locking_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <objc/Protocol.h>
|
||||
|
||||
@protocol Locking
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#if __mach__
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Port.h>
|
||||
|
||||
@interface MachInPort : InPort
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Magnitude_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Magnitude_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Ordering.h>
|
||||
|
||||
@interface Magnitude : NSObject <Ordering>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __MappedCollector_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __MappedCollector_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/KeyedCollection.h>
|
||||
|
||||
@interface MappedCollector : KeyedCollection
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#ifndef __MemoryStream_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __MemoryStream_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Stream.h>
|
||||
#include <base/Streaming.h>
|
||||
|
||||
|
|
|
@ -270,6 +270,6 @@
|
|||
|
||||
|
||||
/* Exceptions */
|
||||
extern NSString *NSInconsistentArchiveException;
|
||||
GS_EXPORT NSString *NSInconsistentArchiveException;
|
||||
|
||||
#endif /* __NSArchiver_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSArray_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSArray_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
#include <Foundation/NSUtilities.h>
|
||||
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#ifndef __NSAutoreleasePool_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSAutoreleasePool_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <string.h> /* for memset() */
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSAutoreleasePool;
|
||||
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
@class NSDictionary;
|
||||
@class NSMutableDictionary;
|
||||
|
||||
extern NSString* NSBundleDidLoadNotification;
|
||||
extern NSString* NSShowNonLocalizedStrings;
|
||||
extern NSString* NSLoadedClasses;
|
||||
GS_EXPORT NSString* NSBundleDidLoadNotification;
|
||||
GS_EXPORT NSString* NSShowNonLocalizedStrings;
|
||||
GS_EXPORT NSString* NSLoadedClasses;
|
||||
|
||||
@interface NSBundle : NSObject
|
||||
{
|
||||
|
|
|
@ -40,13 +40,13 @@
|
|||
* Keys for the NSDictionary returned by [NSConnection -statistics]
|
||||
*/
|
||||
/* These in OPENSTEP 4.2 */
|
||||
extern NSString *NSConnectionRepliesReceived;
|
||||
extern NSString *NSConnectionRepliesSent;
|
||||
extern NSString *NSConnectionRequestsReceived;
|
||||
extern NSString *NSConnectionRequestsSent;
|
||||
GS_EXPORT NSString *NSConnectionRepliesReceived;
|
||||
GS_EXPORT NSString *NSConnectionRepliesSent;
|
||||
GS_EXPORT NSString *NSConnectionRequestsReceived;
|
||||
GS_EXPORT NSString *NSConnectionRequestsSent;
|
||||
/* These Are GNUstep extras */
|
||||
extern NSString *NSConnectionLocalCount; /* Objects sent out */
|
||||
extern NSString *NSConnectionProxyCount; /* Objects received */
|
||||
GS_EXPORT NSString *NSConnectionLocalCount; /* Objects sent out */
|
||||
GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
|
||||
|
||||
|
||||
/*
|
||||
|
@ -236,7 +236,7 @@ extern NSString *NSConnectionProxyCount; /* Objects received */
|
|||
|
||||
@end
|
||||
|
||||
extern NSString *ConnectionBecameInvalidNotification;
|
||||
GS_EXPORT NSString *ConnectionBecameInvalidNotification;
|
||||
|
||||
@interface Object (NSConnectionDelegate)
|
||||
- (BOOL) connection: (NSConnection*)parent
|
||||
|
@ -299,9 +299,9 @@ extern NSString *ConnectionBecameInvalidNotification;
|
|||
/*
|
||||
* NSRunLoop mode, NSNotification name and NSException strings.
|
||||
*/
|
||||
extern NSString *NSConnectionReplyMode;
|
||||
extern NSString *NSConnectionDidDieNotification;
|
||||
extern NSString *NSConnectionDidInitializeNotification; /* OPENSTEP */
|
||||
GS_EXPORT NSString *NSConnectionReplyMode;
|
||||
GS_EXPORT NSString *NSConnectionDidDieNotification;
|
||||
GS_EXPORT NSString *NSConnectionDidInitializeNotification; /* OPENSTEP */
|
||||
|
||||
/*
|
||||
* For compatibility with old GNU DO code -
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
#ifndef __NSDebug_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSDebug_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <errno.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
extern int errno;
|
||||
GS_IMPORT int errno;
|
||||
|
||||
|
||||
/*
|
||||
|
@ -59,17 +59,17 @@ extern int errno;
|
|||
*/
|
||||
|
||||
#ifndef NDEBUG
|
||||
extern void GSDebugAllocationAdd(Class c);
|
||||
extern void GSDebugAllocationRemove(Class c);
|
||||
GS_EXPORT void GSDebugAllocationAdd(Class c);
|
||||
GS_EXPORT void GSDebugAllocationRemove(Class c);
|
||||
|
||||
extern BOOL GSDebugAllocationActive(BOOL active);
|
||||
extern int GSDebugAllocationCount(Class c);
|
||||
extern const char* GSDebugAllocationList(BOOL changeFlag);
|
||||
extern const char* GSDebugAllocationListAll();
|
||||
GS_EXPORT BOOL GSDebugAllocationActive(BOOL active);
|
||||
GS_EXPORT int GSDebugAllocationCount(Class c);
|
||||
GS_EXPORT const char* GSDebugAllocationList(BOOL changeFlag);
|
||||
GS_EXPORT const char* GSDebugAllocationListAll();
|
||||
|
||||
extern NSString* GSDebugFunctionMsg(const char *func, const char *file,
|
||||
GS_EXPORT NSString* GSDebugFunctionMsg(const char *func, const char *file,
|
||||
int line, NSString *fmt);
|
||||
extern NSString* GSDebugMethodMsg(id obj, SEL sel, const char *file,
|
||||
GS_EXPORT NSString* GSDebugMethodMsg(id obj, SEL sel, const char *file,
|
||||
int line, NSString *fmt);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -63,40 +63,40 @@ NSDecimalIsNotANumber(const NSDecimal *decimal)
|
|||
return (decimal->validNumber == NO);
|
||||
}
|
||||
|
||||
extern void
|
||||
GS_EXPORT void
|
||||
NSDecimalCopy(NSDecimal *destination, const NSDecimal *source);
|
||||
|
||||
extern void
|
||||
GS_EXPORT void
|
||||
NSDecimalCompact(NSDecimal *number);
|
||||
|
||||
extern NSComparisonResult
|
||||
GS_EXPORT NSComparisonResult
|
||||
NSDecimalCompare(const NSDecimal *leftOperand, const NSDecimal *rightOperand);
|
||||
|
||||
extern void
|
||||
GS_EXPORT void
|
||||
NSDecimalRound(NSDecimal *result, const NSDecimal *number, int scale, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalNormalize(NSDecimal *n1, NSDecimal *n2, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalAdd(NSDecimal *result, const NSDecimal *left, const NSDecimal *right, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalSubtract(NSDecimal *result, const NSDecimal *left, const NSDecimal *right, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalMultiply(NSDecimal *result, const NSDecimal *l, const NSDecimal *r, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalDivide(NSDecimal *result, const NSDecimal *l, const NSDecimal *rr, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalPower(NSDecimal *result, const NSDecimal *n, unsigned power, NSRoundingMode mode);
|
||||
|
||||
extern NSCalculationError
|
||||
GS_EXPORT NSCalculationError
|
||||
NSDecimalMultiplyByPowerOf10(NSDecimal *result, const NSDecimal *n, short power, NSRoundingMode mode);
|
||||
|
||||
extern NSString*
|
||||
GS_EXPORT NSString*
|
||||
NSDecimalString(const NSDecimal *decimal, NSDictionary *locale);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef _NSDictionary_h_GNUSTEP_BASE_INCLUDE
|
||||
#define _NSDictionary_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSArray, NSString, NSEnumerator;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ typedef enum {
|
|||
NSNotificationSuspensionBehaviorDeliverImmediately
|
||||
} NSNotificationSuspensionBehavior;
|
||||
|
||||
extern NSString *NSLocalNotificationCenterType;
|
||||
GS_EXPORT NSString *NSLocalNotificationCenterType;
|
||||
|
||||
@interface NSDistributedNotificationCenter : NSObject
|
||||
{
|
||||
|
|
|
@ -59,13 +59,13 @@
|
|||
@end
|
||||
|
||||
/* Common exceptions */
|
||||
extern NSString *NSInconsistentArchiveException;
|
||||
extern NSString *NSGenericException;
|
||||
extern NSString *NSInternalInconsistencyException;
|
||||
extern NSString *NSInvalidArgumentException;
|
||||
extern NSString *NSMallocException;
|
||||
extern NSString *NSRangeException;
|
||||
extern NSString *NSCharacterConversionException;
|
||||
GS_EXPORT NSString *NSInconsistentArchiveException;
|
||||
GS_EXPORT NSString *NSGenericException;
|
||||
GS_EXPORT NSString *NSInternalInconsistencyException;
|
||||
GS_EXPORT NSString *NSInvalidArgumentException;
|
||||
GS_EXPORT NSString *NSMallocException;
|
||||
GS_EXPORT NSString *NSRangeException;
|
||||
GS_EXPORT NSString *NSCharacterConversionException;
|
||||
|
||||
/* Exception handler definitions */
|
||||
typedef struct _NSHandler
|
||||
|
@ -77,7 +77,7 @@ typedef struct _NSHandler
|
|||
|
||||
typedef void NSUncaughtExceptionHandler(NSException *exception);
|
||||
|
||||
extern NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
|
||||
GS_EXPORT NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
|
||||
#define NSGetUncaughtExceptionHandler() _NSUncaughtExceptionHandler
|
||||
#define NSSetUncaughtExceptionHandler(proc) \
|
||||
(_NSUncaughtExceptionHandler = (proc))
|
||||
|
@ -102,8 +102,8 @@ extern NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler;
|
|||
*/
|
||||
|
||||
/* private support routines. Do not call directly. */
|
||||
extern void _NSAddHandler( NSHandler *handler );
|
||||
extern void _NSRemoveHandler( NSHandler *handler );
|
||||
GS_EXPORT void _NSAddHandler( NSHandler *handler );
|
||||
GS_EXPORT void _NSRemoveHandler( NSHandler *handler );
|
||||
|
||||
#define NS_DURING { NSHandler NSLocalHandler; \
|
||||
_NSAddHandler(&NSLocalHandler); \
|
||||
|
|
|
@ -84,20 +84,20 @@
|
|||
|
||||
// Notification names.
|
||||
|
||||
extern NSString* NSFileHandleConnectionAcceptedNotification;
|
||||
extern NSString* NSFileHandleDataAvailableNotification;
|
||||
extern NSString* NSFileHandleReadCompletionNotification;
|
||||
extern NSString* NSFileHandleReadToEndOfFileCompletionNotification;
|
||||
GS_EXPORT NSString* NSFileHandleConnectionAcceptedNotification;
|
||||
GS_EXPORT NSString* NSFileHandleDataAvailableNotification;
|
||||
GS_EXPORT NSString* NSFileHandleReadCompletionNotification;
|
||||
GS_EXPORT NSString* NSFileHandleReadToEndOfFileCompletionNotification;
|
||||
|
||||
// Keys for accessing userInfo dictionary in notification handlers.
|
||||
|
||||
extern NSString* NSFileHandleNotificationDataItem;
|
||||
extern NSString* NSFileHandleNotificationFileHandleItem;
|
||||
extern NSString* NSFileHandleNotificationMonitorModes;
|
||||
GS_EXPORT NSString* NSFileHandleNotificationDataItem;
|
||||
GS_EXPORT NSString* NSFileHandleNotificationFileHandleItem;
|
||||
GS_EXPORT NSString* NSFileHandleNotificationMonitorModes;
|
||||
|
||||
// Exceptions
|
||||
|
||||
extern NSString* NSFileHandleOperationException;
|
||||
GS_EXPORT NSString* NSFileHandleOperationException;
|
||||
|
||||
@interface NSPipe : NSObject
|
||||
{
|
||||
|
@ -137,10 +137,10 @@ extern NSString* NSFileHandleOperationException;
|
|||
|
||||
// GNUstep Notification names.
|
||||
|
||||
extern NSString* GSFileHandleConnectCompletionNotification;
|
||||
extern NSString* GSFileHandleWriteCompletionNotification;
|
||||
GS_EXPORT NSString* GSFileHandleConnectCompletionNotification;
|
||||
GS_EXPORT NSString* GSFileHandleWriteCompletionNotification;
|
||||
|
||||
// Message describing error in async accept,read,write operation.
|
||||
extern NSString* GSFileHandleNotificationError;
|
||||
GS_EXPORT NSString* GSFileHandleNotificationError;
|
||||
|
||||
#endif /* __NSFileHandle_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -149,40 +149,40 @@
|
|||
@end /* NSDirectoryEnumerator */
|
||||
|
||||
/* File Attributes */
|
||||
extern NSString* const NSFileDeviceIdentifier;
|
||||
extern NSString* const NSFileGroupOwnerAccountName;
|
||||
extern NSString* const NSFileDeviceIdentifier;
|
||||
extern NSString* const NSFileModificationDate;
|
||||
extern NSString* const NSFileOwnerAccountName;
|
||||
extern NSString* const NSFilePosixPermissions;
|
||||
extern NSString* const NSFileReferenceCount;
|
||||
extern NSString* const NSFileSize;
|
||||
extern NSString* const NSFileSystemFileNumber;
|
||||
extern NSString* const NSFileSystemNumber;
|
||||
extern NSString* const NSFileType;
|
||||
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
||||
GS_EXPORT NSString* const NSFileGroupOwnerAccountName;
|
||||
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
||||
GS_EXPORT NSString* const NSFileModificationDate;
|
||||
GS_EXPORT NSString* const NSFileOwnerAccountName;
|
||||
GS_EXPORT NSString* const NSFilePosixPermissions;
|
||||
GS_EXPORT NSString* const NSFileReferenceCount;
|
||||
GS_EXPORT NSString* const NSFileSize;
|
||||
GS_EXPORT NSString* const NSFileSystemFileNumber;
|
||||
GS_EXPORT NSString* const NSFileSystemNumber;
|
||||
GS_EXPORT NSString* const NSFileType;
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
extern NSString* const NSFileGroupOwnerAccountNumber;
|
||||
extern NSString* const NSFileOwnerAccountNumber;
|
||||
GS_EXPORT NSString* const NSFileGroupOwnerAccountNumber;
|
||||
GS_EXPORT NSString* const NSFileOwnerAccountNumber;
|
||||
#endif
|
||||
|
||||
/* File Types */
|
||||
|
||||
extern NSString* const NSFileTypeDirectory;
|
||||
extern NSString* const NSFileTypeRegular;
|
||||
extern NSString* const NSFileTypeSymbolicLink;
|
||||
extern NSString* const NSFileTypeSocket;
|
||||
extern NSString* const NSFileTypeFifo;
|
||||
extern NSString* const NSFileTypeCharacterSpecial;
|
||||
extern NSString* const NSFileTypeBlockSpecial;
|
||||
extern NSString* const NSFileTypeUnknown;
|
||||
GS_EXPORT NSString* const NSFileTypeDirectory;
|
||||
GS_EXPORT NSString* const NSFileTypeRegular;
|
||||
GS_EXPORT NSString* const NSFileTypeSymbolicLink;
|
||||
GS_EXPORT NSString* const NSFileTypeSocket;
|
||||
GS_EXPORT NSString* const NSFileTypeFifo;
|
||||
GS_EXPORT NSString* const NSFileTypeCharacterSpecial;
|
||||
GS_EXPORT NSString* const NSFileTypeBlockSpecial;
|
||||
GS_EXPORT NSString* const NSFileTypeUnknown;
|
||||
|
||||
/* FileSystem Attributes */
|
||||
|
||||
extern NSString* const NSFileSystemSize;
|
||||
extern NSString* const NSFileSystemFreeSize;
|
||||
extern NSString* const NSFileSystemNodes;
|
||||
extern NSString* const NSFileSystemFreeNodes;
|
||||
GS_EXPORT NSString* const NSFileSystemSize;
|
||||
GS_EXPORT NSString* const NSFileSystemFreeSize;
|
||||
GS_EXPORT NSString* const NSFileSystemNodes;
|
||||
GS_EXPORT NSString* const NSFileSystemFreeNodes;
|
||||
|
||||
/* Easy access to attributes in a dictionary */
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSGArchiver_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSGArchiver_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSArchiver.h>
|
||||
#include <base/Coding.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSGArray_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSGArray_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSArray.h>
|
||||
#include <base/Array.h>
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#ifndef _NSGAttributedString_h_INCLUDE
|
||||
#define _NSGAttributedString_h_INCLUDE
|
||||
|
||||
#include "NSAttributedString.h"
|
||||
#include "Foundation/NSAttributedString.h"
|
||||
|
||||
@interface NSGAttributedString : NSAttributedString
|
||||
{
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSGCString_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSGCString_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSGSet_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSGSet_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSSet.h>
|
||||
#include <base/Set.h>
|
||||
#include <base/Bag.h>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#ifndef __NSGString_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSGString_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
/* NSGString and NSGMutableString must have the same initial ivar layout
|
||||
|
|
|
@ -278,7 +278,7 @@ NSInsetRect(NSRect aRect, float dX, float dY)
|
|||
* "cutting" ARECT---parallel to, and a distance AMOUNT from the edge
|
||||
v * of ARECT determined by EDGE. You may pass 0 in as either of SLICE or
|
||||
* REMAINDER to avoid obtaining either of the created rectangles. */
|
||||
extern void
|
||||
GS_EXPORT void
|
||||
NSDivideRect(NSRect aRect,
|
||||
NSRect *slice,
|
||||
NSRect *remainder,
|
||||
|
@ -287,7 +287,7 @@ NSDivideRect(NSRect aRect,
|
|||
|
||||
/* Returns a rectangle obtained by expanding ARECT minimally
|
||||
* so that all four of its defining components are integers. */
|
||||
extern NSRect
|
||||
GS_EXPORT NSRect
|
||||
NSIntegralRect(NSRect aRect);
|
||||
|
||||
/** Compute a Third Rectangle from Two Rectangles... **/
|
||||
|
@ -468,23 +468,23 @@ NSIntersectsRect(NSRect aRect, NSRect bRect)
|
|||
#ifdef __OBJC__
|
||||
/* Returns an NSString of the form "{x=X; y=Y}", where
|
||||
* X and Y are the x- and y-coordinates of APOINT, respectively. */
|
||||
extern NSString *
|
||||
GS_EXPORT NSString *
|
||||
NSStringFromPoint(NSPoint aPoint);
|
||||
|
||||
/* Returns an NSString of the form "{x=X; y=Y; width=W; height=H}",
|
||||
* where X, Y, W, and H are the x-coordinate, y-coordinate,
|
||||
* width, and height of ARECT, respectively. */
|
||||
extern NSString *
|
||||
GS_EXPORT NSString *
|
||||
NSStringFromRect(NSRect aRect);
|
||||
|
||||
/* Returns an NSString of the form "{width=W; height=H}", where
|
||||
* W and H are the width and height of ASIZE, respectively. */
|
||||
extern NSString *
|
||||
GS_EXPORT NSString *
|
||||
NSStringFromSize(NSSize aSize);
|
||||
|
||||
extern NSPoint NSPointFromString(NSString* string);
|
||||
extern NSSize NSSizeFromString(NSString* string);
|
||||
extern NSRect NSRectFromString(NSString* string);
|
||||
GS_EXPORT NSPoint NSPointFromString(NSString* string);
|
||||
GS_EXPORT NSSize NSSizeFromString(NSString* string);
|
||||
GS_EXPORT NSRect NSRectFromString(NSString* string);
|
||||
|
||||
#endif /* __OBJC__ */
|
||||
|
||||
|
|
|
@ -63,23 +63,23 @@ struct _NSHashTableCallBacks
|
|||
};
|
||||
|
||||
/* For sets of pointer-sized or smaller quantities. */
|
||||
extern const NSHashTableCallBacks NSIntHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSIntHashCallBacks;
|
||||
|
||||
/* For sets of pointers hashed by address. */
|
||||
extern const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks;
|
||||
|
||||
/* For sets of objects without retaining and releasing. */
|
||||
extern const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks;
|
||||
|
||||
/* For sets of objects; similar to NSSet. */
|
||||
extern const NSHashTableCallBacks NSObjectHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSObjectHashCallBacks;
|
||||
|
||||
/* For sets of pointers with transfer of ownership upon insertion. */
|
||||
extern const NSHashTableCallBacks NSOwnedPointerHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSOwnedPointerHashCallBacks;
|
||||
|
||||
/* For sets of pointers to structs when the first field of the
|
||||
* struct is the size of an int. */
|
||||
extern const NSHashTableCallBacks NSPointerToStructHashCallBacks;
|
||||
GS_EXPORT const NSHashTableCallBacks NSPointerToStructHashCallBacks;
|
||||
|
||||
/* These are to increase readabilty locally. */
|
||||
typedef unsigned int (*NSHT_hash_func_t)(NSHashTable *, const void *);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef __NSHost_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSHost_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSString, NSArray, NSMutableArray;
|
||||
|
||||
|
|
|
@ -85,37 +85,37 @@ struct _NSMapTableValueCallBacks
|
|||
#define NSNotAPointerMapKey o_not_a_void_p_marker
|
||||
|
||||
/* For keys that are pointer-sized or smaller quantities. */
|
||||
extern const NSMapTableKeyCallBacks NSIntMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSIntMapKeyCallBacks;
|
||||
|
||||
/* For keys that are pointers not freed. */
|
||||
extern const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks;
|
||||
|
||||
/* For keys that are pointers not freed, or 0. */
|
||||
extern const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks;
|
||||
|
||||
/* For sets of objects without retaining and releasing. */
|
||||
extern const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks;
|
||||
|
||||
/* For keys that are objects. */
|
||||
extern const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks;
|
||||
|
||||
/* For keys that are pointers with transfer of ownership upon insertion. */
|
||||
extern const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks;
|
||||
GS_EXPORT const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks;
|
||||
|
||||
/* For values that are pointer-sized quantities. */
|
||||
extern const NSMapTableValueCallBacks NSIntMapValueCallBacks;
|
||||
GS_EXPORT const NSMapTableValueCallBacks NSIntMapValueCallBacks;
|
||||
|
||||
/* For values that are pointers not freed. */
|
||||
extern const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks;
|
||||
GS_EXPORT const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks;
|
||||
|
||||
/* For sets of objects without retaining and releasing. */
|
||||
extern const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks;
|
||||
GS_EXPORT const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks;
|
||||
|
||||
/* For values that are objects. */
|
||||
extern const NSMapTableValueCallBacks NSObjectMapValueCallBacks;
|
||||
GS_EXPORT const NSMapTableValueCallBacks NSObjectMapValueCallBacks;
|
||||
|
||||
/* For values that are pointers with transfer of ownership upon insertion. */
|
||||
extern const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks;
|
||||
GS_EXPORT const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks;
|
||||
|
||||
/* This is for keeping track of information... */
|
||||
typedef struct _NSMT_extra _NSMT_extra_t;
|
||||
|
|
|
@ -24,26 +24,35 @@
|
|||
#ifndef __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <objc/objc.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if BUILD_libgnustep-base_DLL
|
||||
# define GS_EXPORT __declspec(dllexport)
|
||||
#elif libgnustep-base_ISDLL
|
||||
# define GS_EXPORT extern __declspec(dllimport)
|
||||
#else
|
||||
# define GS_EXPORT extern
|
||||
#endif
|
||||
#define GS_IMPORT extern
|
||||
|
||||
@class NSString;
|
||||
|
||||
extern NSString *NSStringFromSelector(SEL aSelector);
|
||||
extern SEL NSSelectorFromString(NSString *aSelectorName);
|
||||
extern Class NSClassFromString(NSString *aClassName);
|
||||
extern NSString *NSStringFromClass(Class aClass);
|
||||
extern const char *NSGetSizeAndAlignment(const char *typePtr, unsigned int *sizep, unsigned int *alignp);
|
||||
GS_EXPORT NSString *NSStringFromSelector(SEL aSelector);
|
||||
GS_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
|
||||
GS_EXPORT Class NSClassFromString(NSString *aClassName);
|
||||
GS_EXPORT NSString *NSStringFromClass(Class aClass);
|
||||
GS_EXPORT const char *NSGetSizeAndAlignment(const char *typePtr, unsigned int *sizep, unsigned int *alignp);
|
||||
|
||||
/* Logging */
|
||||
/* OpenStep spec states that log messages go to stderr, but just in case
|
||||
someone wants them to go somewhere else, they can implement a function
|
||||
like this */
|
||||
typedef void NSLog_printf_handler (NSString* message);
|
||||
extern NSLog_printf_handler *_NSLog_printf_handler;
|
||||
GS_EXPORT NSLog_printf_handler *_NSLog_printf_handler;
|
||||
|
||||
extern void NSLog (NSString* format, ...);
|
||||
extern void NSLogv (NSString* format, va_list args);
|
||||
GS_EXPORT void NSLog (NSString* format, ...);
|
||||
GS_EXPORT void NSLogv (NSString* format, va_list args);
|
||||
|
||||
#ifndef YES
|
||||
#define YES 1
|
||||
|
@ -56,8 +65,8 @@ extern void NSLogv (NSString* format, va_list args);
|
|||
#endif nil
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
extern BOOL GSGetInstanceVariable(id obj, NSString *name, void* data);
|
||||
extern BOOL GSSetInstanceVariable(id obj, NSString *name, const void* data);
|
||||
GS_EXPORT BOOL GSGetInstanceVariable(id obj, NSString *name, void* data);
|
||||
GS_EXPORT BOOL GSSetInstanceVariable(id obj, NSString *name, const void* data);
|
||||
#endif
|
||||
|
||||
#define FOUNDATION_EXPORT
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSPathUtilities_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSPathUtilities_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
|
@ -37,12 +36,12 @@
|
|||
* [NSUserDefaults +resetUserDefaults] extension to reset the defaults system
|
||||
* to use the defaults belonging to the new user.
|
||||
*/
|
||||
extern void GSSetUserName(NSString *name);
|
||||
extern NSArray *GSStandardPathPrefixes(void);
|
||||
GS_EXPORT void GSSetUserName(NSString *name);
|
||||
GS_EXPORT NSArray *GSStandardPathPrefixes(void);
|
||||
#endif
|
||||
extern NSString *NSUserName();
|
||||
extern NSString *NSHomeDirectory();
|
||||
extern NSString *NSHomeDirectoryForUser(NSString *userName);
|
||||
GS_EXPORT NSString *NSUserName();
|
||||
GS_EXPORT NSString *NSHomeDirectory();
|
||||
GS_EXPORT NSString *NSHomeDirectoryForUser(NSString *userName);
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
typedef enum
|
||||
|
@ -66,12 +65,12 @@ typedef unsigned int NSSearchPathDomainMask;
|
|||
#define NSSystemDomainMask 0x00000008
|
||||
#define NSAllDomainsMask 0xffffffff
|
||||
|
||||
extern NSArray *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
|
||||
extern NSString *NSFullUserName(void);
|
||||
extern NSArray *NSStandardApplicationPaths(void);
|
||||
extern NSArray *NSStandardLibraryPaths(void);
|
||||
extern NSString *NSTemporaryDirectory(void);
|
||||
extern NSString *NSOpenStepRootDirectory(void);
|
||||
GS_EXPORT NSArray *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
|
||||
GS_EXPORT NSString *NSFullUserName(void);
|
||||
GS_EXPORT NSArray *NSStandardApplicationPaths(void);
|
||||
GS_EXPORT NSArray *NSStandardLibraryPaths(void);
|
||||
GS_EXPORT NSString *NSTemporaryDirectory(void);
|
||||
GS_EXPORT NSString *NSOpenStepRootDirectory(void);
|
||||
#endif /* !STRICT_OPENSTEP */
|
||||
|
||||
#endif /* __NSPathUtilities_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
@class NSRunLoop;
|
||||
@class NSString;
|
||||
|
||||
extern NSString *NSPortTimeoutException; /* OPENSTEP */
|
||||
GS_EXPORT NSString *NSPortTimeoutException; /* OPENSTEP */
|
||||
|
||||
@interface NSPort : NSObject <NSCoding, NSCopying>
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ extern NSString *NSPortTimeoutException; /* OPENSTEP */
|
|||
@end
|
||||
#endif
|
||||
|
||||
extern NSString* NSPortDidBecomeInvalidNotification;
|
||||
GS_EXPORT NSString* NSPortDidBecomeInvalidNotification;
|
||||
|
||||
#define PortBecameInvalidNotification NSPortDidBecomeInvalidNotification
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSPortCoder_h
|
||||
#define __NSPortCoder_h
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSCoder.h>
|
||||
|
||||
@class NSConnection;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#ifndef __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSArray;
|
||||
@class NSMutableArray;
|
||||
|
@ -63,7 +63,7 @@
|
|||
* This function determines if the specified debug level is present in the
|
||||
* set of active debug levels.
|
||||
*/
|
||||
extern BOOL GSDebugSet(NSString *level);
|
||||
GS_EXPORT BOOL GSDebugSet(NSString *level);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -24,10 +24,8 @@
|
|||
#ifndef __NSProxy_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSProxy_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
|
||||
@interface NSProxy <NSObject>
|
||||
{
|
||||
@public
|
||||
|
|
|
@ -86,7 +86,7 @@ NSLocationInRange(unsigned location, NSRange range)
|
|||
}
|
||||
|
||||
/* Create an NSRange having the specified LOCATION and LENGTH. */
|
||||
extern NSRange
|
||||
GS_EXPORT NSRange
|
||||
NSMakeRange(unsigned int location, unsigned int length);
|
||||
|
||||
GS_RANGE_SCOPE BOOL
|
||||
|
@ -134,8 +134,8 @@ NSIntersectionRange (NSRange aRange, NSRange bRange)
|
|||
|
||||
@class NSString;
|
||||
|
||||
extern NSString *NSStringFromRange(NSRange range);
|
||||
extern NSRange NSRangeFromString(NSString *aString);
|
||||
GS_EXPORT NSString *NSStringFromRange(NSRange range);
|
||||
GS_EXPORT NSRange NSRangeFromString(NSString *aString);
|
||||
|
||||
#ifdef GS_DEFINED_MAX
|
||||
#undef GS_DEFINED_MAX
|
||||
|
|
|
@ -24,13 +24,12 @@
|
|||
#ifndef __NSRunLoop_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSRunLoop_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
|
||||
@class NSTimer, NSDate, NSPort;
|
||||
|
||||
/* Mode strings. */
|
||||
extern id NSDefaultRunLoopMode;
|
||||
GS_EXPORT id NSDefaultRunLoopMode;
|
||||
|
||||
@interface NSRunLoop : NSObject <GCFinalization>
|
||||
{
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSScanner_h_GNUSTEP_INCLUDE
|
||||
#define __NSScanner_h_GNUSTEP_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSDecimal.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSCharacterSet.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef _NSSet_h_GNUSTEP_BASE_INCLUDE
|
||||
#define _NSSet_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSArray, NSString, NSEnumerator, NSDictionary;
|
||||
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#ifndef __NSString_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSString_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
|
||||
typedef unsigned short unichar;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __NSTask_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSTask_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSArray.h>
|
||||
|
@ -88,6 +87,6 @@
|
|||
- (void) waitUntilExit;
|
||||
@end
|
||||
|
||||
extern NSString* NSTaskDidTerminateNotification;
|
||||
GS_EXPORT NSString* NSTaskDidTerminateNotification;
|
||||
|
||||
#endif /* __NSTask_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#ifndef __NSThread_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSThread_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <objc/thr.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSDate.h>
|
||||
|
@ -66,17 +65,17 @@ typedef enum
|
|||
@end
|
||||
|
||||
/* Notification Strings. */
|
||||
extern NSString *NSWillBecomeMultiThreadedNotification;
|
||||
GS_EXPORT NSString *NSWillBecomeMultiThreadedNotification;
|
||||
#define NSBecomingMultiThreaded NSWillBecomeMultiThreadedNotification
|
||||
extern NSString *NSThreadWillExitNotification;
|
||||
GS_EXPORT NSString *NSThreadWillExitNotification;
|
||||
#define NSThreadExiting NSThreadWillExitNotification
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
/*
|
||||
* Get current thread and it's dictionary.
|
||||
*/
|
||||
extern NSThread *GSCurrentThread();
|
||||
extern NSMutableDictionary *GSCurrentThreadDictionary();
|
||||
GS_EXPORT NSThread *GSCurrentThread();
|
||||
GS_EXPORT NSMutableDictionary *GSCurrentThreadDictionary();
|
||||
#endif
|
||||
|
||||
#endif /* __NSThread_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
/* This class is currently thrown together. When it is cleaned up, it
|
||||
may no longer be concrete. */
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSDate.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
@class NSURLHandle;
|
||||
@class NSURL;
|
||||
|
||||
extern NSString* NSURLFileScheme; //file
|
||||
GS_EXPORT NSString* NSURLFileScheme; //file
|
||||
|
||||
//============================================================================
|
||||
@interface NSURL: NSObject <NSCoding, NSCopying, NSURLHandleClient>
|
||||
|
|
|
@ -27,11 +27,11 @@
|
|||
@class NSURLHandle;
|
||||
@class NSURL;
|
||||
|
||||
extern NSString *NSHTTPPropertyStatusCodeKey;
|
||||
extern NSString *NSHTTPPropertyStatusReasonKey;
|
||||
extern NSString *NSHTTPPropertyServerHTTPVersionKey;
|
||||
extern NSString *NSHTTPPropertyRedirectionHeadersKey;
|
||||
extern NSString *NSHTTPPropertyErrorPageDataKey;
|
||||
GS_EXPORT NSString *NSHTTPPropertyStatusCodeKey;
|
||||
GS_EXPORT NSString *NSHTTPPropertyStatusReasonKey;
|
||||
GS_EXPORT NSString *NSHTTPPropertyServerHTTPVersionKey;
|
||||
GS_EXPORT NSString *NSHTTPPropertyRedirectionHeadersKey;
|
||||
GS_EXPORT NSString *NSHTTPPropertyErrorPageDataKey;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
|
@ -31,13 +31,13 @@
|
|||
@class NSInvocation;
|
||||
|
||||
/* Public notification */
|
||||
extern NSString *NSUndoManagerCheckpointNotification;
|
||||
extern NSString *NSUndoManagerDidOpenUndoGroupNotification;
|
||||
extern NSString *NSUndoManagerDidRedoChangeNotification;
|
||||
extern NSString *NSUndoManagerDidUndoChangeNotification;
|
||||
extern NSString *NSUndoManagerWillCloseUndoGroupNotification;
|
||||
extern NSString *NSUndoManagerWillRedoChangeNotification;
|
||||
extern NSString *NSUndoManagerWillUndoChangeNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerCheckpointNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerDidOpenUndoGroupNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerDidRedoChangeNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerDidUndoChangeNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerWillCloseUndoGroupNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerWillRedoChangeNotification;
|
||||
GS_EXPORT NSString *NSUndoManagerWillUndoChangeNotification;
|
||||
|
||||
@interface NSUndoManager: NSObject
|
||||
{
|
||||
|
|
|
@ -37,42 +37,42 @@
|
|||
@class NSTimer;
|
||||
|
||||
/* Standard domains */
|
||||
extern NSString* const NSArgumentDomain;
|
||||
extern NSString* const NSGlobalDomain;
|
||||
extern NSString* const NSRegistrationDomain;
|
||||
GS_EXPORT NSString* const NSArgumentDomain;
|
||||
GS_EXPORT NSString* const NSGlobalDomain;
|
||||
GS_EXPORT NSString* const NSRegistrationDomain;
|
||||
|
||||
/* Public notification */
|
||||
extern NSString* const NSUserDefaultsDidChangeNotification;
|
||||
GS_EXPORT NSString* const NSUserDefaultsDidChangeNotification;
|
||||
/* Backwards compatibility */
|
||||
#define NSUserDefaultsChanged NSUserDefaultsDidChangeNotification
|
||||
|
||||
/* Keys for language-dependent information */
|
||||
extern NSString* const NSWeekDayNameArray;
|
||||
extern NSString* const NSShortWeekDayNameArray;
|
||||
extern NSString* const NSMonthNameArray;
|
||||
extern NSString* const NSShortMonthNameArray;
|
||||
extern NSString* const NSTimeFormatString;
|
||||
extern NSString* const NSDateFormatString;
|
||||
extern NSString* const NSTimeDateFormatString;
|
||||
extern NSString* const NSShortTimeDateFormatString;
|
||||
extern NSString* const NSCurrencySymbol;
|
||||
extern NSString* const NSDecimalSeparator;
|
||||
extern NSString* const NSThousandsSeparator;
|
||||
extern NSString* const NSInternationalCurrencyString;
|
||||
extern NSString* const NSCurrencyString;
|
||||
extern NSString* const NSDecimalDigits;
|
||||
extern NSString* const NSAMPMDesignation;
|
||||
GS_EXPORT NSString* const NSWeekDayNameArray;
|
||||
GS_EXPORT NSString* const NSShortWeekDayNameArray;
|
||||
GS_EXPORT NSString* const NSMonthNameArray;
|
||||
GS_EXPORT NSString* const NSShortMonthNameArray;
|
||||
GS_EXPORT NSString* const NSTimeFormatString;
|
||||
GS_EXPORT NSString* const NSDateFormatString;
|
||||
GS_EXPORT NSString* const NSTimeDateFormatString;
|
||||
GS_EXPORT NSString* const NSShortTimeDateFormatString;
|
||||
GS_EXPORT NSString* const NSCurrencySymbol;
|
||||
GS_EXPORT NSString* const NSDecimalSeparator;
|
||||
GS_EXPORT NSString* const NSThousandsSeparator;
|
||||
GS_EXPORT NSString* const NSInternationalCurrencyString;
|
||||
GS_EXPORT NSString* const NSCurrencyString;
|
||||
GS_EXPORT NSString* const NSDecimalDigits;
|
||||
GS_EXPORT NSString* const NSAMPMDesignation;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
extern NSString* const NSHourNameDesignations;
|
||||
extern NSString* const NSYearMonthWeekDesignations;
|
||||
extern NSString* const NSEarlierTimeDesignations;
|
||||
extern NSString* const NSLaterTimeDesignations;
|
||||
extern NSString* const NSThisDayDesignations;
|
||||
extern NSString* const NSNextDayDesignations;
|
||||
extern NSString* const NSNextNextDayDesignations;
|
||||
extern NSString* const NSPriorDayDesignations;
|
||||
extern NSString* const NSDateTimeOrdering;
|
||||
GS_EXPORT NSString* const NSHourNameDesignations;
|
||||
GS_EXPORT NSString* const NSYearMonthWeekDesignations;
|
||||
GS_EXPORT NSString* const NSEarlierTimeDesignations;
|
||||
GS_EXPORT NSString* const NSLaterTimeDesignations;
|
||||
GS_EXPORT NSString* const NSThisDayDesignations;
|
||||
GS_EXPORT NSString* const NSNextDayDesignations;
|
||||
GS_EXPORT NSString* const NSNextNextDayDesignations;
|
||||
GS_EXPORT NSString* const NSPriorDayDesignations;
|
||||
GS_EXPORT NSString* const NSDateTimeOrdering;
|
||||
#endif
|
||||
|
||||
/* General implementation notes:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef __NSZone_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSZone_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <Foundation/NSObjCRuntime.h>
|
||||
|
||||
@class NSString;
|
||||
|
||||
|
@ -60,7 +60,7 @@ void *GSOutOfMemory(size_t size, BOOL retry);
|
|||
|
||||
/* Default zone. Name is hopelessly long so that no one will ever
|
||||
want to use it. ;) Private variable. */
|
||||
extern NSZone* __nszone_private_hidden_default_zone;
|
||||
GS_EXPORT NSZone* __nszone_private_hidden_default_zone;
|
||||
|
||||
#ifndef GS_WITH_GC
|
||||
#define GS_WITH_GC 0
|
||||
|
@ -69,21 +69,21 @@ extern NSZone* __nszone_private_hidden_default_zone;
|
|||
|
||||
#include <gc.h>
|
||||
|
||||
extern NSZone* __nszone_private_hidden_atomic_zone;
|
||||
GS_EXPORT NSZone* __nszone_private_hidden_atomic_zone;
|
||||
|
||||
extern inline NSZone* NSCreateZone (size_t start, size_t gran, BOOL canFree)
|
||||
GS_EXPORT inline NSZone* NSCreateZone (size_t start, size_t gran, BOOL canFree)
|
||||
{ return __nszone_private_hidden_default_zone; }
|
||||
|
||||
extern inline NSZone* NSDefaultMallocZone (void)
|
||||
GS_EXPORT inline NSZone* NSDefaultMallocZone (void)
|
||||
{ return __nszone_private_hidden_default_zone; }
|
||||
|
||||
extern inline NSZone* GSAtomicMallocZone (void)
|
||||
GS_EXPORT inline NSZone* GSAtomicMallocZone (void)
|
||||
{ return __nszone_private_hidden_atomic_zone; }
|
||||
|
||||
extern inline NSZone* NSZoneFromPointer (void *ptr)
|
||||
GS_EXPORT inline NSZone* NSZoneFromPointer (void *ptr)
|
||||
{ return __nszone_private_hidden_default_zone; }
|
||||
|
||||
extern inline void* NSZoneMalloc (NSZone *zone, size_t size)
|
||||
GS_EXPORT inline void* NSZoneMalloc (NSZone *zone, size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
|
||||
|
@ -97,7 +97,7 @@ extern inline void* NSZoneMalloc (NSZone *zone, size_t size)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
extern inline void* NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
|
||||
GS_EXPORT inline void* NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
|
||||
{
|
||||
size_t size = elems * bytes;
|
||||
void *ptr;
|
||||
|
@ -113,7 +113,7 @@ extern inline void* NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
extern inline void* NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
|
||||
GS_EXPORT inline void* NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
|
||||
{
|
||||
ptr = GC_REALLOC(ptr, size);
|
||||
if (ptr == 0)
|
||||
|
@ -121,37 +121,37 @@ extern inline void* NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
extern inline void NSRecycleZone (NSZone *zone)
|
||||
GS_EXPORT inline void NSRecycleZone (NSZone *zone)
|
||||
{
|
||||
}
|
||||
|
||||
extern inline void NSZoneFree (NSZone *zone, void *ptr)
|
||||
GS_EXPORT inline void NSZoneFree (NSZone *zone, void *ptr)
|
||||
{
|
||||
GC_FREE(ptr);
|
||||
}
|
||||
|
||||
extern inline void NSSetZoneName (NSZone *zone, NSString *name)
|
||||
GS_EXPORT inline void NSSetZoneName (NSZone *zone, NSString *name)
|
||||
{
|
||||
}
|
||||
|
||||
extern inline NSString* NSZoneName (NSZone *zone)
|
||||
GS_EXPORT inline NSString* NSZoneName (NSZone *zone)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
|
||||
extern inline void* NSZoneMallocAtomic (NSZone *zone, size_t size)
|
||||
GS_EXPORT inline void* NSZoneMallocAtomic (NSZone *zone, size_t size)
|
||||
{
|
||||
return NSZoneMalloc(GSAtomicMallocZone(), size);
|
||||
}
|
||||
|
||||
extern inline BOOL NSZoneCheck (NSZone *zone)
|
||||
GS_EXPORT inline BOOL NSZoneCheck (NSZone *zone)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
extern inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
||||
GS_EXPORT inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
||||
{
|
||||
struct NSZoneStats stats = { 0 };
|
||||
return stats;
|
||||
|
@ -160,53 +160,53 @@ extern inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
|||
|
||||
#else /* GS_WITH_GC */
|
||||
|
||||
extern NSZone* NSCreateZone (size_t start, size_t gran, BOOL canFree);
|
||||
GS_EXPORT NSZone* NSCreateZone (size_t start, size_t gran, BOOL canFree);
|
||||
|
||||
extern inline NSZone* NSDefaultMallocZone (void)
|
||||
GS_EXPORT inline NSZone* NSDefaultMallocZone (void)
|
||||
{
|
||||
return __nszone_private_hidden_default_zone;
|
||||
}
|
||||
|
||||
extern inline NSZone* GSAtomicMallocZone (void)
|
||||
GS_EXPORT inline NSZone* GSAtomicMallocZone (void)
|
||||
{
|
||||
return NSDefaultMallocZone();
|
||||
}
|
||||
|
||||
extern NSZone* NSZoneFromPointer (void *ptr);
|
||||
GS_EXPORT NSZone* NSZoneFromPointer (void *ptr);
|
||||
|
||||
extern inline void* NSZoneMalloc (NSZone *zone, size_t size)
|
||||
GS_EXPORT inline void* NSZoneMalloc (NSZone *zone, size_t size)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
return (zone->malloc)(zone, size);
|
||||
}
|
||||
|
||||
extern void* NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes);
|
||||
GS_EXPORT void* NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes);
|
||||
|
||||
extern inline void* NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
|
||||
GS_EXPORT inline void* NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
return (zone->realloc)(zone, ptr, size);
|
||||
}
|
||||
|
||||
extern inline void NSRecycleZone (NSZone *zone)
|
||||
GS_EXPORT inline void NSRecycleZone (NSZone *zone)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
(zone->recycle)(zone);
|
||||
}
|
||||
|
||||
extern inline void NSZoneFree (NSZone *zone, void *ptr)
|
||||
GS_EXPORT inline void NSZoneFree (NSZone *zone, void *ptr)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
(zone->free)(zone, ptr);
|
||||
}
|
||||
|
||||
extern void NSSetZoneName (NSZone *zone, NSString *name);
|
||||
GS_EXPORT void NSSetZoneName (NSZone *zone, NSString *name);
|
||||
|
||||
extern inline NSString* NSZoneName (NSZone *zone)
|
||||
GS_EXPORT inline NSString* NSZoneName (NSZone *zone)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
|
@ -214,21 +214,21 @@ extern inline NSString* NSZoneName (NSZone *zone)
|
|||
}
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
extern inline void* NSZoneMallocAtomic (NSZone *zone, size_t size)
|
||||
GS_EXPORT inline void* NSZoneMallocAtomic (NSZone *zone, size_t size)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
return (zone->malloc)(zone, size);
|
||||
}
|
||||
|
||||
extern inline BOOL NSZoneCheck (NSZone *zone)
|
||||
GS_EXPORT inline BOOL NSZoneCheck (NSZone *zone)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
return (zone->check)(zone);
|
||||
}
|
||||
|
||||
extern inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
||||
GS_EXPORT inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
||||
{
|
||||
if (!zone)
|
||||
zone = NSDefaultMallocZone();
|
||||
|
@ -239,22 +239,22 @@ extern inline struct NSZoneStats NSZoneStats (NSZone *zone)
|
|||
#endif /* GS_WITH_GC */
|
||||
|
||||
|
||||
extern unsigned NSPageSize (void) __attribute__ ((const));
|
||||
GS_EXPORT unsigned NSPageSize (void) __attribute__ ((const));
|
||||
|
||||
extern unsigned NSLogPageSize (void) __attribute__ ((const));
|
||||
GS_EXPORT unsigned NSLogPageSize (void) __attribute__ ((const));
|
||||
|
||||
extern unsigned NSRoundDownToMultipleOfPageSize (unsigned bytes)
|
||||
GS_EXPORT unsigned NSRoundDownToMultipleOfPageSize (unsigned bytes)
|
||||
__attribute__ ((const));
|
||||
|
||||
extern unsigned NSRoundUpToMultipleOfPageSize (unsigned bytes)
|
||||
GS_EXPORT unsigned NSRoundUpToMultipleOfPageSize (unsigned bytes)
|
||||
__attribute__ ((const));
|
||||
|
||||
extern unsigned NSRealMemoryAvailable (void);
|
||||
GS_EXPORT unsigned NSRealMemoryAvailable (void);
|
||||
|
||||
extern void* NSAllocateMemoryPages (unsigned bytes);
|
||||
GS_EXPORT void* NSAllocateMemoryPages (unsigned bytes);
|
||||
|
||||
extern void NSDeallocateMemoryPages (void *ptr, unsigned bytes);
|
||||
GS_EXPORT void NSDeallocateMemoryPages (void *ptr, unsigned bytes);
|
||||
|
||||
extern void NSCopyMemoryPages (const void *src, void *dest, unsigned bytes);
|
||||
GS_EXPORT void NSCopyMemoryPages (const void *src, void *dest, unsigned bytes);
|
||||
|
||||
#endif /* not __NSZone_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
|
||||
*/
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/LinkedList.h>
|
||||
#include <base/Array.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#ifndef __OrderedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __OrderedCollecting_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/IndexedCollecting.h>
|
||||
|
||||
@protocol OrderedCollecting <IndexedCollecting>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __OrderedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __OrderedCollection_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/IndexedCollection.h>
|
||||
#include <base/OrderedCollecting.h>
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#ifndef __Ordering_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Ordering_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <objc/objc.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@protocol Ordering
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Port_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Port_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Coding.h>
|
||||
#include <base/MemoryStream.h>
|
||||
#include <Foundation/NSPort.h>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Queue_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Queue_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/CircularArray.h>
|
||||
|
||||
@interface Queue : CircularArray
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __RBTree_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __RBTree_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/BinaryTree.h>
|
||||
|
||||
@protocol RBTreeComprising <BinaryTreeComprising>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __RBTreeNode_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __RBTreeNode_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/BinaryTreeNode.h>
|
||||
#include <base/RBTree.h>
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
This directory contains header files for the GNU Objective C Class
|
||||
Library, `libobjects'.
|
||||
|
||||
The complete list of include file directories belonging to libobjects
|
||||
is:
|
||||
../objects
|
||||
../objc
|
||||
../Foundation
|
|
@ -27,7 +27,6 @@
|
|||
#ifndef __RNGAdditiveCongruential_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __RNGAdditiveCongruential_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/RandomGenerating.h>
|
||||
|
||||
@interface RNGAdditiveCongruential : NSObject <RandomGenerating>
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
* It was reworked for the GNU Objective-C Library by Andrew Kachites McCallum
|
||||
*/
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/RandomGenerating.h>
|
||||
|
||||
@interface RNGBerkeley : NSObject <RandomGenerating>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Random_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Random_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/RandomGenerating.h>
|
||||
|
||||
@interface Random : NSObject
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __RandomGenerating_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __RandomGenerating_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@protocol RandomGenerating <NSObject, NSCoding>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __RawCStream_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __RawCStream_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Stream.h>
|
||||
#include <base/CStream.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __Retaining_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Retaining_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@protocol Retaining
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#ifndef __Set_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __Set_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/Collection.h>
|
||||
#include <Foundation/NSHashTable.h>
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#ifndef __SplayTree_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __SplayTree_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <base/preface.h>
|
||||
#include <base/BinaryTree.h>
|
||||
|
||||
@interface SplayTree : BinaryTree
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue