make library buid without referring to installed headers

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/reorg@29535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-10 17:15:09 +00:00
parent f4df92a9b9
commit 7e09c86e68
116 changed files with 935 additions and 876 deletions

View file

@ -22,8 +22,6 @@
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
AutogsdocSource: Additions/GSCategories.m
*/
#ifndef INCLUDED_GS_CATEGORIES_H

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSArray_GNUstepBase_h
#define INCLUDED_NSArray_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSArray.h>
#if defined(__cplusplus)
extern "C" {
@ -37,10 +37,33 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSArray (GNUstepBase)
- (id) initWithArray: (NSArray*)array copyItems: (BOOL)shouldCopy;
/** <p>Method for working with sorted arrays - use a binary chop
* to determine the insertion location for an object. If equal objects
* already exist in the array, they will be located immediately before
* the insertion position.
* </p>
* <p>The comparator function takes two items as arguments, the first is the
* item to be added, the second is the item already in the array.
* The function should return NSOrderedAscending if the item to be
* added is 'less than' the item in the array, NSOrderedDescending
* if it is greater, and NSOrderedSame if it is equal.
* </p>
*/
- (NSUInteger) insertionPosition: (id)item
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
context: (void *)context;
/* <p>Method for working with sorted arrays - use a binary chop
* to determine the insertion location for an object. If equal objects
* already exist in the array, they will be located immediately before
* the insertion position.
* </p>
* <p>The selector identifies a method returning NSOrderedAscending if
* the receiver is 'less than' the argument, and NSOrderedDescending if
* it is greate.
* </p>
*/
- (NSUInteger) insertionPosition: (id)item
usingSelector: (SEL)comp;
@end

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSAttributedString_GNUstepBase_h
#define INCLUDED_NSAttributedString_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSAttributedString.h>
#if defined(__cplusplus)
extern "C" {
@ -37,6 +37,10 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSAttributedString (GNUstepBase)
/**
* Deprecated synonym for attributedSubstringFromRange:
* for consistency with NSString
*/
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
@end

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSBundle_GNUstepBase_h
#define INCLUDED_NSBundle_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSBundle.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -28,8 +28,8 @@
#ifndef INCLUDED_NSCalendarDate_GNUstepBase_h
#define INCLUDED_NSCalendarDate_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSCalendarDate.h>
#if defined(__cplusplus)
extern "C" {
@ -38,6 +38,16 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSCalendarDate (GNUstepBase)
/**
* The ISO standard week of the year is based on the first week of the
* year being that week (starting on monday) for which the thursday
* is on or after the first of january.<br />
* This has the effect that, if january first is a friday, saturday or
* sunday, the days of that week (up to and including the sunday) are
* considered to be in week 53 of the preceding year. Similarly if the
* last day of the year is a monday tuesday or wednesday, these days are
* part of week 1 of the next year.
*/
- (NSInteger) weekOfYear;
@end

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSData_GNUstepBase_h
#define INCLUDED_NSData_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSData.h>
#if defined(__cplusplus)
extern "C" {
@ -37,12 +37,65 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSData (GNUstepBase)
/**
* Returns an NSString object containing an ASCII hexadecimal representation
* of the receiver. This means that the returned object will contain
* exactly twice as many characters as there are bytes as the receiver,
* as each byte in the receiver is represented by two hexadecimal digits.<br />
* The high order four bits of each byte is encoded before the low
* order four bits. Capital letters 'A' to 'F' are used to represent
* values from 10 to 15.<br />
* If you need the hexadecimal representation as raw byte data, use code
* like -
* <example>
* hexData = [[sourceData hexadecimalRepresentation]
* dataUsingEncoding: NSASCIIStringEncoding];
* </example>
*/
- (NSString*) hexadecimalRepresentation;
/**
* Initialises the receiver with the supplied string data which contains
* a hexadecimal coding of the bytes. The parsing of the string is
* fairly tolerant, ignoring whitespace and permitting both upper and
* lower case hexadecimal digits (the -hexadecimalRepresentation method
* produces a string using only uppercase digits with no white space).<br />
* If the string does not contain one or more pairs of hexadecimal digits
* then an exception is raised.
*/
- (id) initWithHexadecimalRepresentation: (NSString*)string;
/**
* Creates an MD5 digest of the information stored in the receiver and
* returns it as an autoreleased 16 byte NSData object.<br />
* If you need to produce a digest of string information, you need to
* decide what character encoding is to be used and convert your string
* to a data object of that encoding type first using the
* [NSString-dataUsingEncoding:] method -
* <example>
* myDigest = [[myString dataUsingEncoding: NSUTF8StringEncoding] md5Digest];
* </example>
* If you need to use the digest in a human readable form, you will
* probably want it to be seen as 32 hexadecimal digits, and can do that
* using the -hexadecimalRepresentation method.
*/
- (NSData*) md5Digest;
/**
* Decodes the source data from uuencoded and return the result.<br />
* Returns the encoded file name in namePtr if it is not null.
* Returns the encoded file mode in modePtr if it is not null.
*/
- (BOOL) uudecodeInto: (NSMutableData*)decoded
name: (NSString**)namePtr
mode: (NSInteger*)modePtr;
/**
* Encode the source data to uuencoded.<br />
* Uses the supplied name as the filename in the encoded data,
* and says that the file mode is as specified.<br />
* If no name is supplied, uses <code>untitled</code> as the name.
*/
- (BOOL) uuencodeInto: (NSMutableData*)encoded
name: (NSString*)name
mode: (NSInteger)mode;

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSFileHandle_GNUstepBase_h
#define INCLUDED_NSFileHandle_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSFileHandle.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSInvocation_GNUstepBase_h
#define INCLUDED_NSInvocation_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSInvocation.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSLock_GNUstepBase_h
#define INCLUDED_NSLock_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSLock.h>
#if defined(__cplusplus)
extern "C" {
@ -36,11 +36,83 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
/**
* Returns IDENT which will be initialized
* to an instance of a CLASSNAME in a thread safe manner.
* If IDENT has been previously initialized
* this macro merely returns IDENT.
* IDENT is considered uninitialized, if it contains nil.
* CLASSNAME must be either NSLock, NSRecursiveLock or one
* of their subclasses.
* See [NSLock+newLockAt:] for details.
* This macro is intended for code that cannot insure
* that a lock can be initialized in thread safe manner otherwise.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
#define GS_INITIALIZED_LOCK(IDENT,CLASSNAME) \
(IDENT != nil ? (id)IDENT : (id)[CLASSNAME newLockAt: &IDENT])
@interface NSLock (GNUstepBase)
/**
* Initializes the id pointed to by location
* with a new instance of the receiver's class
* in a thread safe manner, unless
* it has been previously initialized.
* Returns the contents pointed to by location.
* The location is considered unintialized if it contains nil.
* <br/>
* This method is used in the GS_INITIALIZED_LOCK macro
* to initialize lock variables when it cannot be insured
* that they can be initialized in a thread safe environment.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
+ (id) newLockAt: (id *)location;
@end
@interface NSRecursiveLock (GNUstepBase)
/**
* Initializes the id pointed to by location
* with a new instance of the receiver's class
* in a thread safe manner, unless
* it has been previously initialized.
* Returns the contents pointed to by location.
* The location is considered unintialized if it contains nil.
* <br/>
* This method is used in the GS_INITIALIZED_LOCK macro
* to initialize lock variables when it cannot be insured
* that they can be initialized in a thread safe environment.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
+ (id) newLockAt: (id *)location;
@end

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSMutableString_GNUstepBase_h
#define INCLUDED_NSMutableString_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSString.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSNumber_GNUstepBase_h
#define INCLUDED_NSNumber_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSValue.h>
#if defined(__cplusplus)
extern "C" {
@ -37,6 +37,12 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSNumber(GNUstepBase)
/**
* Parses string as a <code>double</code>, <code>int</code>, or <code>unsigned
* int</code> depending on what characters are present. Uses
* <code>atof</code> and <code>atoi</code> which don't report errors, so be
* careful if the string might contain an invalid value.
*/
+ (NSValue*) valueFromString: (NSString *)string;
@end

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSObject_GNUstepBase_h
#define INCLUDED_NSObject_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSObject.h>
#if defined(__cplusplus)
extern "C" {
@ -37,8 +37,29 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSObject (GNUstepBase)
/**
* Message sent when an implementation wants to explicitly exclude a method
* (but cannot due to compiler constraint), and wants to make sure it is not
* called by mistake. Default implementation raises an exception at runtime.
*/
- (id) notImplemented: (SEL)aSel;
/**
* Message sent when an implementation wants to explicitly require a subclass
* to implement a method (but cannot at compile time since there is no
* <code>abstract</code> keyword in Objective-C). Default implementation
* raises an exception at runtime to alert developer that he/she forgot to
* override a method.
*/
- (id) subclassResponsibility: (SEL)aSel;
/**
* Message sent when an implementation wants to explicitly exclude a method
* (but cannot due to compiler constraint) and forbid that subclasses
* implement it. Default implementation raises an exception at runtime. If a
* subclass <em>does</em> implement this method, however, the superclass's
* implementation will not be called, so this is not a perfect mechanism.
*/
- (id) shouldNotImplement: (SEL)aSel;
/**
WARNING: The -compare: method for NSObject is deprecated

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSProcessInfo_GNUstepBase_h
#define INCLUDED_NSProcessInfo_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSProcessInfo.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -27,9 +27,8 @@
#ifndef INCLUDED_NSString_GNUstepBase_h
#define INCLUDED_NSString_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSString.h>
#if defined(__cplusplus)
extern "C" {

View file

@ -26,6 +26,15 @@
#ifndef INCLUDED_NSTask_GNUstepBase_h
#define INCLUDED_NSTask_GNUstepBase_h
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSTask.h>
#if defined(__cplusplus)
extern "C" {
#endif
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSTask (GNUstepBase)
/** Returns the launch path for a tool given the name of a tool.<br />
* Locates the tool by looking in the standard directories and,
@ -37,5 +46,11 @@
+ (NSString*) launchPathForTool: (NSString*)name;
@end
#endif /* OS_API_VERSION */
#if defined(__cplusplus)
}
#endif
#endif /* INCLUDED_NSTask_GNUstepBase_h */

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_NSURL_GNUstepBase_h
#define INCLUDED_NSURL_GNUstepBase_h
#include <GNUstepBase/GSVersionMacros.h>
#include <Foundation/Foundation.h>
#import <GNUstepBase/GSVersionMacros.h>
#import <Foundation/NSURL.h>
#if defined(__cplusplus)
extern "C" {
@ -37,6 +37,8 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
@interface NSURL (GNUstepBase)
/** Returns the full path for this URL including any trailing slash.
*/
- (NSString*) fullPath;
@end

View file

@ -116,6 +116,9 @@ extern "C" {
- (BOOL) writeToURL: (NSURL*)url atomically: (BOOL)useAuxiliaryFile;
- (id) valueForKey: (NSString*)key;
#endif
#if OS_API_VERSION(100600, GS_API_LATEST)
DEFINE_BLOCK_TYPE(GSEnumeratorBlock, void, id, NSUInteger, BOOL*);
DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
/**
@ -124,7 +127,8 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* a pointer to a BOOL indicating whether the enumeration should stop. Setting
* this to YES will interrupt the enumeration.
*/
- (void)enumerateObjectsUsingBlock: (GSEnumeratorBlock)aBlock;
- (void) enumerateObjectsUsingBlock: (GSEnumeratorBlock)aBlock;
/**
* Enumerate over the collection using the given block. The first argument is
* the object and the second is the index in the array. The final argument is
@ -135,8 +139,8 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (void)enumerateObjectsWithOptions: (NSEnumerationOptions)opts
usingBlock: (GSEnumeratorBlock)aBlock;
- (void) enumerateObjectsWithOptions: (NSEnumerationOptions)opts
usingBlock: (GSEnumeratorBlock)aBlock;
/**
* Enumerate over the specified indexes in the collection using the given
* block. The first argument is the object and the second is the index in the
@ -148,9 +152,9 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (void)enumerateObjectsAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
usingBlock: (GSEnumeratorBlock)block;
- (void) enumerateObjectsAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
usingBlock: (GSEnumeratorBlock)block;
/**
* Returns the indexes of the objects in a collection that match the condition
* specified by the block.
@ -159,13 +163,15 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (NSIndexSet *)indexesOfObjectsWithOptions: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
- (NSIndexSet *) indexesOfObjectsWithOptions: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
/**
* Returns the indexes of the objects in a collection that match the condition
* specified by the block.
*/
- (NSIndexSet*)indexesOfObjectsPassingTest: (GSPredicateBlock)predicate;
- (NSIndexSet*) indexesOfObjectsPassingTest: (GSPredicateBlock)predicate;
/**
* Returns the indexes of the objects in a collection that match the condition
* specified by the block and are in the range specified by the index set.
@ -174,9 +180,10 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (NSIndexSet*)indexesOfObjectsAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
- (NSIndexSet*) indexesOfObjectsAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
/**
* Returns the index of the first object in the array that matches the
* condition specified by the block.
@ -185,13 +192,15 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (NSUInteger)indexOfObjectWithOptions: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
- (NSUInteger) indexOfObjectWithOptions: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
/**
* Returns the index of the first object in the array that matches the
* condition specified by the block.
*/
- (NSUInteger)indexOfObjectPassingTest: (GSPredicateBlock)predicate;
- (NSUInteger) indexOfObjectPassingTest: (GSPredicateBlock)predicate;
/**
* Returns the index of the first object in the specified range in a collection
* that matches the condition specified by the block.
@ -200,9 +209,10 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
* specifies that it is thread-safe. The NSEnumerationReverse bit specifies
* that it should be enumerated in reverse order.
*/
- (NSUInteger)indexOfObjectAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
- (NSUInteger) indexOfObjectAtIndexes: (NSIndexSet*)indexSet
options: (NSEnumerationOptions)opts
passingTest: (GSPredicateBlock)predicate;
#endif
@end
@ -257,29 +267,6 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, id, NSUInteger, BOOL*);
@end
@interface NSArray (GSCategories)
/*
* Extension methods for working with sorted arrays - use a binary chop
* to determine the insertion location for an nobject. If equal objects
* already exist in the array, they will be located immediately before
* the insertion position.
*
* The comparator function takes two items as arguments, the first is the
* item to be added, the second is the item already in the array.
* The function should return NSOrderedAscending if the item to be
* added is 'less than' the item in the array, NSOrderedDescending
* if it is greater, and NSOrderedSame if it is equal.
*
* The selector version works the same - returning NSOrderedAscending if
* the receiver is 'less than' the item in the array.
*/
- (NSUInteger) insertionPosition: (id)item
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
context: (void *)context;
- (NSUInteger) insertionPosition: (id)item
usingSelector: (SEL)comp;
@end
#if defined(__cplusplus)
}
#endif

View file

@ -133,16 +133,6 @@ extern "C" {
@end //NSMutableAttributedString
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
@interface NSAttributedString (GSCategories)
/**
* Dep[recated synonym for attributedSubstringFromRange:
* for consistency with NSString
*/
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
@end
#endif
#endif /* GS_API_MACOSX */
#if defined(__cplusplus)

View file

@ -123,27 +123,12 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
/**
* Adds <code>-weekOfYear</code> method.
*/
@interface NSCalendarDate (GSCategories)
/**
* The ISO standard week of the year is based on the first week of the
* year being that week (starting on monday) for which the thursday
* is on or after the first of january.<br />
* This has the effect that, if january first is a friday, saturday or
* sunday, the days of that week (up to and including the sunday) are
* considered to be in week 53 of the preceding year. Similarly if the
* last day of the year is a monday tuesday or wednesday, these days are
* part of week 1 of the next year.
*/
- (NSInteger) weekOfYear;
@end
@interface NSCalendarDate (GregorianDate)
- (NSInteger) lastDayOfGregorianMonth: (NSInteger)month year: (NSInteger)year;
- (NSInteger) absoluteGregorianDay: (NSInteger)day month: (NSInteger)month year: (NSInteger)year;
- (NSInteger) absoluteGregorianDay: (NSInteger)day
month: (NSInteger)month
year: (NSInteger)year;
- (void) gregorianDateFromAbsolute: (NSInteger)d
day: (NSInteger*)day
month: (NSInteger*)month

View file

@ -167,75 +167,6 @@ enum {
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
/**
* Extension methods for the NSData class- mainly conversion utilities.
*/
@interface NSData (GSCategories)
/**
* Returns an NSString object containing an ASCII hexadecimal representation
* of the receiver. This means that the returned object will contain
* exactly twice as many characters as there are bytes as the receiver,
* as each byte in the receiver is represented by two hexadecimal digits.<br />
* The high order four bits of each byte is encoded before the low
* order four bits. Capital letters 'A' to 'F' are used to represent
* values from 10 to 15.<br />
* If you need the hexadecimal representation as raw byte data, use code
* like -
* <example>
* hexData = [[sourceData hexadecimalRepresentation]
* dataUsingEncoding: NSASCIIStringEncoding];
* </example>
*/
- (NSString*) hexadecimalRepresentation;
/**
* Initialises the receiver with the supplied string data which contains
* a hexadecimal coding of the bytes. The parsing of the string is
* fairly tolerant, ignoring whitespace and permitting both upper and
* lower case hexadecimal digits (the -hexadecimalRepresentation method
* produces a string using only uppercase digits with no white space).<br />
* If the string does not contain one or more pairs of hexadecimal digits
* then an exception is raised.
*/
- (id) initWithHexadecimalRepresentation: (NSString*)string;
/**
* Creates an MD5 digest of the information stored in the receiver and
* returns it as an autoreleased 16 byte NSData object.<br />
* If you need to produce a digest of string information, you need to
* decide what character encoding is to be used and convert your string
* to a data object of that encoding type first using the
* [NSString-dataUsingEncoding:] method -
* <example>
* myDigest = [[myString dataUsingEncoding: NSUTF8StringEncoding] md5Digest];
* </example>
* If you need to use the digest in a human readable form, you will
* probably want it to be seen as 32 hexadecimal digits, and can do that
* using the -hexadecimalRepresentation method.
*/
- (NSData*) md5Digest;
/**
* Decodes the source data from uuencoded and return the result.<br />
* Returns the encoded file name in namePtr if it is not null.
* Returns the encoded file mode in modePtr if it is not null.
*/
- (BOOL) uudecodeInto: (NSMutableData*)decoded
name: (NSString**)namePtr
mode: (int*)modePtr;
/**
* Encode the source data to uuencoded.<br />
* Uses the supplied name as the filename in the encoded data,
* and says that the file mode is as specified.<br />
* If no name is supplied, uses <code>untitled</code> as the name.
*/
- (BOOL) uuencodeInto: (NSMutableData*)encoded
name: (NSString*)name
mode: (int)mode;
@end
/*
* We include special support for coding/decoding - adding methods for
* serializing/deserializing type-tags and cross-references.

View file

@ -172,19 +172,19 @@ GS_EXPORT NSString * const NSFileHandleOperationException;
// GNUstep class extensions
@interface NSFileHandle (GNUstepExtensions)
+ (id) fileHandleAsServerAtAddress: (NSString*)address
service: (NSString*)service
protocol: (NSString*)protocol;
+ (id) fileHandleAsClientAtAddress: (NSString*)address
service: (NSString*)service
protocol: (NSString*)protocol;
+ (id) fileHandleAsClientInBackgroundAtAddress: (NSString*)address
service: (NSString*)service
protocol: (NSString*)protocol;
+ (id) fileHandleAsClientInBackgroundAtAddress: (NSString*)address
service: (NSString*)service
protocol: (NSString*)protocol
forModes: (NSArray*)modes;
+ (id) fileHandleAsServerAtAddress: (NSString*)a
service: (NSString*)s
protocol: (NSString*)p;
+ (id) fileHandleAsClientAtAddress: (NSString*)a
service: (NSString*)s
protocol: (NSString*)p;
+ (id) fileHandleAsClientInBackgroundAtAddress: (NSString*)a
service: (NSString*)s
protocol: (NSString*)p;
+ (id) fileHandleAsClientInBackgroundAtAddress: (NSString*)a
service: (NSString*)s
protocol: (NSString*)p
forModes: (NSArray*)m;
- (void) readDataInBackgroundAndNotifyLength: (unsigned)len;
- (void) readDataInBackgroundAndNotifyLength: (unsigned)len
forModes: (NSArray*)modes;

View file

@ -290,96 +290,6 @@ extern "C" {
@end
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
/**
* Returns IDENT which will be initialized
* to an instance of a CLASSNAME in a thread safe manner.
* If IDENT has been previously initialized
* this macro merely returns IDENT.
* IDENT is considered uninitialized, if it contains nil.
* CLASSNAME must be either NSLock, NSRecursiveLock or one
* of their subclasses.
* See [NSLock+newLockAt:] for details.
* This macro is intended for code that cannot insure
* that a lock can be initialized in thread safe manner otherwise.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
#define GS_INITIALIZED_LOCK(IDENT,CLASSNAME) \
(IDENT != nil ? (id)IDENT : (id)[CLASSNAME newLockAt: &IDENT])
/**
* Defines the <code>newLockAt:</code> method.
*/
@interface NSLock (GSCategories)
/**
* Initializes the id pointed to by location
* with a new instance of the receiver's class
* in a thread safe manner, unless
* it has been previously initialized.
* Returns the contents pointed to by location.
* The location is considered unintialized if it contains nil.
* <br/>
* This method is used in the GS_INITIALIZED_LOCK macro
* to initialize lock variables when it cannot be insured
* that they can be initialized in a thread safe environment.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
+ (id) newLockAt: (id *)location;
@end
/**
* Defines the <code>newLockAt:</code> method.
*/
@interface NSRecursiveLock (GSCategories)
/**
* Initializes the id pointed to by location
* with a new instance of the receiver's class
* in a thread safe manner, unless
* it has been previously initialized.
* Returns the contents pointed to by location.
* The location is considered unintialized if it contains nil.
* <br/>
* This method is used in the GS_INITIALIZED_LOCK macro
* to initialize lock variables when it cannot be insured
* that they can be initialized in a thread safe environment.
* <example>
* NSLock *my_lock = nil;
*
* void function (void)
* {
* [GS_INITIALIZED_LOCK(my_lock, NSRecursiveLock) lock];
* do_work ();
* [my_lock unlock];
* }
*
* </example>
*/
+ (id) newLockAt: (id *)location;
@end
#endif /* GS_API_NONE */
#if defined(__cplusplus)
}
#endif

View file

@ -376,50 +376,6 @@ GS_EXPORT NSRecursiveLock *gnustep_global_lock;
@end
#endif
/**
* Provides a number of GNUstep-specific methods that are used to aid
* implementation of the Base library.
*/
@interface NSObject (GSCategories)
/**
* Message sent when an implementation wants to explicitly exclude a method
* (but cannot due to compiler constraint), and wants to make sure it is not
* called by mistake. Default implementation raises an exception at runtime.
*/
- (id) notImplemented: (SEL)aSel;
/**
* Message sent when an implementation wants to explicitly require a subclass
* to implement a method (but cannot at compile time since there is no
* <code>abstract</code> keyword in Objective-C). Default implementation
* raises an exception at runtime to alert developer that he/she forgot to
* override a method.
*/
- (id) subclassResponsibility: (SEL)aSel;
/**
* Message sent when an implementation wants to explicitly exclude a method
* (but cannot due to compiler constraint) and forbid that subclasses
* implement it. Default implementation raises an exception at runtime. If a
* subclass <em>does</em> implement this method, however, the superclass's
* implementation will not be called, so this is not a perfect mechanism.
*/
- (id) shouldNotImplement: (SEL)aSel;
/**
WARNING: The -compare: method for NSObject is deprecated
due to subclasses declaring the same selector with
conflicting signatures.
Comparison of arbitrary objects is not just meaningless
but also dangerous as most concrete implementations
expect comparable objects as arguments often accessing
instance variables directly.
This method will be removed in a future release.
*/
- (NSComparisonResult) compare: (id)anObject;
@end
#endif
#import <Foundation/NSDate.h>

View file

@ -119,12 +119,6 @@ GS_EXPORT NSString* const NSURLFileScheme;
#endif /* GS_API_MACOSX */
@interface NSURL (GSCategories)
/** Returns the full path for this URL including any trailing slash.
*/
- (NSString*) fullPath;
@end
#if defined(__cplusplus)
}
#endif

View file

@ -349,20 +349,6 @@ extern "C" {
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
/**
* GNUstep specific (non-standard) additions to the NSNumber class.
*/
@interface NSNumber(GSCategories)
/**
* Parses string as a <code>double</code>, <code>int</code>, or <code>unsigned
* int</code> depending on what characters are present. Uses
* <code>atof</code> and <code>atoi</code> which don't report errors, so be
* careful if the string might contain an invalid value.
*/
+ (NSValue*) valueFromString: (NSString *)string;
@end
/** Note: Defines a method that is not in the OpenStep spec, but makes
subclassing easier. */
@interface NSValue (Subclassing)

View file

@ -24,19 +24,19 @@
*/
#include "config.h"
#import "config.h"
#include <string.h>
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSException.h>
#include <Foundation/NSRange.h>
#include <Foundation/NSString.h>
#import "Foundation/NSException.h"
#import "Foundation/NSRange.h"
#import "Foundation/NSString.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
#include "GNUstepBase/GSObjCRuntime.h"
#include "GNUstepBase/GCObject.h"
#include "GNUstepBase/GNUstep.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/GCObject.h"
#import "GNUstepBase/GNUstep.h"
@implementation GCArray

View file

@ -24,17 +24,17 @@
*/
#include "config.h"
#import "config.h"
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSException.h>
#include <Foundation/NSString.h>
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
#include "GNUstepBase/GSObjCRuntime.h"
#include "GNUstepBase/GCObject.h"
#include "GNUstepBase/GSCategories.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/GCObject.h"
#import "GNUstepBase/GSCategories.h"
typedef struct {
id object;

View file

@ -28,18 +28,19 @@
*/
#include "config.h"
#import "config.h"
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSString.h>
#include <Foundation/NSThread.h>
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSString.h"
#import "Foundation/NSThread.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
#include "GNUstepBase/GCObject.h"
#include "GNUstepBase/GSCategories.h"
#import "GNUstepBase/GCObject.h"
#import "GNUstepBase/GSCategories.h"
#include <pthread.h>
/*

View file

@ -23,10 +23,9 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#import "config.h"
#include <objc/objc-class.h>
#include "GNUstepBase/GSCategories.h"
#include "GNUstepBase/GCObject.h"
#import "GNUstepBase/GCObject.h"
/* Avoid compiler warnings about internal method
*/

View file

@ -19,17 +19,25 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
<title>NSPathUtilities function reference</title>
$Date$ $Revision$
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSFunctions.h"
#include "GNUstepBase/GSCategories.h"
#include "Foundation/Foundation.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSFunctions.h"
#ifndef NeXT_Foundation_LIBRARY
#import "Foundation/NSDebug.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSString.h"
#else
#import <Foundation/Foundation.h>
#endif
NSString *
GSFindNamedFile(NSArray *paths, NSString *aName, NSString *anExtension)

View file

@ -23,19 +23,19 @@
*/
#include "config.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSEnumerator.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSDebug.h"
#import "config.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSString.h"
#import "Foundation/NSException.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSDebug.h"
// For private method _decodeArrayOfObjectsForKey:
#include "Foundation/NSKeyedArchiver.h"
#import "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSObjCRuntime.h"
#include "GNUstepBase/GSCategories.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/GSCategories.h"
/*

View file

@ -25,14 +25,14 @@
$Date$ $Revision$
*/
#include "config.h"
#include <Foundation/NSException.h>
#include <Foundation/NSLock.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSThread.h>
#include "GNUstepBase/GSLock.h"
#include "GNUstepBase/GNUstep.h"
#include "GNUstepBase/GSCategories.h"
#import "config.h"
#import "Foundation/NSException.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSThread.h"
#import "GNUstepBase/GSLock.h"
#import "GNUstepBase/GNUstep.h"
#import "GNUstepBase/GSCategories.h"
/**
* This implements a class which, when used in single-threaded mode,

View file

@ -51,17 +51,30 @@
$Date$ $Revision$
*/
#include "config.h"
#import "config.h"
#include <string.h>
#include <ctype.h>
#import <Foundation/Foundation.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSCharacterSet.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSScanner.h"
#import "Foundation/NSString.h"
#import "Foundation/NSUserDefaults.h"
#import "Foundation/NSValue.h"
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/GSXML.h"
#import "GNUstepBase/NSData+GNUstepBase.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
#import "GNUstepBase/Unicode.h"
#include "../GSPrivate.h"
#import "../GSPrivate.h"
static NSCharacterSet *whitespace = nil;
static NSCharacterSet *rfc822Specials = nil;

View file

@ -29,30 +29,30 @@
$Date$ $Revision$
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSArray.h>
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSData.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSEnumerator.h>
#include <Foundation/NSException.h>
#include <Foundation/NSLock.h>
#include <Foundation/NSMethodSignature.h>
#include <Foundation/NSNull.h>
#include <Foundation/NSObjCRuntime.h>
#include <Foundation/NSSet.h>
#include <Foundation/NSString.h>
#include <Foundation/NSValue.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSMethodSignature.h"
#import "Foundation/NSNull.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSSet.h"
#import "Foundation/NSString.h"
#import "Foundation/NSValue.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
#include "GNUstepBase/GSObjCRuntime.h"
#include "GNUstepBase/GNUstep.h"
#include "GNUstepBase/GSCategories.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/GNUstep.h"
#import "GNUstepBase/GSCategories.h"
#include "../GSPrivate.h"
#import "../GSPrivate.h"
#include <objc/Protocol.h>
@ -1405,8 +1405,8 @@ GSObjCAddClassBehavior(Class receiver, Class behavior)
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSValue.h>
#include <Foundation/NSKeyValueCoding.h>
#import "Foundation/NSValue.h"
#import "Foundation/NSKeyValueCoding.h"
#endif

View file

@ -40,19 +40,22 @@
</chapter>
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSCategories.h"
#include "GNUstepBase/Unicode.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSCategories.h"
#import "GNUstepBase/Unicode.h"
#ifdef HAVE_LIBXML
// #undef HAVE_LIBXML_SAX2_H
#include "GNUstepBase/GSMime.h"
#include "GNUstepBase/GSXML.h"
#include <Foundation/Foundation.h>
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/GSXML.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSString.h"
/* Avoid problems on systems where the xml headers use 'id'
*/
@ -4100,12 +4103,12 @@ static BOOL warned = NO; if (warned == NO) { warned = YES; NSLog(@"WARNING, use
#else
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSObjCRuntime.h>
#include <Foundation/NSCoder.h>
#include <Foundation/NSInvocation.h>
#include <Foundation/NSString.h>
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSInvocation.h"
#import "Foundation/NSString.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
/*

View file

@ -22,10 +22,10 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSArray+GNUstepBase.h"
#include "GSPrivate.h"
#import "config.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSArray+GNUstepBase.h"
#import "GSPrivate.h"
@implementation NSArray (GNUstepBase)

View file

@ -22,9 +22,10 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSAttributedString+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSAttributedString+GNUstepBase.h"
@implementation NSAttributedString (GNUstepBase)
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange

View file

@ -23,9 +23,12 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSBundle+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSPathUtilities.h"
#import "Foundation/NSSet.h"
#import "GNUstepBase/NSBundle+GNUstepBase.h"
@implementation NSBundle(GNUstepBase)

View file

@ -22,9 +22,9 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSCalendarDate+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSAutoreleasePool.h"
#import "GNUstepBase/NSCalendarDate+GNUstepBase.h"
/**
* Extension methods for the NSCalendarDate class

View file

@ -22,10 +22,12 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSData+GNUstepBase.h"
#include "GNUstepBase/NSString+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSByteOrder.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSData+GNUstepBase.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
/**
* Extension methods for the NSData class.

View file

@ -22,9 +22,14 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GSPrivate.h"
#import "config.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSError.h"
#import "GSPrivate.h"
#if !defined(__MINGW32__)
#include <errno.h>
#endif
/**
* GNUstep specific (non-standard) additions to the NSError class.
@ -83,7 +88,6 @@ strerror_r(int eno, char *buf, int len)
*/
+ (NSError*) _last
{
extern int errno;
int eno;
#if defined(__MINGW32__)
eno = GetLastError();

View file

@ -22,11 +22,12 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GSNetwork.h"
#include "GSPrivate.h"
#include "GNUstepBase/NSFileHandle+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSByteOrder.h"
#import "Foundation/NSHost.h"
#import "GSNetwork.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSFileHandle+GNUstepBase.h"
@implementation NSFileHandle(GNUstepBase)

View file

@ -22,9 +22,9 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSInvocation+GNUstepBase.h"
#import "config.h"
#import "GNUstepBase/NSInvocation+GNUstepBase.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@implementation NSInvocation(GSCompatibility)
- (retval_t) returnFrame:(arglist_t)args

View file

@ -22,10 +22,10 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSLock+GNUstepBase.h"
#include "GNUstepBase/GSLock.h"
#import "config.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSLock+GNUstepBase.h"
#import "GNUstepBase/GSLock.h"
/**
* GNUstep specific (non-standard) additions to the NSLock class.

View file

@ -22,10 +22,11 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#import "config.h"
#include <string.h>
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSMutableString+GNUstepBase.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSMutableString+GNUstepBase.h"
/* Test for ASCII whitespace which is safe for unicode characters */
#define space(C) ((C) > 127 ? NO : isspace(C))

View file

@ -22,9 +22,8 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSNumber+GNUstepBase.h"
#import "config.h"
#import "GNUstepBase/NSNumber+GNUstepBase.h"
/**
* GNUstep specific (non-standard) additions to the NSNumber class.

View file

@ -22,9 +22,9 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSObject+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
/**
* Extension methods for the NSObject class

View file

@ -24,9 +24,12 @@
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSProcessInfo+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSSet.h"
#import "Foundation/NSString.h"
#import "GNUstepBase/NSProcessInfo+GNUstepBase.h"
@implementation NSProcessInfo(GNUstepBase)

View file

@ -22,11 +22,11 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#import "config.h"
#include <string.h>
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSString+GNUstepBase.h"
#include "GNUstepBase/NSMutableString+GNUstepBase.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
#import "GNUstepBase/NSMutableString+GNUstepBase.h"
/* Test for ASCII whitespace which is safe for unicode characters */
#define space(C) ((C) > 127 ? NO : isspace(C))

View file

@ -22,9 +22,11 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSTask+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSPathUtilities.h"
#import "Foundation/NSProcessInfo.h"
#import "GNUstepBase/NSTask+GNUstepBase.h"
@implementation NSTask (GSCategories)

View file

@ -25,9 +25,9 @@
#ifndef GNUSTEP
#include "config.h"
#include "Foundation/Foundation.h"
#include "GNUstepBase/NSURL+GNUstepBase.h"
#import "config.h"
#import "Foundation/NSString.h"
#import "GNUstepBase/NSURL+GNUstepBase.h"
@implementation NSURL (GNUstepBase)
- (NSString*) fullPath

View file

@ -28,26 +28,27 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#import "config.h"
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSArray.h>
#include <Foundation/NSBundle.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSError.h>
#include <Foundation/NSException.h>
#include <Foundation/NSString.h>
#include <Foundation/NSLock.h>
#include <Foundation/NSPathUtilities.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSBundle.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSError.h"
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSPathUtilities.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
#include "GNUstepBase/GSLock.h"
#include "GNUstepBase/GSMime.h"
#include "GNUstepBase/GSCategories.h"
#include "GNUstepBase/Unicode.h"
#import "GNUstepBase/GSLock.h"
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/NSLock+GNUstepBase.h"
#import "GNUstepBase/Unicode.h"
#import "../GSPrivate.h"
#include "../GSPrivate.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
/* A Behavior can be seen as a "Protocol with an implementation" or a
@ -48,15 +49,15 @@
*/
#include "config.h"
#import "config.h"
#include <stdio.h>
#include "GNUstepBase/preface.h"
#include "GNUstepBase/behavior.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/behavior.h"
#ifndef NeXT_Foundation_LIBRARY
#include <Foundation/NSException.h>
#include <Foundation/NSString.h>
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
#else
#include <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#endif
static BOOL class_is_kind_of(Class self, Class class);

View file

@ -136,15 +136,35 @@ NSZone.h
BaseAdditions_AGSDOC_FILES = \
../Documentation/BaseAdditions.gsdoc \
GNUstep.h \
GSBlocks.h \
GSVersionMacros.h \
GSObjCRuntime.h \
GSCategories.h \
GSFileHandle.h \
GSUnion.h \
GSIArray.h \
GSIMap.h \
GCObject.h \
GSLock.h \
GSFunctions.h \
GSMime.h \
GSObjCRuntime.h \
GSUnion.h \
GSVersionMacros.h \
GSXML.h \
GSLocale.h \
NSArray+GNUstepBase.h \
NSAttributedString+GNUstepBase.h \
NSBundle+GNUstepBase.h \
NSCalendarDate+GNUstepBase.h \
NSData+GNUstepBase.h \
NSFileHandle+GNUstepBase.h \
NSInvocation+GNUstepBase.h \
NSLock+GNUstepBase.h \
NSMutableString+GNUstepBase.h \
NSNumber+GNUstepBase.h \
NSObject+GNUstepBase.h \
NSProcessInfo+GNUstepBase.h \
NSString+GNUstepBase.h \
NSTask+GNUstepBase.h \
NSURL+GNUstepBase.h \
behavior.h \
Unicode.h \
GCObject.h \

View file

@ -138,7 +138,6 @@ NSMutableString+GNUstepBase.h \
NSNumber+GNUstepBase.h \
NSObject+GNUstepBase.h \
NSProcessInfo+GNUstepBase.h \
NSRecursiveLock+GNUstepBase.h \
NSString+GNUstepBase.h \
NSTask+GNUstepBase.h \
NSURL+GNUstepBase.h \

View file

@ -43,6 +43,7 @@
#import "Foundation/NSUserDefaults.h"
#import "Foundation/NSDebug.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "../Tools/gdomap.h"

View file

@ -31,6 +31,8 @@
#import "Foundation/NSValue.h"
#import "GNUstepBase/GSLock.h"
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GNUstepBase/NSData+GNUstepBase.h"
static NSMutableDictionary *domainMap = nil;

View file

@ -46,6 +46,7 @@
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/GSLock.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
#import "GNUstepBase/NSURL+GNUstepBase.h"
#import "NSCallBacks.h"
#import "GSURLPrivate.h"
#import "GSPrivate.h"

View file

@ -27,8 +27,8 @@
#import "GNUstepBase/preface.h"
#import "GSRunLoopWatcher.h"
#import <Foundation/NSException.h>
#import <Foundation/NSPort.h>
#import "Foundation/NSException.h"
#import "Foundation/NSPort.h"
@implementation GSRunLoopWatcher

View file

@ -24,21 +24,22 @@
#include "config.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSByteOrder.h>
#import <Foundation/NSData.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSEnumerator.h>
#import <Foundation/NSException.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSLock.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSValue.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSByteOrder.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSHost.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSRunLoop.h"
#import "Foundation/NSValue.h"
#import "GSPrivate.h"
#import "GSStream.h"
#import "GSSocketStream.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#ifndef SHUT_RD
# ifdef SD_RECEIVE

View file

@ -24,20 +24,21 @@
#include "config.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSByteOrder.h>
#import <Foundation/NSData.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSEnumerator.h>
#import <Foundation/NSException.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSValue.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSByteOrder.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSHost.h"
#import "Foundation/NSRunLoop.h"
#import "Foundation/NSValue.h"
#import "GSStream.h"
#import "GSPrivate.h"
#import "GSSocketStream.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
NSString * const NSStreamDataWrittenToMemoryStreamKey
= @"NSStreamDataWrittenToMemoryStreamKey";

View file

@ -48,6 +48,7 @@
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include <limits.h>
#import "GSPrivate.h"

View file

@ -52,7 +52,7 @@
#import "Foundation/NSIndexSet.h"
// For private method _decodeArrayOfObjectsForKey:
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/GSCategories.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSPrivate.h"
#import "GSFastEnumeration.h"

View file

@ -48,14 +48,15 @@
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/Unicode.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/Unicode.h"
#include "Foundation/NSAttributedString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSRange.h"
#import "Foundation/NSAttributedString.h"
#import "Foundation/NSException.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSRange.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@class GSAttributedString;
@interface GSAttributedString : NSObject // Help the compiler

View file

@ -27,19 +27,20 @@
*/
#include "config.h"
#include "GNUstepBase/GSLock.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSException.h"
#include "Foundation/NSData.h"
#include "Foundation/NSLock.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSIndexSet.h"
#include "Foundation/NSThread.h"
#include "Foundation/NSNotification.h"
#include "Foundation/NSCharacterSet.h"
#include "Foundation/NSData.h"
#include "Foundation/NSDebug.h"
#import "GNUstepBase/GSLock.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSException.h"
#import "Foundation/NSData.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSIndexSet.h"
#import "Foundation/NSThread.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSCharacterSet.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDebug.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#define GNUSTEP_INDEX_CHARSET 1
//#undef GNUSTEP_INDEX_CHARSET

View file

@ -26,12 +26,13 @@
$Date$ $Revision$
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "Foundation/NSData.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSSerialization.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "Foundation/NSData.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSSerialization.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@implementation NSCoder
@ -422,7 +423,7 @@
#include "GSPrivate.h"
#import "GSPrivate.h"
@implementation _NSKeyedCoderOldStyleArray
- (const void*) bytes

View file

@ -26,7 +26,7 @@
$Date: 2008-06-08 11:38:33 +0100 (Sun, 08 Jun 2008) $ $Revision: 26606 $
*/
#include "config.h"
#import "config.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDebug.h"
@ -41,6 +41,7 @@
#import "NSConcretePointerFunctions.h"
#import "NSCallBacks.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
static Class concreteClass = Nil;

View file

@ -26,7 +26,7 @@
$Date: 2008-06-08 11:38:33 +0100 (Sun, 08 Jun 2008) $ $Revision: 26606 $
*/
#include "config.h"
#import "config.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDebug.h"
@ -40,6 +40,7 @@
#import "NSConcretePointerFunctions.h"
#import "NSCallBacks.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
static Class concreteClass = Nil;

View file

@ -23,7 +23,7 @@
Boston, MA 02111 USA.
*/
#include <Foundation/NSValue.h>
#import "Foundation/NSValue.h"
@interface NSBoolNumber : NSNumber
{

View file

@ -22,15 +22,15 @@
Boston, MA 02111 USA.
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSConfig.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSCoder.h"
#include "NSConcreteNumber.h"
#include "GSPrivate.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSConfig.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSString.h"
#import "Foundation/NSException.h"
#import "Foundation/NSCoder.h"
#import "NSConcreteNumber.h"
#import "GSPrivate.h"
#define TYPE_ORDER 0
#include "NSConcreteNumberTemplate.m"

View file

@ -39,6 +39,7 @@
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSLock.h"
#import "Foundation/NSDebug.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
/*
* Setup for inline operation of pointer map tables.

View file

@ -36,6 +36,7 @@
#import "Foundation/NSNotification.h"
#import "Foundation/NSThread.h"
#import "Foundation/NSObjCRuntime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@class GSCountedSet;
@interface GSCountedSet : NSObject // Help the compiler

View file

@ -68,22 +68,23 @@
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSObjCRuntime.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSByteOrder.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSData.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSFileManager.h"
#include "Foundation/NSPathUtilities.h"
#include "Foundation/NSRange.h"
#include "Foundation/NSURL.h"
#include "Foundation/NSValue.h"
#include "Foundation/NSZone.h"
#include "GSPrivate.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSByteOrder.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSData.h"
#import "Foundation/NSString.h"
#import "Foundation/NSException.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSPathUtilities.h"
#import "Foundation/NSRange.h"
#import "Foundation/NSURL.h"
#import "Foundation/NSValue.h"
#import "Foundation/NSZone.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include <stdio.h>
#include <string.h> /* for memset() */
#ifdef HAVE_UNISTD_H

View file

@ -27,24 +27,25 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSCalendarDate.h"
#include "Foundation/NSCharacterSet.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSDate.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSException.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSScanner.h"
#include "Foundation/NSString.h"
#include "Foundation/NSTimeZone.h"
#include "Foundation/NSUserDefaults.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSObjCRuntime.h"
#import "config.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSCalendarDate.h"
#import "Foundation/NSCharacterSet.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSDate.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSException.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSScanner.h"
#import "Foundation/NSString.h"
#import "Foundation/NSTimeZone.h"
#import "Foundation/NSUserDefaults.h"
#import "GNUstepBase/preface.h"
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include "GSPrivate.h"
#import "GSPrivate.h"
#include <math.h>

View file

@ -27,23 +27,23 @@
*/
#include "config.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSData.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSFileManager.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSValue.h"
#include "Foundation/NSKeyValueCoding.h"
#include "Foundation/NSUserDefaults.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSData.h"
#import "Foundation/NSString.h"
#import "Foundation/NSException.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSValue.h"
#import "Foundation/NSKeyValueCoding.h"
#import "Foundation/NSUserDefaults.h"
// For private method _decodeArrayOfObjectsForKey:
#include "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSCategories.h"
#include "GSPrivate.h"
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSPrivate.h"
static BOOL GSMacOSXCompatiblePropertyLists(void)
{

View file

@ -29,7 +29,8 @@
#import "GNUstepBase/preface.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSEnumerator.h"
#include "Foundation/NSException.h"
#import "Foundation/NSException.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
/**

View file

@ -22,10 +22,10 @@
Boston, MA 02111 USA.
*/
#include <Foundation/NSDictionary.h>
#include <Foundation/NSString.h>
#include <Foundation/NSError.h>
#include <Foundation/NSCoder.h>
#import "Foundation/NSDictionary.h"
#import "Foundation/NSString.h"
#import "Foundation/NSError.h"
#import "Foundation/NSCoder.h"
NSString* const NSFilePathErrorKey = @"NSFilePathErrorKey";
NSString* const NSLocalizedDescriptionKey = @"NSLocalizedDescriptionKey";

View file

@ -27,8 +27,8 @@
#import "config.h"
#import "GSPrivate.h"
#import "GNUstepBase/preface.h"
#import <Foundation/NSDebug.h>
#import <Foundation/NSBundle.h>
#import "Foundation/NSDebug.h"
#import "Foundation/NSBundle.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
@ -40,6 +40,7 @@
#import "Foundation/NSDictionary.h"
#import "Foundation/NSValue.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
#include <stdio.h>
#ifdef HAVE_BACKTRACE

View file

@ -25,15 +25,16 @@
$Date$ $Revision$
*/
#include "config.h"
#include "GNUstepBase/preface.h"
#include "Foundation/NSObject.h"
#include "Foundation/NSData.h"
#include "Foundation/NSString.h"
#include "Foundation/NSFileHandle.h"
#include "Foundation/NSPathUtilities.h"
#include "Foundation/NSBundle.h"
#include "GNUstepBase/GSFileHandle.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "Foundation/NSObject.h"
#import "Foundation/NSData.h"
#import "Foundation/NSString.h"
#import "Foundation/NSFileHandle.h"
#import "Foundation/NSPathUtilities.h"
#import "Foundation/NSBundle.h"
#import "GNUstepBase/GSFileHandle.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
// GNUstep Notification names

View file

@ -25,8 +25,9 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSFormatter.h"
#import "config.h"
#import "Foundation/NSFormatter.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@implementation NSFormatter

View file

@ -22,8 +22,9 @@
Boston, MA 02111 USA.
*/
#include "GSURLPrivate.h"
#include "Foundation/NSSet.h"
#import "GSURLPrivate.h"
#import "Foundation/NSSet.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
NSString * const NSHTTPCookieComment = @"NSHTTPCookieComment";
NSString * const NSHTTPCookieCommentURL = @"NSHTTPCookieCommentURL";

View file

@ -22,8 +22,9 @@
Boston, MA 02111 USA.
*/
#include "GSURLPrivate.h"
#include "Foundation/NSSet.h"
#import "GSURLPrivate.h"
#import "Foundation/NSSet.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
NSString * const NSHTTPCookieManagerAcceptPolicyChangedNotification
= @"NSHTTPCookieManagerAcceptPolicyChangedNotification";

View file

@ -24,18 +24,19 @@
* $Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSObject.h"
#include "Foundation/NSString.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSException.h"
#include "Foundation/NSPointerFunctions.h"
#include "Foundation/NSSet.h"
#include "Foundation/NSZone.h"
#include "Foundation/NSHashTable.h"
#include "Foundation/NSDebug.h"
#include "NSCallBacks.h"
#include "GSPrivate.h"
#import "config.h"
#import "Foundation/NSObject.h"
#import "Foundation/NSString.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSException.h"
#import "Foundation/NSPointerFunctions.h"
#import "Foundation/NSSet.h"
#import "Foundation/NSZone.h"
#import "Foundation/NSHashTable.h"
#import "Foundation/NSDebug.h"
#import "NSCallBacks.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@interface NSConcreteHashTable : NSHashTable
@end

View file

@ -26,12 +26,14 @@
$Date$ $Revision$
*/
#include "Foundation/NSException.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSInvocation.h"
#include "GSInvocation.h"
#include "config.h"
#include "GSPrivate.h"
#import "Foundation/NSException.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSInvocation.h"
#import "GSInvocation.h"
#import "config.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#if defined(USE_LIBFFI)
#include "cifframe.h"
#elif defined(USE_FFCALL)

View file

@ -44,6 +44,7 @@
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/Unicode.h"
#import "GNUstepBase/GSLock.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSInvocation.h"
/*

View file

@ -23,14 +23,15 @@
*/
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSObject.h>
#include <Foundation/NSData.h>
#include <Foundation/NSException.h>
#include <Foundation/NSScanner.h>
#include <Foundation/NSValue.h>
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSObject.h"
#import "Foundation/NSData.h"
#import "Foundation/NSException.h"
#import "Foundation/NSScanner.h"
#import "Foundation/NSValue.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include "GSPrivate.h"
#import "GSPrivate.h"
@class GSString;
@ -61,7 +62,7 @@ static GC_descr nodeDesc; // Type descriptor for map node.
#define _IN_NSKEYEDARCHIVER_M 1
#include <Foundation/NSKeyedArchiver.h>
#include "Foundation/NSKeyedArchiver.h"
#undef _IN_NSKEYEDARCHIVER_M
/* Exceptions */

View file

@ -50,7 +50,7 @@
#include "GNUstepBase/GSIArray.h"
#define _IN_NSKEYEDUNARCHIVER_M 1
#include <Foundation/NSKeyedArchiver.h>
#include "Foundation/NSKeyedArchiver.h"
#undef _IN_NSKEYEDUNARCHIVER_M
@interface NilMarker: NSObject

View file

@ -24,17 +24,18 @@
* $Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSObject.h"
#include "Foundation/NSString.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSException.h"
#include "Foundation/NSPointerFunctions.h"
#include "Foundation/NSZone.h"
#include "Foundation/NSMapTable.h"
#include "Foundation/NSDebug.h"
#include "NSCallBacks.h"
#import "config.h"
#import "Foundation/NSObject.h"
#import "Foundation/NSString.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSException.h"
#import "Foundation/NSPointerFunctions.h"
#import "Foundation/NSZone.h"
#import "Foundation/NSMapTable.h"
#import "Foundation/NSDebug.h"
#import "NSCallBacks.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@interface NSConcreteMapTable : NSMapTable
@end

View file

@ -25,11 +25,12 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSNotification.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSString.h"
#import "config.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSString.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@class GSNotification;
@interface GSNotification : NSObject // Help the compiler

View file

@ -29,19 +29,20 @@
*/
#include <string.h>
#include "config.h"
#include "GNUstepBase/preface.h"
#include "Foundation/NSException.h"
#include "Foundation/NSString.h"
#include "Foundation/NSNotification.h"
#include "Foundation/NSMapTable.h"
#include "Foundation/NSThread.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSObjCRuntime.h"
#import "config.h"
#import "GNUstepBase/preface.h"
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSMapTable.h"
#import "Foundation/NSThread.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSObjCRuntime.h"
#include "NSConcreteNumber.h"
#include "GSPrivate.h"
#import "NSConcreteNumber.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@interface GSCachedBool : NSBoolNumber
@end

View file

@ -25,9 +25,10 @@
$Date: 2008-11-26 04:20:34 -0500 (Wed, 26 Nov 2008) $ $Revision: 27135 $
*/
#include "Foundation/NSObject.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSString.h"
#import "Foundation/NSObject.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSString.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@interface NSObject (NSComparisonMethods)
- (BOOL) doesContain: (id) object;

View file

@ -33,7 +33,7 @@
#import "Foundation/NSDebug.h"
#import "Foundation/NSValue.h"
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSPrivate.h"
#import "NSConcretePointerFunctions.h"

View file

@ -24,6 +24,7 @@
*/
#import "NSConcretePointerFunctions.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
static Class abstractClass = Nil;
static Class concreteClass = Nil;

View file

@ -25,18 +25,19 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSException.h"
#include "Foundation/NSString.h"
#include "Foundation/NSNotification.h"
#include "Foundation/NSNotificationQueue.h"
#include "Foundation/NSPort.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSPortNameServer.h"
#include "Foundation/NSRunLoop.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSUserDefaults.h"
#include "GSPrivate.h"
#import "config.h"
#import "Foundation/NSException.h"
#import "Foundation/NSString.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSNotificationQueue.h"
#import "Foundation/NSPort.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSPortNameServer.h"
#import "Foundation/NSRunLoop.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSUserDefaults.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@class NSMessagePort;

View file

@ -25,12 +25,13 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSData.h"
#include "Foundation/NSException.h"
#include "Foundation/NSPortMessage.h"
#include "Foundation/NSObjCRuntime.h"
#import "config.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSData.h"
#import "Foundation/NSException.h"
#import "Foundation/NSPortMessage.h"
#import "Foundation/NSObjCRuntime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@implementation NSPortMessage

View file

@ -35,6 +35,7 @@
#import "Foundation/NSLock.h"
#import "Foundation/NSUserDefaults.h"
#import "GSPortPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
/**

View file

@ -26,22 +26,23 @@
Boston, MA 02111 USA.
*/
#include <Foundation/NSComparisonPredicate.h>
#include <Foundation/NSCompoundPredicate.h>
#include <Foundation/NSExpression.h>
#include <Foundation/NSPredicate.h>
#import "Foundation/NSComparisonPredicate.h"
#import "Foundation/NSCompoundPredicate.h"
#import "Foundation/NSExpression.h"
#import "Foundation/NSPredicate.h"
#include <Foundation/NSArray.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSEnumerator.h>
#include <Foundation/NSException.h>
#include <Foundation/NSKeyValueCoding.h>
#include <Foundation/NSNull.h>
#include <Foundation/NSScanner.h>
#include <Foundation/NSString.h>
#include <Foundation/NSValue.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSKeyValueCoding.h"
#import "Foundation/NSNull.h"
#import "Foundation/NSScanner.h"
#import "Foundation/NSString.h"
#import "Foundation/NSValue.h"
#include "GSPrivate.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include <stdarg.h>
// For pow()

View file

@ -32,12 +32,13 @@
#define _GNU_SOURCE
#endif
#include "config.h"
#include "GNUstepBase/Unicode.h"
#include "Foundation/NSScanner.h"
#include "Foundation/NSException.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSUserDefaults.h"
#import "config.h"
#import "GNUstepBase/Unicode.h"
#import "Foundation/NSScanner.h"
#import "Foundation/NSException.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSUserDefaults.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include <float.h>
#include <limits.h>

View file

@ -25,22 +25,23 @@
$Date$ $Revision$
*/
#include "config.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSSet.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSEnumerator.h"
#include "Foundation/NSKeyValueCoding.h"
#include "Foundation/NSString.h"
#include "Foundation/NSValue.h"
#include "Foundation/NSException.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSDebug.h"
#import "config.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSSet.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSKeyValueCoding.h"
#import "Foundation/NSString.h"
#import "Foundation/NSValue.h"
#import "Foundation/NSException.h"
#import "Foundation/NSObjCRuntime.h"
#import "Foundation/NSDebug.h"
// For private method _decodeArrayOfObjectsForKey:
#include "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSCategories.h"
#include "GSPrivate.h"
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/GSCategories.h"
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
@class GSSet;
@interface GSSet : NSObject // Help the compiler

View file

@ -48,39 +48,40 @@
#define _GNU_SOURCE
#endif
#include "config.h"
#import "config.h"
#include <stdio.h>
#include <string.h>
#include "GNUstepBase/preface.h"
#include "Foundation/NSAutoreleasePool.h"
#include "Foundation/NSString.h"
#include "Foundation/NSCalendarDate.h"
#include "Foundation/NSDecimal.h"
#include "Foundation/NSArray.h"
#include "Foundation/NSCharacterSet.h"
#include "Foundation/NSException.h"
#include "Foundation/NSValue.h"
#include "Foundation/NSDictionary.h"
#include "Foundation/NSFileManager.h"
#include "Foundation/NSPortCoder.h"
#include "Foundation/NSPathUtilities.h"
#include "Foundation/NSRange.h"
#include "Foundation/NSException.h"
#include "Foundation/NSData.h"
#include "Foundation/NSBundle.h"
#include "Foundation/NSURL.h"
#include "Foundation/NSMapTable.h"
#include "Foundation/NSLock.h"
#include "Foundation/NSNotification.h"
#include "Foundation/NSUserDefaults.h"
#include "Foundation/FoundationErrors.h"
#include "Foundation/NSDebug.h"
#import "GNUstepBase/preface.h"
#import "Foundation/NSAutoreleasePool.h"
#import "Foundation/NSString.h"
#import "Foundation/NSCalendarDate.h"
#import "Foundation/NSDecimal.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSCharacterSet.h"
#import "Foundation/NSException.h"
#import "Foundation/NSValue.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSPortCoder.h"
#import "Foundation/NSPathUtilities.h"
#import "Foundation/NSRange.h"
#import "Foundation/NSException.h"
#import "Foundation/NSData.h"
#import "Foundation/NSBundle.h"
#import "Foundation/NSURL.h"
#import "Foundation/NSMapTable.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSNotification.h"
#import "Foundation/NSUserDefaults.h"
#import "Foundation/FoundationErrors.h"
#import "Foundation/NSDebug.h"
// For private method _decodePropertyListForKey:
#include "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSMime.h"
#import "Foundation/NSKeyedArchiver.h"
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/NSString+GNUstepBase.h"
#import "GNUstepBase/NSMutableString+GNUstepBase.h"
#include "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSPrivate.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif

Some files were not shown because too many files have changed in this diff Show more