Many minor fixes for autogsdoc.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11787 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-12-17 14:31:42 +00:00
parent b26f86d146
commit d7e28f6deb
128 changed files with 697 additions and 456 deletions

139
ChangeLog
View file

@ -1,3 +1,139 @@
2001-12-17 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/gnustep/base/GSMime.h: Updates for autogsdoc
* Headers/gnustep/base/GSXML.h: ditto
* Headers/gnustep/base/NSArray.h: ditto
* Headers/gnustep/base/NSAttributedString.h: ditto
* Headers/gnustep/base/NSAutoreleasePool.h: ditto
* Headers/gnustep/base/NSCalendarDate.h: ditto
* Headers/gnustep/base/NSCharacterSet.h: ditto
* Headers/gnustep/base/NSCoder.h: ditto
* Headers/gnustep/base/NSConnection.h: ditto
* Headers/gnustep/base/NSData.h: ditto
* Headers/gnustep/base/NSDate.h: ditto
* Headers/gnustep/base/NSDistantObject.h: ditto
* Headers/gnustep/base/NSDistributedNotificationCenter.h: ditto
* Headers/gnustep/base/NSInvocation.h: ditto
* Headers/gnustep/base/NSLock.h: ditto
* Headers/gnustep/base/NSMethodSignature.h: ditto
* Headers/gnustep/base/NSNotification.h: ditto
* Headers/gnustep/base/NSObject.h: ditto
* Headers/gnustep/base/NSProxy.h: ditto
* Headers/gnustep/base/NSRunLoop.h: ditto
* Headers/gnustep/base/NSSet.h: ditto
* Headers/gnustep/base/NSTimeZone.h: ditto
* Headers/gnustep/base/NSTimer.h: ditto
* Headers/gnustep/base/NSURL.h: ditto
* Headers/gnustep/base/NSUndoManager.h: ditto
* Headers/gnustep/base/NSUserDefaults.h: ditto
* Headers/gnustep/base/NSValue.h: ditto
* Source/GSArray.m: ditto
* Source/GSAttributedString.m: ditto
* Source/GSCompatibility.m: ditto
* Source/GSCountedSet.m: ditto
* Source/GSDictionary.m: ditto
* Source/GSFFCallInvocation.m: ditto
* Source/GSFFIInvocation.m: ditto
* Source/GSFormat.m: ditto
* Source/GSHTTPURLHandle.m: ditto
* Source/GSLocale.m: ditto
* Source/GSMime.m: ditto
* Source/GSSet.m: ditto
* Source/GSString.m: ditto
* Source/GSTcpPort.m: ditto
* Source/GSUnixSSLHandle.m: ditto
* Source/GSValue.m: ditto
* Source/GSXML.m: ditto
* Source/NSArchiver.m: ditto
* Source/NSArray.m: ditto
* Source/NSAssertionHandler.m: ditto
* Source/NSAttributedString.m: ditto
* Source/NSAutoreleasePool.m: ditto
* Source/NSBitmapCharSet.m: ditto
* Source/NSBundle.m: ditto
* Source/NSCalendarDate.m: ditto
* Source/NSCallBacks.m: ditto
* Source/NSCharacterSet.m: ditto
* Source/NSClassDescription.m: ditto
* Source/NSCoder.m: ditto
* Source/NSConnection.m: ditto
* Source/NSCopyObject.m: ditto
* Source/NSCountedSet.m: ditto
* Source/NSData.m: ditto
* Source/NSDate.m: ditto
* Source/NSDateFormatter.m: ditto
* Source/NSDebug.m: ditto
* Source/NSDecimal.m: ditto
* Source/NSDecimalNumber.m: ditto
* Source/NSDictionary.m: ditto
* Source/NSDistantObject.m: ditto
* Source/NSDistributedLock.m: ditto
* Source/NSDistributedNotificationCenter.m: ditto
* Source/NSEnumerator.m: ditto
* Source/NSException.m: ditto
* Source/NSFileHandle.m: ditto
* Source/NSFileManager.m: ditto
* Source/NSFormatter.m: ditto
* Source/NSGeometry.m: ditto
* Source/NSHashTable.m: ditto
* Source/NSHost.m: ditto
* Source/NSInvocation.m: ditto
* Source/NSLock.m: ditto
* Source/NSLog.m: ditto
* Source/NSMapTable.m: ditto
* Source/NSMethodSignature.m: ditto
* Source/NSNotification.m: ditto
* Source/NSNotificationCenter.m: ditto
* Source/NSNotificationQueue.m: ditto
* Source/NSNull.m: ditto
* Source/NSNumber.m: ditto
* Source/NSNumberFormatter.m: ditto
* Source/NSObjCRuntime.m: ditto
* Source/NSPage.m: ditto
* Source/NSPipe.m: ditto
* Source/NSPort.m: ditto
* Source/NSPortCoder.m: ditto
* Source/NSPortMessage.m: ditto
* Source/NSPortNameServer.m: ditto
* Source/NSProcessInfo.m: ditto
* Source/NSProtocolChecker.m: ditto
* Source/NSProxy.m: ditto
* Source/NSRange.m: ditto
* Source/NSRunLoop.m: ditto
* Source/NSScanner.m: ditto
* Source/NSSerializer.m: ditto
* Source/NSSet.m: ditto
* Source/NSString.m: ditto
* Source/NSTask.m: ditto
* Source/NSThread.m: ditto
* Source/NSTimeZone.m: ditto
* Source/NSTimer.m: ditto
* Source/NSURL.m: ditto
* Source/NSURLHandle.m: ditto
* Source/NSUnarchiver.m: ditto
* Source/NSUndoManager.m: ditto
* Source/NSUser.m: ditto
* Source/NSUserDefaults.m: ditto
* Source/NSValue.m: ditto
* Source/NSZone.m: ditto
* Source/Unicode.m: ditto
* Source/UnixFileHandle.m: ditto
* Source/WindowsFileHandle.m: ditto
* Source/behavior.m: ditto
* Source/callframe.m: ditto
* Source/cifframe.m: ditto
* Source/externs.m: ditto
* Source/libgnustep-base-entry.m: ditto
* Source/mframe.m: ditto
* Source/o_array.m: ditto
* Tools/AGSParser.m: ditto
Ensure that initial comments in source code are sutogsdoc comments
so copyright and author information will be used.
Fix inconsistencies between arguments in headers and source files.
Fix various bugs exposed by autogsdoc ... mostly cases where there
is a semicolon after a method name in a method implementation
(this is illegal, but the gcc compiler currently ignores it).
2001-12-17 Richard Frith-Macdonald <rfm@gnu.org> 2001-12-17 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSHtml.m: Provide list of methods in each class. * Tools/AGSHtml.m: Provide list of methods in each class.
@ -6,7 +142,8 @@
* Tools/AGSOutput.m: Support (name) syntax for specifying a protocol * Tools/AGSOutput.m: Support (name) syntax for specifying a protocol
cross reference using [(name)-method] cross reference using [(name)-method]
* Tools/autogsdoc.m: Improve documentation of method references. * Tools/autogsdoc.m: Improve documentation of method references.
* Tools/AGSparser.m: Handle @class statements. * Tools/AGSparser.m: Handle @class statements. Improve standardisation
of the format of types.
2001-12-16 Richard Frith-Macdonald <rfm@gnu.org> 2001-12-16 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -59,15 +59,15 @@
+ (GSMimeDocument*) mimeDocument; + (GSMimeDocument*) mimeDocument;
- (BOOL) addHeader: (NSDictionary*)headerInfo; - (BOOL) addHeader: (NSDictionary*)info;
- (NSArray*) allHeaders; - (NSArray*) allHeaders;
- (id) content; - (id) content;
- (void) deleteHeader: (NSString*)rawHeader; - (void) deleteHeader: (NSString*)aHeader;
- (void) deleteHeaderNamed: (NSString*)aName; - (void) deleteHeaderNamed: (NSString*)name;
- (NSDictionary*) headerNamed: (NSString*)name; - (NSDictionary*) headerNamed: (NSString*)name;
- (NSArray*) headersNamed: (NSString*)name; - (NSArray*) headersNamed: (NSString*)name;
- (BOOL) setContent: (id)newContent; - (BOOL) setContent: (id)newContent;
- (BOOL) setHeader: (NSDictionary*)headerInfo; - (BOOL) setHeader: (NSDictionary*)info;
@end @end
@ -92,25 +92,25 @@
+ (GSMimeParser*) mimeParser; + (GSMimeParser*) mimeParser;
- (GSMimeCodingContext*) contextFor: (NSDictionary*)headerInfo; - (GSMimeCodingContext*) contextFor: (NSDictionary*)info;
- (NSData*) data; - (NSData*) data;
- (BOOL) decodeData: (NSData*)sData - (BOOL) decodeData: (NSData*)sData
fromRange: (NSRange)aRange fromRange: (NSRange)aRange
intoData: (NSMutableData*)dData intoData: (NSMutableData*)dData
withContext: (GSMimeCodingContext*)ctxt; withContext: (GSMimeCodingContext*)con;
- (GSMimeDocument*) document; - (GSMimeDocument*) document;
- (BOOL) isComplete; - (BOOL) isComplete;
- (BOOL) isInBody; - (BOOL) isInBody;
- (BOOL) isInHeaders; - (BOOL) isInHeaders;
- (BOOL) parse: (NSData*)input; - (BOOL) parse: (NSData*)d;
- (BOOL) parseHeader: (NSString*)aRawHeader; - (BOOL) parseHeader: (NSString*)aHeader;
- (BOOL) parsedHeaders; - (BOOL) parsedHeaders;
- (BOOL) scanHeader: (NSScanner*)aScanner - (BOOL) scanHeader: (NSScanner*)scanner
named: (NSString*)headerName named: (NSString*)name
inTo: (NSMutableDictionary*)info; inTo: (NSMutableDictionary*)info;
- (BOOL) scanPastSpace: (NSScanner*)aScanner; - (BOOL) scanPastSpace: (NSScanner*)scanner;
- (NSString*) scanSpecial: (NSScanner*)aScanner; - (NSString*) scanSpecial: (NSScanner*)scanner;
- (NSString*) scanToken: (NSScanner*)aScanner; - (NSString*) scanToken: (NSScanner*)scanner;
@end @end

View file

@ -80,12 +80,12 @@
BOOL native; BOOL native;
} }
+ (NSString*) descriptionFromType: (int)t; + (NSString*) descriptionFromType: (int)type;
+ (GSXMLNamespace*) namespaceWithNode: (GSXMLNode*)node + (GSXMLNamespace*) namespaceWithNode: (GSXMLNode*)node
href: (NSString*)href href: (NSString*)href
prefix: (NSString*)prefix; prefix: (NSString*)prefix;
+ (GSXMLNamespace*) namespaceFrom: (void*)data; + (GSXMLNamespace*) namespaceFrom: (void*)data;
+ (int) typeFromDescription: (NSString*)d; + (int) typeFromDescription: (NSString*)desc;
- (id) initWithNode: (GSXMLNode*)node - (id) initWithNode: (GSXMLNode*)node
href: (NSString*)href href: (NSString*)href
@ -109,10 +109,10 @@
BOOL native; BOOL native;
} }
+ (NSString*) descriptionFromType: (int)t; + (NSString*) descriptionFromType: (int)type;
+ (GSXMLNode*) nodeWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name; + (GSXMLNode*) nodeWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name;
+ (GSXMLNode*) nodeFrom: (void*) data; + (GSXMLNode*) nodeFrom: (void*) data;
+ (int) typeFromDescription: (NSString*)d; + (int) typeFromDescription: (NSString*)desc;
- (id) initWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name; - (id) initWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name;
- (id) initFrom: (void*) data; - (id) initFrom: (void*) data;
@ -151,12 +151,12 @@
{ {
} }
+ (NSString*) descriptionFromType: (int)t; + (NSString*) descriptionFromType: (int)type;
+ (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node + (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node
name: (NSString*)name name: (NSString*)name
value: (NSString*)value; value: (NSString*)value;
+ (GSXMLAttribute*) attributeFrom: (void*)data; + (GSXMLAttribute*) attributeFrom: (void*)data;
+ (int) typeFromDescription: (NSString*)d; + (int) typeFromDescription: (NSString*)desc;
- (id) initWithNode: (GSXMLNode*)node - (id) initWithNode: (GSXMLNode*)node
name: (NSString*)name name: (NSString*)name
@ -180,8 +180,7 @@
void *lib; /* parser context */ void *lib; /* parser context */
GSSAXHandler *saxHandler; GSSAXHandler *saxHandler;
} }
+ (NSString*) loadEntity: (NSString*)publicId + (NSString*) loadEntity: (NSString*)publicId at: (NSString*)location;
at: (NSString*)locationURL;
+ (GSXMLParser*) parser; + (GSXMLParser*) parser;
+ (GSXMLParser*) parserWithContentsOfFile: (NSString*)path; + (GSXMLParser*) parserWithContentsOfFile: (NSString*)path;
+ (GSXMLParser*) parserWithContentsOfURL: (NSURL*)url; + (GSXMLParser*) parserWithContentsOfURL: (NSURL*)url;

View file

@ -36,22 +36,22 @@
+ (id) arrayWithArray: (NSArray*)array; + (id) arrayWithArray: (NSArray*)array;
+ (id) arrayWithContentsOfFile: (NSString*)file; + (id) arrayWithContentsOfFile: (NSString*)file;
+ (id) arrayWithObject: (id)anObject; + (id) arrayWithObject: (id)anObject;
+ (id) arrayWithObjects: (id)firstObj, ...; + (id) arrayWithObjects: (id)firstObject, ...;
+ (id) arrayWithObjects: (id*)objects count: (unsigned)count; + (id) arrayWithObjects: (id*)objects count: (unsigned)count;
- (NSArray*) arrayByAddingObject: (id)anObject; - (NSArray*) arrayByAddingObject: (id)anObject;
- (NSArray*) arrayByAddingObjectsFromArray: (NSArray*)anotherArray; - (NSArray*) arrayByAddingObjectsFromArray: (NSArray*)anotherArray;
- (BOOL) containsObject: anObject; - (BOOL) containsObject: anObject;
- (unsigned) count; // Primitive - (unsigned) count; // Primitive
- (void) getObjects: (id*)objs; - (void) getObjects: (id*)aBuffer;
- (void) getObjects: (id*)objs range: (NSRange)aRange; - (void) getObjects: (id*)aBuffer range: (NSRange)aRange;
- (unsigned) indexOfObject: (id)anObject; - (unsigned) indexOfObject: (id)anObject;
- (unsigned) indexOfObject: (id)anObject inRange: (NSRange)aRange; - (unsigned) indexOfObject: (id)anObject inRange: (NSRange)aRange;
- (unsigned) indexOfObjectIdenticalTo: (id)anObject; - (unsigned) indexOfObjectIdenticalTo: (id)anObject;
- (unsigned) indexOfObjectIdenticalTo: (id)anObject inRange: (NSRange)aRange; - (unsigned) indexOfObjectIdenticalTo: (id)anObject inRange: (NSRange)aRange;
- (id) initWithArray: (NSArray*)array; - (id) initWithArray: (NSArray*)array;
- (id) initWithContentsOfFile: (NSString*)file; - (id) initWithContentsOfFile: (NSString*)file;
- (id) initWithObjects: firstObj, ...; - (id) initWithObjects: firstObject, ...;
- (id) initWithObjects: (id*)objects count: (unsigned)count; // Primitive - (id) initWithObjects: (id*)objects count: (unsigned)count; // Primitive
- (id) lastObject; - (id) lastObject;
@ -66,7 +66,7 @@
#endif #endif
#ifndef STRICT_OPENSTEP #ifndef STRICT_OPENSTEP
- (void) makeObjectsPerformSelector: (SEL)aSelector; - (void) makeObjectsPerformSelector: (SEL)aSelector;
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject: (id)argument; - (void) makeObjectsPerformSelector: (SEL)aSelector withObject: (id)arg;
#endif #endif
- (NSData*) sortedArrayHint; - (NSData*) sortedArrayHint;
@ -76,7 +76,7 @@
context: (void*)context context: (void*)context
hint: (NSData*)hint; hint: (NSData*)hint;
- (NSArray*) sortedArrayUsingSelector: (SEL)comparator; - (NSArray*) sortedArrayUsingSelector: (SEL)comparator;
- (NSArray*) subarrayWithRange: (NSRange)range; - (NSArray*) subarrayWithRange: (NSRange)aRange;
- (NSString*) componentsJoinedByString: (NSString*)separator; - (NSString*) componentsJoinedByString: (NSString*)separator;
- (NSArray*) pathsMatchingExtensions: (NSArray*)extensions; - (NSArray*) pathsMatchingExtensions: (NSArray*)extensions;
@ -127,7 +127,7 @@
- (void) sortUsingFunction: (int(*)(id,id,void*))compare - (void) sortUsingFunction: (int(*)(id,id,void*))compare
context: (void*)context; context: (void*)context;
- (void) sortUsingSelector: (SEL) aSelector; - (void) sortUsingSelector: (SEL)comparator;
@end @end

View file

@ -63,19 +63,19 @@
- (id) initWithString: (NSString*)aString attributes: (NSDictionary*)attributes; - (id) initWithString: (NSString*)aString attributes: (NSDictionary*)attributes;
//Retrieving character information //Retrieving character information
- (unsigned) length; - (unsigned int) length;
- (NSString*) string; //Primitive method! - (NSString*) string; //Primitive method!
//Retrieving attribute information //Retrieving attribute information
- (NSDictionary*) attributesAtIndex: (unsigned)index - (NSDictionary*) attributesAtIndex: (unsigned int)index
effectiveRange: (NSRange*)aRange; //Primitive method! effectiveRange: (NSRange*)aRange; //Primitive method!
- (NSDictionary*) attributesAtIndex: (unsigned)index - (NSDictionary*) attributesAtIndex: (unsigned int)index
longestEffectiveRange: (NSRange*)aRange longestEffectiveRange: (NSRange*)aRange
inRange: (NSRange)rangeLimit; inRange: (NSRange)rangeLimit;
- (id) attribute: (NSString*)attributeName - (id) attribute: (NSString*)attributeName
atIndex: (unsigned)index atIndex: (unsigned int)index
effectiveRange: (NSRange*)aRange; effectiveRange: (NSRange*)aRange;
- (id) attribute: (NSString*)attributeName atIndex: (unsigned)index - (id) attribute: (NSString*)attributeName atIndex: (unsigned int)index
longestEffectiveRange: (NSRange*)aRange inRange: (NSRange)rangeLimit; longestEffectiveRange: (NSRange*)aRange inRange: (NSRange)rangeLimit;
//Comparing attributed strings //Comparing attributed strings
@ -114,7 +114,7 @@
//Changing characters and attributes //Changing characters and attributes
- (void) appendAttributedString: (NSAttributedString*)attributedString; - (void) appendAttributedString: (NSAttributedString*)attributedString;
- (void) insertAttributedString: (NSAttributedString*)attributedString - (void) insertAttributedString: (NSAttributedString*)attributedString
atIndex: (unsigned)index; atIndex: (unsigned int)index;
- (void) replaceCharactersInRange: (NSRange)aRange - (void) replaceCharactersInRange: (NSRange)aRange
withAttributedString: (NSAttributedString*)attributedString; withAttributedString: (NSAttributedString*)attributedString;
- (void) replaceCharactersInRange: (NSRange)aRange - (void) replaceCharactersInRange: (NSRange)aRange

View file

@ -85,8 +85,8 @@ struct autorelease_array_list
void (*_addImp)(id, SEL, id); void (*_addImp)(id, SEL, id);
} }
+ (void) addObject: (id)anObject; + (void) addObject: (id)anObj;
- (void) addObject: (id)anObject; - (void) addObject: (id)anObj;
#ifndef NO_GNUSTEP #ifndef NO_GNUSTEP
+ (void) enableRelease: (BOOL)enable; + (void) enableRelease: (BOOL)enable;

View file

@ -53,8 +53,8 @@
- (id) initWithString: (NSString*)description - (id) initWithString: (NSString*)description
calendarFormat: (NSString*)format; calendarFormat: (NSString*)format;
- (id) initWithString: (NSString*)description - (id) initWithString: (NSString*)description
calendarFormat: (NSString*)format calendarFormat: (NSString*)fmt
locale: (NSDictionary*)dictionary; locale: (NSDictionary*)locale;
- (id) initWithYear: (int)year - (id) initWithYear: (int)year
month: (unsigned int)month month: (unsigned int)month
day: (unsigned int)day day: (unsigned int)day

View file

@ -55,7 +55,7 @@
- (NSCharacterSet*) invertedSet; - (NSCharacterSet*) invertedSet;
#ifndef STRICT_MACOS_X #ifndef STRICT_MACOS_X
+ (NSCharacterSet*) characterSetWithContentsOfFile: (NSString*)file; + (NSCharacterSet*) characterSetWithContentsOfFile: (NSString*)aFile;
#endif #endif
@end @end

View file

@ -38,7 +38,7 @@
at: (const void*)array; at: (const void*)array;
- (void) encodeBycopyObject: (id)anObject; - (void) encodeBycopyObject: (id)anObject;
- (void) encodeByrefObject: (id)anObject; - (void) encodeByrefObject: (id)anObject;
- (void) encodeBytes: (void*)addr length: (unsigned)l; - (void) encodeBytes: (void*)d length: (unsigned)l;
- (void) encodeConditionalObject: (id)anObject; - (void) encodeConditionalObject: (id)anObject;
- (void) encodeDataObject: (NSData*)data; - (void) encodeDataObject: (NSData*)data;
- (void) encodeObject: (id)anObject; - (void) encodeObject: (id)anObject;

View file

@ -106,14 +106,14 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
usingNameServer: (NSPortNameServer*)s; usingNameServer: (NSPortNameServer*)s;
+ (id) currentConversation; + (id) currentConversation;
+ (NSConnection*) defaultConnection; + (NSConnection*) defaultConnection;
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)name + (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
host: (NSString*)host; host: (NSString*)h;
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)name + (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
host: (NSString*)host usingNameServer: (NSPortNameServer*)s; host: (NSString*)h usingNameServer: (NSPortNameServer*)s;
- (void) addRequestMode: (NSString*)mode; - (void) addRequestMode: (NSString*)mode;
- (void) addRunLoop: (NSRunLoop*)runloop; - (void) addRunLoop: (NSRunLoop*)loop;
- (id) delegate; - (id) delegate;
- (void) enableMultipleThreads; - (void) enableMultipleThreads;
- (BOOL) independentConversationQueueing; - (BOOL) independentConversationQueueing;
@ -128,7 +128,7 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
- (BOOL) registerName: (NSString*)name withNameServer: (NSPortNameServer*)svr; - (BOOL) registerName: (NSString*)name withNameServer: (NSPortNameServer*)svr;
- (NSArray*) remoteObjects; - (NSArray*) remoteObjects;
- (void) removeRequestMode: (NSString*)mode; - (void) removeRequestMode: (NSString*)mode;
- (void) removeRunLoop: (NSRunLoop *)runloop; - (void) removeRunLoop: (NSRunLoop *)loop;
- (NSTimeInterval) replyTimeout; - (NSTimeInterval) replyTimeout;
- (NSArray*) requestModes; - (NSArray*) requestModes;
- (NSTimeInterval) requestTimeout; - (NSTimeInterval) requestTimeout;
@ -138,9 +138,9 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
- (NSPort*) sendPort; - (NSPort*) sendPort;
- (void) setDelegate: anObj; - (void) setDelegate: anObj;
- (void) setIndependentConversationQueueing: (BOOL)flag; - (void) setIndependentConversationQueueing: (BOOL)flag;
- (void) setReplyTimeout: (NSTimeInterval)seconds; - (void) setReplyTimeout: (NSTimeInterval)to;
- (void) setRequestMode: (NSString*)mode; - (void) setRequestMode: (NSString*)mode;
- (void) setRequestTimeout: (NSTimeInterval)seconds; - (void) setRequestTimeout: (NSTimeInterval)to;
- (void) setRootObject: anObj; - (void) setRootObject: anObj;
- (NSDictionary*) statistics; - (NSDictionary*) statistics;
@end @end
@ -152,14 +152,14 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
*/ */
@interface NSConnection (GNUstepExtensions) <GCFinalization> @interface NSConnection (GNUstepExtensions) <GCFinalization>
+ (NSConnection*) newRegisteringAtName: (NSString*)n + (NSConnection*) newRegisteringAtName: (NSString*)name
withRootObject: (id)anObject; withRootObject: (id)anObject;
- (void) gcFinalize; - (void) gcFinalize;
- (retval_t) forwardForProxy: (NSDistantObject*)object - (retval_t) forwardForProxy: (NSDistantObject*)object
selector: (SEL)sel selector: (SEL)sel
argFrame: (arglist_t)frame; argFrame: (arglist_t)argframe;
- (void) forwardInvocation: (NSInvocation *)inv - (void) forwardInvocation: (NSInvocation *)inv
forProxy: (NSDistantObject*)object; forProxy: (NSDistantObject*)object;
- (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target; - (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target;

View file

@ -47,10 +47,10 @@
+ (id) dataWithContentsOfURL: (NSURL*)url; + (id) dataWithContentsOfURL: (NSURL*)url;
#endif #endif
+ (id) dataWithData: (NSData*)data; + (id) dataWithData: (NSData*)data;
- (id) initWithBytes: (const void*)bytes - (id) initWithBytes: (const void*)aBuffer
length: (unsigned int)length; length: (unsigned int)bufferSize;
- (id) initWithBytesNoCopy: (void*)bytes - (id) initWithBytesNoCopy: (void*)aBuffer
length: (unsigned int)length; length: (unsigned int)bufferSize;
- (id) initWithContentsOfFile: (NSString*)path; - (id) initWithContentsOfFile: (NSString*)path;
- (id) initWithContentsOfMappedFile: (NSString*)path; - (id) initWithContentsOfMappedFile: (NSString*)path;
#ifndef STRICT_OPENSTEP #ifndef STRICT_OPENSTEP
@ -90,7 +90,7 @@
atCursor: (unsigned int*)cursor atCursor: (unsigned int*)cursor
context: (id <NSObjCTypeSerializationCallBack>)callback; context: (id <NSObjCTypeSerializationCallBack>)callback;
- (int) deserializeIntAtCursor: (unsigned int*)cursor; - (int) deserializeIntAtCursor: (unsigned int*)cursor;
- (int) deserializeIntAtIndex: (unsigned int)location; - (int) deserializeIntAtIndex: (unsigned int)index;
- (void) deserializeInts: (int*)intBuffer - (void) deserializeInts: (int*)intBuffer
count: (unsigned int)numInts count: (unsigned int)numInts
atCursor: (unsigned int*)cursor; atCursor: (unsigned int*)cursor;
@ -173,9 +173,9 @@
#define _GSC_CID 0x17 /* Class encoded as id */ #define _GSC_CID 0x17 /* Class encoded as id */
@interface NSData (GNUstepExtensions) @interface NSData (GNUstepExtensions)
+ (id) dataWithShmID: (int)anID length: (unsigned) length; + (id) dataWithShmID: (int)anID length: (unsigned int) length;
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned) length; + (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int) length;
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned) length; + (id) dataWithStaticBytes: (const void*)bytes length: (unsigned int) length;
/* /*
* -deserializeTypeTag:andCrossRef:atCursor: * -deserializeTypeTag:andCrossRef:atCursor:
@ -183,8 +183,8 @@
* NSUnarchiver maximum possible performance. * NSUnarchiver maximum possible performance.
*/ */
- (void) deserializeTypeTag: (unsigned char*)tag - (void) deserializeTypeTag: (unsigned char*)tag
andCrossRef: (unsigned int*)xref andCrossRef: (unsigned int*)ref
atCursor: (unsigned*)cursor; atCursor: (unsigned int*)cursor;
@end @end
#endif #endif
@ -198,13 +198,13 @@
// Adjusting Capacity // Adjusting Capacity
- (void) increaseLengthBy: (unsigned int)extraLength; - (void) increaseLengthBy: (unsigned int)extraLength;
- (void) setLength: (unsigned int)length; - (void) setLength: (unsigned int)size;
- (void*) mutableBytes; - (void*) mutableBytes;
// Appending Data // Appending Data
- (void) appendBytes: (const void*)bytes - (void) appendBytes: (const void*)aBuffer
length: (unsigned int)length; length: (unsigned int)bufferSize;
- (void) appendData: (NSData*)other; - (void) appendData: (NSData*)other;
// Modifying Data // Modifying Data
@ -222,12 +222,12 @@
context: (id <NSObjCTypeSerializationCallBack>)callback; context: (id <NSObjCTypeSerializationCallBack>)callback;
- (void) serializeInt: (int)value; - (void) serializeInt: (int)value;
- (void) serializeInt: (int)value - (void) serializeInt: (int)value
atIndex: (unsigned int)location; atIndex: (unsigned int)index;
- (void) serializeInts: (int*)intBuffer - (void) serializeInts: (int*)intBuffer
count: (unsigned int)numInts; count: (unsigned int)numInts;
- (void) serializeInts: (int*)intBuffer - (void) serializeInts: (int*)intBuffer
count: (unsigned int)numInts count: (unsigned int)numInts
atIndex: (unsigned int)location; atIndex: (unsigned int)index;
@end @end
@ -250,7 +250,7 @@
*/ */
- (void) serializeTypeTag: (unsigned char)tag; - (void) serializeTypeTag: (unsigned char)tag;
- (void) serializeTypeTag: (unsigned char)tag - (void) serializeTypeTag: (unsigned char)tag
andCrossRef: (unsigned)xref; andCrossRef: (unsigned int)xref;
@end @end
#endif #endif

View file

@ -68,7 +68,7 @@ typedef double NSTimeInterval;
- (NSString*) description; - (NSString*) description;
- (NSString*) descriptionWithCalendarFormat: (NSString*)format - (NSString*) descriptionWithCalendarFormat: (NSString*)format
timeZone: (NSTimeZone*)aTimeZone timeZone: (NSTimeZone*)aTimeZone
locale: (NSDictionary*)localeDictionary; locale: (NSDictionary*)l;
- (NSString*) descriptionWithLocale: (NSDictionary*)locale; - (NSString*) descriptionWithLocale: (NSDictionary*)locale;
// Adding and getting intervals // Adding and getting intervals
@ -84,13 +84,13 @@ typedef double NSTimeInterval;
- (NSComparisonResult) compare: (NSDate*)otherDate; - (NSComparisonResult) compare: (NSDate*)otherDate;
- (NSDate*) earlierDate: (NSDate*)otherDate; - (NSDate*) earlierDate: (NSDate*)otherDate;
- (BOOL) isEqualToDate: (NSDate*)otherDate; - (BOOL) isEqualToDate: (NSDate*)other;
- (NSDate*) laterDate: (NSDate*)otherDate; - (NSDate*) laterDate: (NSDate*)otherDate;
#ifndef STRICT_OPENSTEP #ifndef STRICT_OPENSTEP
+ (id) dateWithNaturalLanguageString: (NSString*)string; + (id) dateWithNaturalLanguageString: (NSString*)string;
+ (id) dateWithNaturalLanguageString: (NSString*)string + (id) dateWithNaturalLanguageString: (NSString*)string
locale: (NSDictionary*)localeDictionary; locale: (NSDictionary*)locale;
- (id) initWithTimeIntervalSince1970: (NSTimeInterval)seconds; - (id) initWithTimeIntervalSince1970: (NSTimeInterval)seconds;
#endif #endif

View file

@ -51,7 +51,7 @@
- (NSConnection*) connectionForProxy; - (NSConnection*) connectionForProxy;
- (id) initWithLocal: (id)anObject - (id) initWithLocal: (id)anObject
connection: (NSConnection*)aConnection; connection: (NSConnection*)aConnection;
- (id) initWithTarget: (unsigned)anObject - (id) initWithTarget: (unsigned)target
connection: (NSConnection*)aConnection; connection: (NSConnection*)aConnection;
- (void) setProtocolForProxy: (Protocol*)aProtocol; - (void) setProtocolForProxy: (Protocol*)aProtocol;

View file

@ -71,7 +71,7 @@ GS_EXPORT NSString *NSLocalNotificationCenterType;
- (void) removeObserver: (id)anObserver - (void) removeObserver: (id)anObserver
name: (NSString*)notificationName name: (NSString*)notificationName
object: (NSString*)anObject; object: (NSString*)anObject;
- (void) setSuspended: (BOOL)suspended; - (void) setSuspended: (BOOL)flag;
- (BOOL) suspended; - (BOOL) suspended;
@end @end

View file

@ -45,7 +45,7 @@
/* /*
* Creating instances. * Creating instances.
*/ */
+ (NSInvocation*) invocationWithMethodSignature: (NSMethodSignature*)signature; + (NSInvocation*) invocationWithMethodSignature: (NSMethodSignature*)_signature;
/* /*
* Accessing message elements. * Accessing message elements.
@ -57,8 +57,8 @@
- (void) setArgument: (void*)buffer - (void) setArgument: (void*)buffer
atIndex: (int)index; atIndex: (int)index;
- (void) setReturnValue: (void*)buffer; - (void) setReturnValue: (void*)buffer;
- (void) setSelector: (SEL)selector; - (void) setSelector: (SEL)aSelector;
- (void) setTarget: (id)target; - (void) setTarget: (id)anObject;
- (id) target; - (id) target;
/* /*
@ -71,7 +71,7 @@
* Dispatching an Invocation. * Dispatching an Invocation.
*/ */
- (void) invoke; - (void) invoke;
- (void) invokeWithTarget: (id)target; - (void) invokeWithTarget: (id)anObject;
/* /*
* Getting the method signature. * Getting the method signature.
@ -85,7 +85,7 @@
- (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector; - (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector;
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature; - (id) initWithMethodSignature: (NSMethodSignature*)aSignature;
- (id) initWithSelector: (SEL)aSelector; - (id) initWithSelector: (SEL)aSelector;
- (id) initWithTarget: target selector: (SEL)aSelector, ...; - (id) initWithTarget: (id)anObject selector: (SEL)aSelector, ...;
- (void*) returnFrame: (arglist_t)argFrame; - (void*) returnFrame: (arglist_t)argFrame;
- (BOOL) sendsToSuper; - (BOOL) sendsToSuper;
- (void) setSendsToSuper: (BOOL)flag; - (void) setSendsToSuper: (BOOL)flag;

View file

@ -98,8 +98,8 @@
* Acquiring the lock with a date condition * Acquiring the lock with a date condition
*/ */
- (BOOL) lockBeforeDate: (NSDate*)limit; - (BOOL) lockBeforeDate: (NSDate*)limit;
- (BOOL) lockWhenCondition: (int)condition - (BOOL) lockWhenCondition: (int)condition_to_meet
beforeDate: (NSDate*)limit; beforeDate: (NSDate*)limitDate;
- (void) lock; - (void) lock;
- (void) unlock; - (void) unlock;

View file

@ -60,7 +60,7 @@ typedef struct {
#endif #endif
} }
+ (NSMethodSignature*) signatureWithObjCTypes: (const char*)types; + (NSMethodSignature*) signatureWithObjCTypes: (const char*)t;
#ifndef STRICT_MACOS_X #ifndef STRICT_MACOS_X
- (NSArgumentInfo) argumentInfoAtIndex: (unsigned)index; - (NSArgumentInfo) argumentInfoAtIndex: (unsigned)index;

View file

@ -44,7 +44,7 @@
+ (NSNotification*) notificationWithName: (NSString*)name + (NSNotification*) notificationWithName: (NSString*)name
object: (id)object object: (id)object
userInfo: (NSDictionary*)user_info; userInfo: (NSDictionary*)info;
/* Querying a Notification Object */ /* Querying a Notification Object */

View file

@ -120,7 +120,7 @@
- (NSString*) description; - (NSString*) description;
+ (NSString*) description; + (NSString*) description;
+ (void) poseAsClass: (Class)aClass; + (void) poseAsClass: (Class)aClassObject;
- (void) doesNotRecognizeSelector: (SEL)aSelector; - (void) doesNotRecognizeSelector: (SEL)aSelector;
@ -130,9 +130,9 @@
- (Class) classForArchiver; - (Class) classForArchiver;
- (Class) classForCoder; - (Class) classForCoder;
- (Class) classForPortCoder; - (Class) classForPortCoder;
- (id) replacementObjectForArchiver: (NSArchiver*)anEncoder; - (id) replacementObjectForArchiver: (NSArchiver*)anArchiver;
- (id) replacementObjectForCoder: (NSCoder*)anEncoder; - (id) replacementObjectForCoder: (NSCoder*)anEncoder;
- (id) replacementObjectForPortCoder: (NSPortCoder*)anEncoder; - (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder;
+ (id) setVersion: (int)aVersion; + (id) setVersion: (int)aVersion;

View file

@ -35,7 +35,7 @@
} }
+ (id) alloc; + (id) alloc;
+ (id) allocWithZone: (NSZone*)zone; + (id) allocWithZone: (NSZone*)z;
+ (Class) class; + (Class) class;
+ (void) load; + (void) load;
+ (BOOL) respondsToSelector: (SEL)aSelector; + (BOOL) respondsToSelector: (SEL)aSelector;

View file

@ -48,7 +48,7 @@ GS_EXPORT NSString* const NSDefaultRunLoopMode;
+ (NSRunLoop*) currentRunLoop; + (NSRunLoop*) currentRunLoop;
- (void) acceptInputForMode: (NSString*)mode - (void) acceptInputForMode: (NSString*)mode
beforeDate: (NSDate*)date; beforeDate: (NSDate*)limit_date;
- (void) addTimer: (NSTimer*)timer - (void) addTimer: (NSTimer*)timer
forMode: (NSString*)mode; forMode: (NSString*)mode;
@ -62,7 +62,7 @@ GS_EXPORT NSString* const NSDefaultRunLoopMode;
- (BOOL) runMode: (NSString*)mode - (BOOL) runMode: (NSString*)mode
beforeDate: (NSDate*)date; beforeDate: (NSDate*)date;
- (void) runUntilDate: (NSDate*)limit_date; - (void) runUntilDate: (NSDate*)date;
@end @end
@ -133,16 +133,16 @@ typedef enum {
+ currentInstance; + currentInstance;
+ (NSString*) currentMode; + (NSString*) currentMode;
+ (void) run; + (void) run;
+ (BOOL) runOnceBeforeDate: date; + (BOOL) runOnceBeforeDate: (NSDate*)date;
+ (BOOL) runOnceBeforeDate: date + (BOOL) runOnceBeforeDate: (NSDate*)date
forMode: (NSString*)mode; forMode: (NSString*)mode;
+ (void) runUntilDate: date; + (void) runUntilDate: (NSDate*)date;
+ (void) runUntilDate: date + (void) runUntilDate: (NSDate*)date
forMode: (NSString*)mode; forMode: (NSString*)mode;
- (BOOL) runOnceBeforeDate: (NSDate*)date; - (BOOL) runOnceBeforeDate: (NSDate*)date;
- (BOOL) runOnceBeforeDate: (NSDate*)date - (BOOL) runOnceBeforeDate: (NSDate*)date
forMode: (NSString*)mode; forMode: (NSString*)mode;
- (void) runUntilDate: (NSDate*)limit_date - (void) runUntilDate: (NSDate*)date
forMode: (NSString*)mode; forMode: (NSString*)mode;
#endif #endif
/* /*

View file

@ -31,29 +31,29 @@
@interface NSSet : NSObject <NSCoding, NSCopying, NSMutableCopying> @interface NSSet : NSObject <NSCoding, NSCopying, NSMutableCopying>
+ (id) set; + (id) set;
+ (id) setWithArray: (NSArray*)array; + (id) setWithArray: (NSArray*)objects;
+ (id) setWithObject: (id)anObject; + (id) setWithObject: (id)anObject;
+ (id) setWithObjects: (id)anObject, ...; + (id) setWithObjects: (id)firstObject, ...;
+ (id) setWithSet: (NSSet*)aSet; + (id) setWithSet: (NSSet*)aSet;
- (NSArray*) allObjects; - (NSArray*) allObjects;
- (id) anyObject; - (id) anyObject;
- (BOOL) containsObject: (id)anObject; - (BOOL) containsObject: (id)anObject;
- (unsigned) count; - (unsigned) count;
- (NSString*) descriptionWithLocale: (NSDictionary*)ld; - (NSString*) descriptionWithLocale: (NSDictionary*)locale;
- (id) initWithArray: (NSArray*)array; - (id) initWithArray: (NSArray*)other;
- (id) initWithObjects: (id)objects, ...; - (id) initWithObjects: (id)firstObject, ...;
- (id) initWithObjects: (id*)objects - (id) initWithObjects: (id*)objects
count: (unsigned)count; count: (unsigned)count;
- (id) initWithObjects: firstObject - (id) initWithObjects: firstObject
rest: (va_list)ap; rest: (va_list)ap;
- (id) initWithSet: (NSSet*)otherSet; - (id) initWithSet: (NSSet*)other;
- (id) initWithSet: (NSSet*)otherSet copyItems: (BOOL)flags; - (id) initWithSet: (NSSet*)other copyItems: (BOOL)flag;
- (BOOL) intersectsSet: (NSSet*)other; - (BOOL) intersectsSet: (NSSet*)otherSet;
- (BOOL) isEqualToSet: (NSSet*)other; - (BOOL) isEqualToSet: (NSSet*)other;
- (BOOL) isSubsetOfSet: (NSSet*)other; - (BOOL) isSubsetOfSet: (NSSet*)otherSet;
- (void) makeObjectsPerform: (SEL)aSelector; - (void) makeObjectsPerform: (SEL)aSelector;
- (void) makeObjectsPerform: (SEL)aSelector withObject: (id)argument; - (void) makeObjectsPerform: (SEL)aSelector withObject: (id)argument;

View file

@ -56,7 +56,7 @@
+ (NSTimeZone*) systemTimeZone; + (NSTimeZone*) systemTimeZone;
+ (NSTimeZone*) timeZoneWithName: (NSString*)name data: (NSData*)data; + (NSTimeZone*) timeZoneWithName: (NSString*)name data: (NSData*)data;
- (NSString*) abbreviation; - (NSString*) abbreviation;
- (NSString*) abbreviationForDate: (NSDate*)aDate; - (NSString*) abbreviationForDate: (NSDate*)when;
- (id) initWithName: (NSString*)name; - (id) initWithName: (NSString*)name;
- (id) initWithName: (NSString*)name data: (NSData*)data; - (id) initWithName: (NSString*)name data: (NSData*)data;
- (BOOL) isDaylightSavingTime; - (BOOL) isDaylightSavingTime;
@ -64,7 +64,7 @@
- (BOOL) isEqualToTimeZone: (NSTimeZone*)aTimeZone; - (BOOL) isEqualToTimeZone: (NSTimeZone*)aTimeZone;
- (NSString*) name; - (NSString*) name;
- (int) secondsFromGMT; - (int) secondsFromGMT;
- (int) secondsFromGMTForDate: (NSDate*)aDate; - (int) secondsFromGMTForDate: (NSDate*)when;
#endif #endif
#ifndef STRICT_MACOS_X #ifndef STRICT_MACOS_X

View file

@ -48,7 +48,7 @@
/* Creating timer objects. */ /* Creating timer objects. */
+ (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti + (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti
invocation: invocation invocation: (NSInvocation*)invocation
repeats: (BOOL)f; repeats: (BOOL)f;
+ (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti + (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti
target: object target: object
@ -57,7 +57,7 @@
repeats: (BOOL)f; repeats: (BOOL)f;
+ (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti + (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti
invocation: invocation invocation: (NSInvocation*)invocation
repeats: (BOOL)f; repeats: (BOOL)f;
+ (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti + (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti
target: object target: object

View file

@ -37,31 +37,31 @@ GS_EXPORT NSString* NSURLFileScheme; //file
NSURL *_baseURL; NSURL *_baseURL;
} }
+ (id) fileURLWithPath: (NSString*)path; + (id) fileURLWithPath: (NSString*)aPath;
+ (id) URLWithString: (NSString*)URLString; + (id) URLWithString: (NSString*)aUrlString;
+ (id) URLWithString: (NSString*)URLString + (id) URLWithString: (NSString*)aUrlString
relativeToURL: (NSURL*)baseURL; relativeToURL: (NSURL*)aBaseUrl;
- (id) initWithScheme: (NSString*)scheme - (id) initWithScheme: (NSString*)aScheme
host: (NSString*)host host: (NSString*)aHost
path: (NSString*)path; path: (NSString*)aPath;
//Non Standard Function //Non Standard Function
- (id) initWithScheme: (NSString*)scheme - (id) initWithScheme: (NSString*)aScheme
host: (NSString*)host host: (NSString*)aHost
port: (NSNumber*)port port: (NSNumber*)aPort
path: (NSString*)path; path: (NSString*)aPath;
//Do a initWithScheme: NSFileScheme host: nil path: path //Do a initWithScheme: NSFileScheme host: nil path: path
- (id) initFileURLWithPath: (NSString*)path; - (id) initFileURLWithPath: (NSString*)aPath;
// urlString is escaped // urlString is escaped
- (id) initWithString: (NSString*)URLString; - (id) initWithString: (NSString*)aUrlString;
//URLString!=nil ! //URLString!=nil !
// urlString is escaped // urlString is escaped
- (id) initWithString: (NSString*)URLString - (id) initWithString: (NSString*)aUrlString
relativeToURL: (NSURL*)baseURL; relativeToURL: (NSURL*)aBaseUrl;
- (NSString*) description; - (NSString*) description;
- (NSString*) absoluteString; - (NSString*) absoluteString;

View file

@ -73,17 +73,17 @@ GS_EXPORT NSString *NSUndoManagerWillUndoChangeNotification;
- (void) redo; - (void) redo;
- (NSString*) redoActionName; - (NSString*) redoActionName;
- (NSString*) redoMenuItemTitle; - (NSString*) redoMenuItemTitle;
- (NSString*) redoMenuTitleForUndoActionName: (NSString*)actionName; - (NSString*) redoMenuTitleForUndoActionName: (NSString*)name;
- (void) registerUndoWithTarget: (id)target - (void) registerUndoWithTarget: (id)target
selector: (SEL)aSelector selector: (SEL)aSelector
object: (id)anObject; object: (id)anObject;
- (void) removeAllActions; - (void) removeAllActions;
- (void) removeAllActionsWithTarget: (id)target; - (void) removeAllActionsWithTarget: (id)target;
- (NSArray*) runLoopModes; - (NSArray*) runLoopModes;
- (void) setActionName: (NSString*)actionName; - (void) setActionName: (NSString*)name;
- (void) setGroupsByEvent: (BOOL)flag; - (void) setGroupsByEvent: (BOOL)flag;
- (void) setLevelsOfUndo: (unsigned)num; - (void) setLevelsOfUndo: (unsigned)num;
- (void) setRunLoopModes: (NSArray*)modes; - (void) setRunLoopModes: (NSArray*)newModes;
- (void) undo; - (void) undo;
- (NSString*) undoActionName; - (NSString*) undoActionName;
- (NSString*) undoMenuItemTitle; - (NSString*) undoMenuItemTitle;

View file

@ -184,7 +184,7 @@ GS_EXPORT NSString* const NSLocale;
/* Making Advanced Use of Defaults */ /* Making Advanced Use of Defaults */
- (NSDictionary*) dictionaryRepresentation; - (NSDictionary*) dictionaryRepresentation;
- (void) registerDefaults: (NSDictionary*)dictionary; - (void) registerDefaults: (NSDictionary*)newVals;
@end @end
#endif /* __NSUserDefaults_h_OBJECTS_INCLUDE */ #endif /* __NSUserDefaults_h_OBJECTS_INCLUDE */

View file

@ -45,7 +45,7 @@
+ (NSValue*) valueWithBytes: (const void*)value objCType: (const char*)type; + (NSValue*) valueWithBytes: (const void*)value objCType: (const char*)type;
+ (NSValue*) valueFromString: (NSString*)string; + (NSValue*) valueFromString: (NSString*)string;
/* Designated initializer for all concrete subclasses */ /* Designated initializer for all concrete subclasses */
- (id) initWithBytes: (const void*)value objCType: (const char*)type; - (id) initWithBytes: (const void*)data objCType: (const char*)type;
- (BOOL) isEqualToValue: (NSValue*)other; - (BOOL) isEqualToValue: (NSValue*)other;
#endif #endif

View file

@ -1,4 +1,4 @@
/* Concrete implementation of NSArray /** Concrete implementation of NSArray
Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* /**
GSAttributedString.m GSAttributedString.m
Implementation of concrete subclass of a string class with attributes Implementation of concrete subclass of a string class with attributes

View file

@ -1,4 +1,4 @@
/* Runtime MacOSX compatibility functionality /** Runtime MacOSX compatibility functionality
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Richard frith-Macdonald <rfm@gnu.org> Written by: Richard frith-Macdonald <rfm@gnu.org>

View file

@ -1,4 +1,4 @@
/* Concrete implementation of NSCountedSet based on GNU Set class /** Concrete implementation of NSCountedSet based on GNU Set class
Copyright (C) 1998,2000 Free Software Foundation, Inc. Copyright (C) 1998,2000 Free Software Foundation, Inc.
Written by: Richard frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Interface to concrete implementation of NSDictionary /** Interface to concrete implementation of NSDictionary
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation of GSFFCallInvocation for GNUStep /** Implementation of GSFFCallInvocation for GNUStep
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written: Adam Fedor <fedor@gnu.org> Written: Adam Fedor <fedor@gnu.org>

View file

@ -1,4 +1,4 @@
/* Implementation of GSFFIInvocation for GNUStep /** Implementation of GSFFIInvocation for GNUStep
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written: Adam Fedor <fedor@gnu.org> Written: Adam Fedor <fedor@gnu.org>

View file

@ -1,4 +1,4 @@
/* Implementation of GNUSTEP printf-style formatting /** Implementation of GNUSTEP printf-style formatting
Copyright (C) 1994-2000, 2001 Free Software Foundation, Inc. Copyright (C) 1994-2000, 2001 Free Software Foundation, Inc.
Hacked together by Kai Henningsen <kai@cats.ms> Hacked together by Kai Henningsen <kai@cats.ms>

View file

@ -1,4 +1,4 @@
/* GSHTTPURLHandle.m - Class GSHTTPURLHandle /** GSHTTPURLHandle.m - Class GSHTTPURLHandle
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Mark Allison <mark@brainstorm.co.uk> Written by: Mark Allison <mark@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* GSLocale - various functions for localization /** GSLocale - various functions for localization
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.

View file

@ -1,5 +1,4 @@
/** Implementation for GSMIME
/* Implementation for GSMIME
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* Concrete implementation of NSSet based on GNU Set class /** Concrete implementation of NSSet based on GNU Set class
Copyright (C) 1995, 1996, 1998, 2000 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1998, 2000 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation for GNUStep of NSString concrete subclasses /** Implementation for GNUStep of NSString concrete subclasses
Copyright (C) 1997,1998,2000 Free Software Foundation, Inc. Copyright (C) 1997,1998,2000 Free Software Foundation, Inc.
Base on code written by Stevo Crvenkovski <stevo@btinternet.com> Base on code written by Stevo Crvenkovski <stevo@btinternet.com>

View file

@ -1,4 +1,4 @@
/* Implementation of network port object based on TCP sockets /** Implementation of network port object based on TCP sockets
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation for GSUnixSSLHandle for GNUStep /** Implementation for GSUnixSSLHandle for GNUStep
Copyright (C) 1997-1999 Free Software Foundation, Inc. Copyright (C) 1997-1999 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* GSValue - Object encapsulation for C types. /** GSValue - Object encapsulation for C types.
Copyright (C) 1993,1994,1995,1999 Free Software Foundation, Inc. Copyright (C) 1993,1994,1995,1999 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* Implementation for GSXMLDocument for GNUstep xmlparser /** Implementation for GSXMLDocument for GNUstep xmlparser
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
@ -180,7 +180,7 @@ loadEntityFunction(const char *url, const char *eid, xmlParserCtxtPtr *ctxt);
- (id) initWithVersion: (NSString*)version - (id) initWithVersion: (NSString*)version
{ {
void *data = xmlNewDoc([version cString]); void *data = xmlNewDoc([version lossyCString]);
if (data == 0) if (data == 0)
{ {
@ -240,15 +240,16 @@ loadEntityFunction(const char *url, const char *eid, xmlParserCtxtPtr *ctxt);
- (GSXMLNode*) makeNodeWithNamespace: (GSXMLNamespace*)ns - (GSXMLNode*) makeNodeWithNamespace: (GSXMLNamespace*)ns
name: (NSString*)name name: (NSString*)name
content: (NSString*)content; content: (NSString*)content
{ {
return [GSXMLNode nodeFrom: return [GSXMLNode nodeFrom:
xmlNewDocNode(lib, [ns lib], [name cString], [content cString])]; xmlNewDocNode(lib, [ns lib], [name lossyCString],
[content lossyCString])];
} }
- (void) save: (NSString*) filename - (void) save: (NSString*) filename
{ {
xmlSaveFile([filename cString], lib); xmlSaveFile([filename lossyCString], lib);
} }
- (NSString*) stringValue - (NSString*) stringValue
@ -334,7 +335,8 @@ static NSMapTable *nsNames = 0;
if (node != nil) if (node != nil)
{ {
data = xmlNewNs((xmlNodePtr)[node lib], [href cString], [prefix cString]); data = xmlNewNs((xmlNodePtr)[node lib], [href lossyCString],
[prefix lossyCString]);
if (data == NULL) if (data == NULL)
{ {
NSLog(@"Can't create GSXMLNamespace object"); NSLog(@"Can't create GSXMLNamespace object");
@ -345,7 +347,7 @@ static NSMapTable *nsNames = 0;
} }
else else
{ {
data = xmlNewNs(NULL, [href cString], [prefix cString]); data = xmlNewNs(NULL, [href lossyCString], [prefix lossyCString]);
if (data == NULL) if (data == NULL)
{ {
NSLog(@"Can't create GSXMLNamespace object"); NSLog(@"Can't create GSXMLNamespace object");
@ -563,11 +565,11 @@ static NSMapTable *nodeNames = 0;
if (ns != nil) if (ns != nil)
{ {
[ns _native: NO]; [ns _native: NO];
lib = xmlNewNode((xmlNsPtr)[ns lib], [name cString]); lib = xmlNewNode((xmlNsPtr)[ns lib], [name lossyCString]);
} }
else else
{ {
lib = xmlNewNode(NULL, [name cString]); lib = xmlNewNode(NULL, [name lossyCString]);
} }
if (lib == NULL) if (lib == NULL)
{ {
@ -792,28 +794,30 @@ static NSMapTable *nodeNames = 0;
- (GSXMLNode*) makeChildWithNamespace: (GSXMLNamespace*)ns - (GSXMLNode*) makeChildWithNamespace: (GSXMLNamespace*)ns
name: (NSString*)name name: (NSString*)name
content: (NSString*)content; content: (NSString*)content
{ {
return [GSXMLNode nodeFrom: return [GSXMLNode nodeFrom:
xmlNewChild(lib, [ns lib], [name cString], [content cString])]; xmlNewChild(lib, [ns lib], [name lossyCString], [content lossyCString])];
} }
- (GSXMLAttribute*) setProp: (NSString*)name value: (NSString*)value - (GSXMLAttribute*) setProp: (NSString*)name value: (NSString*)value
{ {
return [GSXMLAttribute attributeFrom: return [GSXMLAttribute attributeFrom:
xmlSetProp(lib, [name cString], [value cString])]; xmlSetProp(lib, [name lossyCString], [value lossyCString])];
} }
- (GSXMLNode*) makeComment: (NSString*)content - (GSXMLNode*) makeComment: (NSString*)content
{ {
return [GSXMLNode nodeFrom: xmlAddChild((xmlNodePtr)lib, xmlNewComment([content cString]))]; return [GSXMLNode nodeFrom: xmlAddChild((xmlNodePtr)lib,
xmlNewComment([content lossyCString]))];
} }
- (GSXMLNode*) makePI: (NSString*)name content: (NSString*)content - (GSXMLNode*) makePI: (NSString*)name content: (NSString*)content
{ {
return [GSXMLNode nodeFrom: return [GSXMLNode nodeFrom:
xmlAddChild((xmlNodePtr)lib, xmlNewPI([name cString], [content cString]))]; xmlAddChild((xmlNodePtr)lib, xmlNewPI([name lossyCString],
[content lossyCString]))];
} }
- (unsigned) hash - (unsigned) hash
@ -935,17 +939,18 @@ static NSMapTable *attrNames = 0;
+ (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node + (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node
name: (NSString*)name name: (NSString*)name
value: (NSString*)value; value: (NSString*)value
{ {
return AUTORELEASE([[self alloc] initWithNode: node name: name value: value]); return AUTORELEASE([[self alloc] initWithNode: node name: name value: value]);
} }
- (id) initWithNode: (GSXMLNode*)node - (id) initWithNode: (GSXMLNode*)node
name: (NSString*)name name: (NSString*)name
value: (NSString*)value; value: (NSString*)value
{ {
self = [super init]; self = [super init];
lib = xmlNewProp((xmlNodePtr)[node lib], [name cString], [value cString]); lib = xmlNewProp((xmlNodePtr)[node lib], [name lossyCString],
[value lossyCString]);
return self; return self;
} }
@ -1916,7 +1921,7 @@ fatalErrorFunction(void *ctx, const char *msg, ...)
} }
- (void) startElement: (NSString*)elementName - (void) startElement: (NSString*)elementName
attributes: (NSMutableDictionary*)elementAttributes; attributes: (NSMutableDictionary*)elementAttributes
{ {
} }

View file

@ -1,4 +1,4 @@
/* Implementation of NSArchiver for GNUstep /** Implementation of NSArchiver for GNUstep
Copyright (C) 1998,1999 Free Software Foundation, Inc. Copyright (C) 1998,1999 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* NSArray - Array object to hold other objects. /** NSArray - Array object to hold other objects.
Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
@ -828,7 +828,7 @@ static NSString *indentStrings[] = {
} }
} }
- (BOOL) writeToFile: (NSString *)path atomically: (BOOL)useAuxiliaryFile - (BOOL) writeToFile: (NSString *)path atomically: (BOOL)useAuxilliaryFile
{ {
extern BOOL GSMacOSXCompatiblePropertyLists(); extern BOOL GSMacOSXCompatiblePropertyLists();
NSDictionary *loc; NSDictionary *loc;
@ -854,10 +854,10 @@ static NSString *indentStrings[] = {
desc = result; desc = result;
} }
return [desc writeToFile: path atomically: useAuxiliaryFile]; return [desc writeToFile: path atomically: useAuxilliaryFile];
} }
- (BOOL) writeToURL: (NSURL *)url atomically: (BOOL)useAuxiliaryFile - (BOOL) writeToURL: (NSURL *)url atomically: (BOOL)useAuxilliaryFile
{ {
extern BOOL GSMacOSXCompatiblePropertyLists(); extern BOOL GSMacOSXCompatiblePropertyLists();
NSDictionary *loc; NSDictionary *loc;
@ -883,7 +883,7 @@ static NSString *indentStrings[] = {
desc = result; desc = result;
} }
return [desc writeToURL: url atomically: useAuxiliaryFile]; return [desc writeToURL: url atomically: useAuxilliaryFile];
} }
@end @end

View file

@ -1,4 +1,4 @@
/* NSAssertionHandler - Object encapsulation of assertions /** NSAssertionHandler - Object encapsulation of assertions
Copyright (C) 1995, 1997 Free Software Foundation, Inc. Copyright (C) 1995, 1997 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* /**
NSAttributedString.m NSAttributedString.m
Implementation of string class with attributes Implementation of string class with attributes
@ -278,14 +278,14 @@ static Class GSMutableAttributedStringClass;
} }
//Retrieving attribute information //Retrieving attribute information
- (NSDictionary*) attributesAtIndex: (unsigned)index - (NSDictionary*) attributesAtIndex: (unsigned int)index
effectiveRange: (NSRange*)aRange effectiveRange: (NSRange*)aRange
{ {
[self subclassResponsibility: _cmd];/* Primitive method! */ [self subclassResponsibility: _cmd];/* Primitive method! */
return nil; return nil;
} }
- (NSDictionary*) attributesAtIndex: (unsigned)index - (NSDictionary*) attributesAtIndex: (unsigned int)index
longestEffectiveRange: (NSRange*)aRange longestEffectiveRange: (NSRange*)aRange
inRange: (NSRange)rangeLimit inRange: (NSRange)rangeLimit
{ {
@ -335,7 +335,7 @@ static Class GSMutableAttributedStringClass;
} }
- (id) attribute: (NSString*)attributeName - (id) attribute: (NSString*)attributeName
atIndex: (unsigned)index atIndex: (unsigned int)index
effectiveRange: (NSRange*)aRange effectiveRange: (NSRange*)aRange
{ {
NSDictionary *tmpDictionary; NSDictionary *tmpDictionary;

View file

@ -1,4 +1,4 @@
/* Implementation of auto release pool for delayed disposal /** Implementation of auto release pool for delayed disposal
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* NSBitmapCharSet - Concrete character set holder /** NSBitmapCharSet - Concrete character set holder
Copyright (C) 1993,1994 Free Software Foundation, Inc. Copyright (C) 1993,1994 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* Implementation of NSBundle class /** Implementation of NSBundle class
Copyright (C) 1993,1994,1995, 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1993,1994,1995, 1996, 1997 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>
@ -727,12 +727,12 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return bundle; return bundle;
} }
+ (NSBundle *)bundleWithPath:(NSString *)path + (NSBundle*) bundleWithPath: (NSString*)path
{ {
return AUTORELEASE([[NSBundle alloc] initWithPath: path]); return AUTORELEASE([[NSBundle alloc] initWithPath: path]);
} }
- (id) initWithPath:(NSString *)path; - (id) initWithPath: (NSString*)path
{ {
[super init]; [super init];
@ -1112,7 +1112,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
} }
- (NSString *) pathForResource: (NSString *)name - (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext; ofType: (NSString *)ext
{ {
return [self pathForResource: name return [self pathForResource: name
ofType: ext ofType: ext
@ -1121,7 +1121,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
- (NSString *) pathForResource: (NSString *)name - (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath; inDirectory: (NSString *)bundlePath
{ {
NSString *rootPath; NSString *rootPath;
@ -1385,7 +1385,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
+ (NSString *) pathForGNUstepResource: (NSString *)name + (NSString *) pathForGNUstepResource: (NSString *)name
ofType: (NSString *)ext ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath; inDirectory: (NSString *)bundlePath
{ {
NSString *path = nil; NSString *path = nil;
NSString *bundle_path = nil; NSString *bundle_path = nil;

View file

@ -1,4 +1,4 @@
/* Implementation for NSCalendarDate for GNUstep /** Implementation for NSCalendarDate for GNUstep
Copyright (C) 1996, 1998 Free Software Foundation, Inc. Copyright (C) 1996, 1998 Free Software Foundation, Inc.
Author: Scott Christley <scottc@net-community.com> Author: Scott Christley <scottc@net-community.com>

View file

@ -1,4 +1,4 @@
/* GNUStep callback functions. Implicitly required by the standard. /** GNUStep callback functions. Implicitly required by the standard.
* Copyright(C) 1996 Free Software Foundation, Inc. * Copyright(C) 1996 Free Software Foundation, Inc.
* *
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU> * Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>

View file

@ -1,4 +1,4 @@
/* NSCharacterSet - Character set holder /** NSCharacterSet - Character set holder
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>
@ -171,12 +171,12 @@ static NSLock* cache_lock = nil;
return [self _bitmapForSet: @"nonBaseCharSet" number: 7]; return [self _bitmapForSet: @"nonBaseCharSet" number: 7];
} }
+ (NSCharacterSet*) punctuationCharacterSet; + (NSCharacterSet*) punctuationCharacterSet
{ {
return [self _bitmapForSet: @"punctuationCharSet" number: 8]; return [self _bitmapForSet: @"punctuationCharSet" number: 8];
} }
+ (NSCharacterSet*) symbolAndOperatorCharacterSet; + (NSCharacterSet*) symbolAndOperatorCharacterSet
{ {
return [self _bitmapForSet: @"symbolAndOperatorCharSet" number: 9]; return [self _bitmapForSet: @"symbolAndOperatorCharSet" number: 9];
} }

View file

@ -1,5 +1,4 @@
/** NSClassDescription
/* NSClassDescription
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <rfm@gnu.org> Written by: Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1,4 +1,4 @@
/* NSCoder - coder object for serialization and persistance. /** NSCoder - coder object for serialization and persistance.
Copyright (C) 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation of connection object for remote object messaging /** Implementation of connection object for remote object messaging
Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc. Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
Created by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Created by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation of NSCopyObject() for GNUStep /** Implementation of NSCopyObject() for GNUStep
Copyright (C) 1994, 1995 Free Software Foundation, Inc. Copyright (C) 1994, 1995 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* NSCountedSet - CountedSet object /** NSCountedSet - CountedSet object
Copyright (C) 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Stream of bytes class for serialization and persistance in GNUStep /** Stream of bytes class for serialization and persistance in GNUStep
Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
@ -120,7 +120,7 @@ static SEL appendSel;
static IMP appendImp; static IMP appendImp;
static BOOL static BOOL
readContentsOfFile(NSString* path, void** buf, unsigned* len, NSZone* zone) readContentsOfFile(NSString* path, void** buf, unsigned int* len, NSZone* zone)
{ {
char thePath[BUFSIZ*2]; char thePath[BUFSIZ*2];
FILE *theFile = 0; FILE *theFile = 0;
@ -343,7 +343,7 @@ failure:
unsigned growth; unsigned growth;
} }
/* Increase capacity to at least the specified minimum value. */ /* Increase capacity to at least the specified minimum value. */
- (void) _grow: (unsigned)minimum; - (void) _grow: (unsigned int)minimum;
@end @end
#if HAVE_MMAP #if HAVE_MMAP
@ -356,14 +356,14 @@ failure:
{ {
int shmid; int shmid;
} }
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize; - (id) initWithShmID: (int)anId length: (unsigned int)bufferSize;
@end @end
@interface NSMutableDataShared : NSMutableDataMalloc @interface NSMutableDataShared : NSMutableDataMalloc
{ {
int shmid; int shmid;
} }
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize; - (id) initWithShmID: (int)anId length: (unsigned int)bufferSize;
@end @end
#endif #endif
@ -406,7 +406,7 @@ failure:
} }
+ (id) dataWithBytes: (const void*)bytes + (id) dataWithBytes: (const void*)bytes
length: (unsigned)length length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -416,7 +416,7 @@ failure:
} }
+ (id) dataWithBytesNoCopy: (void*)bytes + (id) dataWithBytesNoCopy: (void*)bytes
length: (unsigned)length length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -480,7 +480,7 @@ failure:
} }
- (id) initWithBytes: (const void*)aBuffer - (id) initWithBytes: (const void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
void *ptr = 0; void *ptr = 0;
@ -493,7 +493,7 @@ failure:
} }
- (id) initWithBytesNoCopy: (void*)aBuffer - (id) initWithBytesNoCopy: (void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return nil; return nil;
@ -522,7 +522,7 @@ failure:
return self; return self;
} }
- (id) initWithContentsOfMappedFile: (NSString *)path; - (id) initWithContentsOfMappedFile: (NSString *)path
{ {
#if HAVE_MMAP #if HAVE_MMAP
RELEASE(self); RELEASE(self);
@ -615,7 +615,7 @@ failure:
[self getBytes: buffer range: NSMakeRange(0, [self length])]; [self getBytes: buffer range: NSMakeRange(0, [self length])];
} }
- (void) getBytes: (void*)buffer length: (unsigned)length - (void) getBytes: (void*)buffer length: (unsigned int)length
{ {
[self getBytes: buffer range: NSMakeRange(0, length)]; [self getBytes: buffer range: NSMakeRange(0, length)];
} }
@ -653,7 +653,7 @@ failure:
return [NSData dataWithBytesNoCopy: buffer length: aRange.length]; return [NSData dataWithBytesNoCopy: buffer length: aRange.length];
} }
- (unsigned) hash - (unsigned int) hash
{ {
unsigned char buf[64]; unsigned char buf[64];
unsigned l = [self length]; unsigned l = [self length];
@ -691,7 +691,7 @@ failure:
} }
// Querying a Data Object // Querying a Data Object
- (BOOL) isEqualToData: (NSData*)other; - (BOOL) isEqualToData: (NSData*)other
{ {
int len; int len;
if ((len = [self length]) != [other length]) if ((len = [self length]) != [other length])
@ -699,7 +699,7 @@ failure:
return (memcmp([self bytes], [other bytes], len) ? NO : YES); return (memcmp([self bytes], [other bytes], len) ? NO : YES);
} }
- (unsigned) length; - (unsigned int) length
{ {
/* This is left to concrete subclasses to implement. */ /* This is left to concrete subclasses to implement. */
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
@ -907,14 +907,14 @@ failure:
// Deserializing Data // Deserializing Data
- (unsigned) deserializeAlignedBytesLengthAtCursor: (unsigned int*)cursor - (unsigned int) deserializeAlignedBytesLengthAtCursor: (unsigned int*)cursor
{ {
return (unsigned)[self deserializeIntAtCursor: cursor]; return (unsigned)[self deserializeIntAtCursor: cursor];
} }
- (void) deserializeBytes: (void*)buffer - (void) deserializeBytes: (void*)buffer
length: (unsigned)bytes length: (unsigned int)bytes
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
{ {
NSRange range = { *cursor, bytes }; NSRange range = { *cursor, bytes };
@ -924,7 +924,7 @@ failure:
- (void) deserializeDataAt: (void*)data - (void) deserializeDataAt: (void*)data
ofObjCType: (const char*)type ofObjCType: (const char*)type
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
context: (id <NSObjCTypeSerializationCallBack>)callback context: (id <NSObjCTypeSerializationCallBack>)callback
{ {
if (!type || !data) if (!type || !data)
@ -1205,7 +1205,7 @@ failure:
} }
} }
- (int) deserializeIntAtCursor: (unsigned*)cursor - (int) deserializeIntAtCursor: (unsigned int*)cursor
{ {
unsigned ni, result; unsigned ni, result;
@ -1214,7 +1214,7 @@ failure:
return result; return result;
} }
- (int) deserializeIntAtIndex: (unsigned)index - (int) deserializeIntAtIndex: (unsigned int)index
{ {
unsigned ni, result; unsigned ni, result;
@ -1224,8 +1224,8 @@ failure:
} }
- (void) deserializeInts: (int*)intBuffer - (void) deserializeInts: (int*)intBuffer
count: (unsigned)numInts count: (unsigned int)numInts
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
{ {
unsigned i; unsigned i;
@ -1237,8 +1237,8 @@ failure:
} }
- (void) deserializeInts: (int*)intBuffer - (void) deserializeInts: (int*)intBuffer
count: (unsigned)numInts count: (unsigned int)numInts
atIndex: (unsigned)index atIndex: (unsigned int)index
{ {
unsigned i; unsigned i;
@ -1286,7 +1286,7 @@ failure:
@end @end
@implementation NSData (GNUstepExtensions) @implementation NSData (GNUstepExtensions)
+ (id) dataWithShmID: (int)anID length: (unsigned)length + (id) dataWithShmID: (int)anID length: (unsigned int)length
{ {
#if HAVE_SHMCTL #if HAVE_SHMCTL
NSDataShared *d; NSDataShared *d;
@ -1300,7 +1300,7 @@ failure:
#endif #endif
} }
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned)length + (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -1314,7 +1314,7 @@ failure:
return AUTORELEASE(d); return AUTORELEASE(d);
} }
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned)length + (id) dataWithStaticBytes: (const void*)bytes length: (unsigned int)length
{ {
NSDataStatic *d; NSDataStatic *d;
@ -1325,7 +1325,7 @@ failure:
- (void) deserializeTypeTag: (unsigned char*)tag - (void) deserializeTypeTag: (unsigned char*)tag
andCrossRef: (unsigned int*)ref andCrossRef: (unsigned int*)ref
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
{ {
[self deserializeDataAt: (void*)tag [self deserializeDataAt: (void*)tag
ofObjCType: @encode(gsu8) ofObjCType: @encode(gsu8)
@ -1402,7 +1402,7 @@ failure:
} }
+ (id) dataWithBytes: (const void*)bytes + (id) dataWithBytes: (const void*)bytes
length: (unsigned)length length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -1412,7 +1412,7 @@ failure:
} }
+ (id) dataWithBytesNoCopy: (void*)bytes + (id) dataWithBytesNoCopy: (void*)bytes
length: (unsigned)length length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -1421,7 +1421,7 @@ failure:
return AUTORELEASE(d); return AUTORELEASE(d);
} }
+ (id) dataWithCapacity: (unsigned)numBytes + (id) dataWithCapacity: (unsigned int)numBytes
{ {
NSMutableData *d; NSMutableData *d;
@ -1468,7 +1468,7 @@ failure:
return AUTORELEASE(d); return AUTORELEASE(d);
} }
+ (id) dataWithLength: (unsigned)length + (id) dataWithLength: (unsigned int)length
{ {
NSMutableData *d; NSMutableData *d;
@ -1506,7 +1506,7 @@ failure:
} }
} }
- (id) initWithCapacity: (unsigned)capacity - (id) initWithCapacity: (unsigned int)capacity
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return nil; return nil;
@ -1544,7 +1544,7 @@ failure:
return self; return self;
} }
- (id) initWithLength: (unsigned)length - (id) initWithLength: (unsigned int)length
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return nil; return nil;
@ -1552,12 +1552,12 @@ failure:
// Adjusting Capacity // Adjusting Capacity
- (void) increaseLengthBy: (unsigned)extraLength - (void) increaseLengthBy: (unsigned int)extraLength
{ {
[self setLength: [self length]+extraLength]; [self setLength: [self length]+extraLength];
} }
- (void) setLength: (unsigned)size - (void) setLength: (unsigned int)size
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -1571,7 +1571,7 @@ failure:
// Appending Data // Appending Data
- (void) appendBytes: (const void*)aBuffer - (void) appendBytes: (const void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
unsigned oldLength = [self length]; unsigned oldLength = [self length];
void* buffer; void* buffer;
@ -1628,7 +1628,7 @@ failure:
// Serializing Data // Serializing Data
- (void) serializeAlignedBytesLength: (unsigned)length - (void) serializeAlignedBytesLength: (unsigned int)length
{ {
[self serializeInt: length]; [self serializeInt: length];
} }
@ -1812,7 +1812,7 @@ failure:
[self appendBytes: &ni length: sizeof(unsigned)]; [self appendBytes: &ni length: sizeof(unsigned)];
} }
- (void) serializeInt: (int)value atIndex: (unsigned)index - (void) serializeInt: (int)value atIndex: (unsigned int)index
{ {
unsigned ni = NSSwapHostIntToBig(value); unsigned ni = NSSwapHostIntToBig(value);
NSRange range = { index, sizeof(int) }; NSRange range = { index, sizeof(int) };
@ -1821,7 +1821,7 @@ failure:
} }
- (void) serializeInts: (int*)intBuffer - (void) serializeInts: (int*)intBuffer
count: (unsigned)numInts count: (unsigned int)numInts
{ {
unsigned i; unsigned i;
SEL sel = @selector(serializeInt:); SEL sel = @selector(serializeInt:);
@ -1834,8 +1834,8 @@ failure:
} }
- (void) serializeInts: (int*)intBuffer - (void) serializeInts: (int*)intBuffer
count: (unsigned)numInts count: (unsigned int)numInts
atIndex: (unsigned)index atIndex: (unsigned int)index
{ {
unsigned i; unsigned i;
SEL sel = @selector(serializeInt:atIndex:); SEL sel = @selector(serializeInt:atIndex:);
@ -1850,7 +1850,7 @@ failure:
@end @end
@implementation NSMutableData (GNUstepExtensions) @implementation NSMutableData (GNUstepExtensions)
+ (id) dataWithShmID: (int)anID length: (unsigned)length + (id) dataWithShmID: (int)anID length: (unsigned int)length
{ {
#if HAVE_SHMCTL #if HAVE_SHMCTL
NSDataShared *d; NSDataShared *d;
@ -1864,7 +1864,7 @@ failure:
#endif #endif
} }
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned)length + (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int)length
{ {
NSData *d; NSData *d;
@ -1878,13 +1878,13 @@ failure:
return AUTORELEASE(d); return AUTORELEASE(d);
} }
- (unsigned) capacity - (unsigned int) capacity
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return 0; return 0;
} }
- (id) setCapacity: (unsigned)newCapacity - (id) setCapacity: (unsigned int)newCapacity
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return nil; return nil;
@ -1903,7 +1903,7 @@ failure:
} }
- (void) serializeTypeTag: (unsigned char)tag - (void) serializeTypeTag: (unsigned char)tag
andCrossRef: (unsigned)xref andCrossRef: (unsigned int)xref
{ {
if (xref <= 0xff) if (xref <= 0xff)
{ {
@ -1988,7 +1988,7 @@ failure:
} }
- (id) initWithBytesNoCopy: (void*)aBuffer - (id) initWithBytesNoCopy: (void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
bytes = aBuffer; bytes = aBuffer;
length = bufferSize; length = bufferSize;
@ -2014,7 +2014,7 @@ failure:
memcpy(buffer, bytes + aRange.location, aRange.length); memcpy(buffer, bytes + aRange.location, aRange.length);
} }
- (unsigned) length - (unsigned int) length
{ {
return length; return length;
} }
@ -2034,7 +2034,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
- (void) deserializeDataAt: (void*)data - (void) deserializeDataAt: (void*)data
ofObjCType: (const char*)type ofObjCType: (const char*)type
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
context: (id <NSObjCTypeSerializationCallBack>)callback context: (id <NSObjCTypeSerializationCallBack>)callback
{ {
if (data == 0 || type == 0) if (data == 0 || type == 0)
@ -2296,7 +2296,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
- (void) deserializeTypeTag: (unsigned char*)tag - (void) deserializeTypeTag: (unsigned char*)tag
andCrossRef: (unsigned int*)ref andCrossRef: (unsigned int*)ref
atCursor: (unsigned*)cursor atCursor: (unsigned int*)cursor
{ {
if (*cursor >= length) if (*cursor >= length)
{ {
@ -2401,7 +2401,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
} }
- (id) initWithBytesNoCopy: (void*)aBuffer - (id) initWithBytesNoCopy: (void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
bytes = aBuffer; bytes = aBuffer;
length = bufferSize; length = bufferSize;
@ -2508,7 +2508,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
[super dealloc]; [super dealloc];
} }
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize - (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
{ {
shmid = -1; shmid = -1;
if (aBuffer && bufferSize) if (aBuffer && bufferSize)
@ -2538,7 +2538,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return self; return self;
} }
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize - (id) initWithShmID: (int)anId length: (unsigned int)bufferSize
{ {
struct shmid_ds buf; struct shmid_ds buf;
@ -2618,7 +2618,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
[super dealloc]; [super dealloc];
} }
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize - (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
{ {
self = [self initWithCapacity: bufferSize]; self = [self initWithCapacity: bufferSize];
if (self) if (self)
@ -2633,7 +2633,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
} }
- (id) initWithBytesNoCopy: (void*)aBuffer - (id) initWithBytesNoCopy: (void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
if (aBuffer == 0) if (aBuffer == 0)
{ {
@ -2667,7 +2667,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
/* /*
* THIS IS THE DESIGNATED INITIALISER * THIS IS THE DESIGNATED INITIALISER
*/ */
- (id) initWithCapacity: (unsigned)size - (id) initWithCapacity: (unsigned int)size
{ {
#if GS_WITH_GC #if GS_WITH_GC
zone = GSAtomicMallocZone(); zone = GSAtomicMallocZone();
@ -2695,7 +2695,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return self; return self;
} }
- (id) initWithLength: (unsigned)size - (id) initWithLength: (unsigned int)size
{ {
self = [self initWithCapacity: size]; self = [self initWithCapacity: size];
if (self) if (self)
@ -2727,7 +2727,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
} }
- (void) appendBytes: (const void*)aBuffer - (void) appendBytes: (const void*)aBuffer
length: (unsigned)bufferSize length: (unsigned int)bufferSize
{ {
unsigned oldLength = length; unsigned oldLength = length;
unsigned minimum = length + bufferSize; unsigned minimum = length + bufferSize;
@ -2740,12 +2740,12 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
length = minimum; length = minimum;
} }
- (unsigned) capacity - (unsigned int) capacity
{ {
return capacity; return capacity;
} }
- (void) _grow: (unsigned)minimum - (void) _grow: (unsigned int)minimum
{ {
if (minimum > capacity) if (minimum > capacity)
{ {
@ -3022,7 +3022,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
} }
- (void) serializeTypeTag: (unsigned char)tag - (void) serializeTypeTag: (unsigned char)tag
andCrossRef: (unsigned)xref andCrossRef: (unsigned int)xref
{ {
if (xref <= 0xff) if (xref <= 0xff)
{ {
@ -3078,7 +3078,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
} }
} }
- (id) setCapacity: (unsigned)size - (id) setCapacity: (unsigned int)size
{ {
if (size != capacity) if (size != capacity)
{ {
@ -3121,7 +3121,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
memcpy(bytes, [data bytes], length); memcpy(bytes, [data bytes], length);
} }
- (void) setLength: (unsigned)size - (void) setLength: (unsigned int)size
{ {
if (size > capacity) if (size > capacity)
{ {
@ -3165,7 +3165,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
[super dealloc]; [super dealloc];
} }
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize - (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
{ {
self = [self initWithCapacity: bufferSize]; self = [self initWithCapacity: bufferSize];
if (self) if (self)
@ -3177,7 +3177,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return self; return self;
} }
- (id) initWithCapacity: (unsigned)bufferSize - (id) initWithCapacity: (unsigned int)bufferSize
{ {
int e; int e;
@ -3206,7 +3206,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return self; return self;
} }
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize - (id) initWithShmID: (int)anId length: (unsigned int)bufferSize
{ {
struct shmid_ds buf; struct shmid_ds buf;
@ -3237,7 +3237,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return self; return self;
} }
- (id) setCapacity: (unsigned)size - (id) setCapacity: (unsigned int)size
{ {
if (size != capacity) if (size != capacity)
{ {

View file

@ -1,4 +1,4 @@
/* Implementation for NSDate for GNUStep /** Implementation for NSDate for GNUStep
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Written by: Jeremy Bettis <jeremy@hksys.com> Written by: Jeremy Bettis <jeremy@hksys.com>
@ -950,7 +950,7 @@ GSTimeNow()
} }
- (id) initWithTimeInterval: (NSTimeInterval)secsToBeAdded - (id) initWithTimeInterval: (NSTimeInterval)secsToBeAdded
sinceDate: (NSDate*)anotherDate; sinceDate: (NSDate*)anotherDate
{ {
if (anotherDate == nil) if (anotherDate == nil)
{ {
@ -963,7 +963,7 @@ GSTimeNow()
otherTime(anotherDate) + secsToBeAdded]; otherTime(anotherDate) + secsToBeAdded];
} }
- (id) initWithTimeIntervalSinceNow: (NSTimeInterval)secsToBeAdded; - (id) initWithTimeIntervalSinceNow: (NSTimeInterval)secsToBeAdded
{ {
// Get the current time, add the secs and init thyself // Get the current time, add the secs and init thyself
return [self initWithTimeIntervalSinceReferenceDate: return [self initWithTimeIntervalSinceReferenceDate:

View file

@ -1,4 +1,4 @@
/* Implementation of NSDateFormatter class /** Implementation of NSDateFormatter class
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Debugging utilities for GNUStep and OpenStep /** Debugging utilities for GNUStep and OpenStep
Copyright (C) 1997,1999,2000,2001 Free Software Foundation, Inc. Copyright (C) 1997,1999,2000,2001 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* /**
NSDecimal functions NSDecimal functions
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* /**
NSDecimalNumber class NSDecimalNumber class
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
@ -31,7 +31,7 @@ static NSDecimalNumberHandler *handler;
@implementation NSDecimalNumberHandler @implementation NSDecimalNumberHandler
+ (id)defaultDecimalNumberHandler + (id) defaultDecimalNumberHandler
{ {
if (handler == nil) if (handler == nil)
handler = [[self alloc] initWithRoundingMode: NSRoundPlain handler = [[self alloc] initWithRoundingMode: NSRoundPlain
@ -44,12 +44,12 @@ static NSDecimalNumberHandler *handler;
return handler; return handler;
} }
+ (id)decimalNumberHandlerWithRoundingMode:(NSRoundingMode)roundingMode + (id) decimalNumberHandlerWithRoundingMode: (NSRoundingMode)roundingMode
scale:(short)scale scale: (short)scale
raiseOnExactness:(BOOL)raiseOnExactness raiseOnExactness: (BOOL)raiseOnExactness
raiseOnOverflow:(BOOL)raiseOnOverflow raiseOnOverflow: (BOOL)raiseOnOverflow
raiseOnUnderflow:(BOOL)raiseOnUnderflow raiseOnUnderflow: (BOOL)raiseOnUnderflow
raiseOnDivideByZero:(BOOL)raiseOnDivideByZero raiseOnDivideByZero: (BOOL)raiseOnDivideByZero
{ {
return AUTORELEASE([[self alloc] initWithRoundingMode: roundingMode return AUTORELEASE([[self alloc] initWithRoundingMode: roundingMode
scale: scale scale: scale
@ -59,12 +59,12 @@ static NSDecimalNumberHandler *handler;
raiseOnDivideByZero: raiseOnDivideByZero]); raiseOnDivideByZero: raiseOnDivideByZero]);
} }
- (id)initWithRoundingMode:(NSRoundingMode)roundingMode - (id) initWithRoundingMode: (NSRoundingMode)roundingMode
scale:(short)scale scale: (short)scale
raiseOnExactness:(BOOL)raiseOnExactness raiseOnExactness: (BOOL)raiseOnExactness
raiseOnOverflow:(BOOL)raiseOnOverflow raiseOnOverflow: (BOOL)raiseOnOverflow
raiseOnUnderflow:(BOOL)raiseOnUnderflow raiseOnUnderflow: (BOOL)raiseOnUnderflow
raiseOnDivideByZero:(BOOL)raiseOnDivideByZero raiseOnDivideByZero: (BOOL)raiseOnDivideByZero
{ {
_roundingMode = roundingMode; _roundingMode = roundingMode;
_scale = scale; _scale = scale;
@ -87,25 +87,29 @@ static NSDecimalNumberHandler *handler;
case NSCalculationUnderflow: case NSCalculationUnderflow:
if (_raiseOnUnderflow) if (_raiseOnUnderflow)
// FIXME: What exception to raise? // FIXME: What exception to raise?
[NSException raise: @"NSDecimalNumberException" format: @"Underflow"]; [NSException raise: @"NSDecimalNumberException"
format: @"Underflow"];
else else
return [NSDecimalNumber minimumDecimalNumber]; return [NSDecimalNumber minimumDecimalNumber];
break; break;
case NSCalculationOverflow: case NSCalculationOverflow:
if (_raiseOnOverflow) if (_raiseOnOverflow)
[NSException raise: @"NSDecimalNumberException" format: @"Overflow"]; [NSException raise: @"NSDecimalNumberException"
format: @"Overflow"];
else else
return [NSDecimalNumber maximumDecimalNumber]; return [NSDecimalNumber maximumDecimalNumber];
break; break;
case NSCalculationLossOfPrecision: case NSCalculationLossOfPrecision:
if (_raiseOnExactness) if (_raiseOnExactness)
[NSException raise: @"NSDecimalNumberException" format: @"Loss of precision"]; [NSException raise: @"NSDecimalNumberException"
format: @"Loss of precision"];
else else
return nil; return nil;
break; break;
case NSCalculationDivideByZero: case NSCalculationDivideByZero:
if (_raiseOnDivideByZero) if (_raiseOnDivideByZero)
[NSException raise: @"NSDecimalNumberException" format: @"Divide by zero"]; [NSException raise: @"NSDecimalNumberException"
format: @"Divide by zero"];
else else
return [NSDecimalNumber notANumber]; return [NSDecimalNumber notANumber];
break; break;
@ -146,20 +150,20 @@ static NSDecimalNumber *one;
NSDecimalMin(&d); NSDecimalMin(&d);
minNumber = [[self alloc] initWithDecimal: d]; minNumber = [[self alloc] initWithDecimal: d];
zero = [[self alloc] initWithMantissa: 0 zero = [[self alloc] initWithMantissa: 0
exponent: 0 exponent: 0
isNegative: NO]; isNegative: NO];
one = [[self alloc] initWithMantissa: 1 one = [[self alloc] initWithMantissa: 1
exponent: 0 exponent: 0
isNegative: NO]; isNegative: NO];
} }
+ (id <NSDecimalNumberBehaviors>)defaultBehavior + (id <NSDecimalNumberBehaviors>) defaultBehavior
{ {
// Reuse the handler from the class NSDecimalNumberHandler // Reuse the handler from the class NSDecimalNumberHandler
return [NSDecimalNumberHandler defaultDecimalNumberHandler]; return [NSDecimalNumberHandler defaultDecimalNumberHandler];
} }
+ (void)setDefaultBehavior:(id <NSDecimalNumberBehaviors>)behavior + (void) setDefaultBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
// Reuse the handler from the class NSDecimalNumberHandler // Reuse the handler from the class NSDecimalNumberHandler
// Might give interessting result on this class as behavior may came // Might give interessting result on this class as behavior may came
@ -167,58 +171,58 @@ static NSDecimalNumber *one;
ASSIGN(handler, behavior); ASSIGN(handler, behavior);
} }
+ (NSDecimalNumber *)maximumDecimalNumber + (NSDecimalNumber*) maximumDecimalNumber
{ {
return maxNumber; return maxNumber;
} }
+ (NSDecimalNumber *)minimumDecimalNumber + (NSDecimalNumber*) minimumDecimalNumber
{ {
return minNumber; return minNumber;
} }
+ (NSDecimalNumber *)notANumber + (NSDecimalNumber*) notANumber
{ {
return notANumber; return notANumber;
} }
+ (NSDecimalNumber *)zero + (NSDecimalNumber*) zero
{ {
return zero; return zero;
} }
+ (NSDecimalNumber *)one + (NSDecimalNumber*) one
{ {
return one; return one;
} }
+ (NSDecimalNumber *)decimalNumberWithDecimal:(NSDecimal)decimal + (NSDecimalNumber*) decimalNumberWithDecimal: (NSDecimal)decimal
{ {
return AUTORELEASE([[self alloc] initWithDecimal: decimal]); return AUTORELEASE([[self alloc] initWithDecimal: decimal]);
} }
+ (NSDecimalNumber *)decimalNumberWithMantissa:(unsigned long long)mantissa + (NSDecimalNumber*) decimalNumberWithMantissa: (unsigned long long)mantissa
exponent:(short)exponent exponent: (short)exponent
isNegative:(BOOL)isNegative isNegative: (BOOL)isNegative
{ {
return AUTORELEASE([[self alloc] initWithMantissa: mantissa return AUTORELEASE([[self alloc] initWithMantissa: mantissa
exponent: exponent exponent: exponent
isNegative: isNegative]); isNegative: isNegative]);
} }
+ (NSDecimalNumber *)decimalNumberWithString:(NSString *)numericString + (NSDecimalNumber*) decimalNumberWithString: (NSString*)numericString
{ {
return AUTORELEASE([[self alloc] initWithString: numericString]); return AUTORELEASE([[self alloc] initWithString: numericString]);
} }
+ (NSDecimalNumber *)decimalNumberWithString:(NSString *)numericString + (NSDecimalNumber*) decimalNumberWithString: (NSString*)numericString
locale:(NSDictionary *)locale locale: (NSDictionary*)locale
{ {
return AUTORELEASE([[self alloc] initWithString: numericString return AUTORELEASE([[self alloc] initWithString: numericString
locale: locale]); locale: locale]);
} }
- (id)initWithDecimal:(NSDecimal)decimal - (id) initWithDecimal: (NSDecimal)decimal
{ {
NSDecimalCopy(&data, &decimal); NSDecimalCopy(&data, &decimal);
return self; return self;
@ -241,7 +245,7 @@ static NSDecimalNumber *one;
} }
- (id) initWithString: (NSString*)numberValue - (id) initWithString: (NSString*)numberValue
locale: (NSDictionary*)locale; locale: (NSDictionary*)locale
{ {
NSDecimal decimal; NSDecimal decimal;
@ -254,12 +258,12 @@ static NSDecimalNumber *one;
return NSDecimalString(&data, locale); return NSDecimalString(&data, locale);
} }
- (const char *)objCType - (const char*) objCType
{ {
return "d"; return "d";
} }
- (NSDecimal)decimalValue - (NSDecimal) decimalValue
{ {
NSDecimal decimal; NSDecimal decimal;
@ -267,12 +271,12 @@ static NSDecimalNumber *one;
return decimal; return decimal;
} }
- (double)doubleValue - (double) doubleValue
{ {
return NSDecimalDouble(&data); return NSDecimalDouble(&data);
} }
- (NSComparisonResult)compare:(NSNumber *)decimalNumber - (NSComparisonResult) compare: (NSNumber*)decimalNumber
{ {
if ([decimalNumber isMemberOfClass: [self class]]) if ([decimalNumber isMemberOfClass: [self class]])
{ {
@ -285,14 +289,14 @@ static NSDecimalNumber *one;
return [super compare: decimalNumber]; return [super compare: decimalNumber];
} }
- (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByAdding: (NSDecimalNumber*)decimalNumber
{ {
return [self decimalNumberByAdding: decimalNumber return [self decimalNumberByAdding: decimalNumber
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByAdding: (NSDecimalNumber*)decimalNumber
withBehavior:(id<NSDecimalNumberBehaviors>)behavior withBehavior: (id<NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -304,9 +308,9 @@ static NSDecimalNumber *one;
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: decimalNumber]; rightOperand: decimalNumber];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -314,14 +318,14 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberBySubtracting: (NSDecimalNumber*)decimalNumber
{ {
return [self decimalNumberBySubtracting: decimalNumber return [self decimalNumberBySubtracting: decimalNumber
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberBySubtracting: (NSDecimalNumber*)decimalNumber
withBehavior:(id <NSDecimalNumberBehaviors>)behavior withBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -333,9 +337,9 @@ static NSDecimalNumber *one;
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: decimalNumber]; rightOperand: decimalNumber];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -343,14 +347,16 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByMultiplyingBy:
(NSDecimalNumber*)decimalNumber
{ {
return [self decimalNumberByMultiplyingBy: decimalNumber return [self decimalNumberByMultiplyingBy: decimalNumber
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByMultiplyingBy:
withBehavior:(id <NSDecimalNumberBehaviors>)behavior (NSDecimalNumber*)decimalNumber
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -362,9 +368,9 @@ static NSDecimalNumber *one;
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: decimalNumber]; rightOperand: decimalNumber];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -372,14 +378,14 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByDividingBy: (NSDecimalNumber*)decimalNumber
{ {
return [self decimalNumberByDividingBy: decimalNumber return [self decimalNumberByDividingBy: decimalNumber
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber - (NSDecimalNumber*) decimalNumberByDividingBy: (NSDecimalNumber*)decimalNumber
withBehavior:(id <NSDecimalNumberBehaviors>)behavior withBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -391,9 +397,9 @@ static NSDecimalNumber *one;
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: decimalNumber]; rightOperand: decimalNumber];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -401,14 +407,14 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power - (NSDecimalNumber*) decimalNumberByMultiplyingByPowerOf10: (short)power
{ {
return [self decimalNumberByMultiplyingByPowerOf10: power return [self decimalNumberByMultiplyingByPowerOf10: power
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power - (NSDecimalNumber*) decimalNumberByMultiplyingByPowerOf10: (short)power
withBehavior:(id <NSDecimalNumberBehaviors>)behavior withBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -416,13 +422,13 @@ static NSDecimalNumber *one;
NSDecimalNumber *res; NSDecimalNumber *res;
error = NSDecimalMultiplyByPowerOf10(&result, &d1, error = NSDecimalMultiplyByPowerOf10(&result, &d1,
power, [behavior roundingMode]); power, [behavior roundingMode]);
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: nil]; rightOperand: nil];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -430,14 +436,14 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberByRaisingToPower:(unsigned)power - (NSDecimalNumber*) decimalNumberByRaisingToPower: (unsigned)power
{ {
return [self decimalNumberByRaisingToPower: power return [self decimalNumberByRaisingToPower: power
withBehavior: [isa defaultBehavior]]; withBehavior: [isa defaultBehavior]];
} }
- (NSDecimalNumber *)decimalNumberByRaisingToPower:(unsigned)power - (NSDecimalNumber*) decimalNumberByRaisingToPower: (unsigned)power
withBehavior:(id <NSDecimalNumberBehaviors>)behavior withBehavior: (id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -445,13 +451,13 @@ static NSDecimalNumber *one;
NSDecimalNumber *res; NSDecimalNumber *res;
error = NSDecimalPower(&result, &d1, error = NSDecimalPower(&result, &d1,
power, [behavior roundingMode]); power, [behavior roundingMode]);
if (error) if (error)
{ {
res = [behavior exceptionDuringOperation: _cmd res = [behavior exceptionDuringOperation: _cmd
error: error error: error
leftOperand: self leftOperand: self
rightOperand: nil]; rightOperand: nil];
if (res != nil) if (res != nil)
return res; return res;
} }
@ -459,7 +465,8 @@ static NSDecimalNumber *one;
return [NSDecimalNumber decimalNumberWithDecimal: result]; return [NSDecimalNumber decimalNumberWithDecimal: result];
} }
- (NSDecimalNumber *)decimalNumberByRoundingAccordingToBehavior:(id <NSDecimalNumberBehaviors>)behavior - (NSDecimalNumber*) decimalNumberByRoundingAccordingToBehavior:
(id <NSDecimalNumberBehaviors>)behavior
{ {
NSDecimal result; NSDecimal result;
NSDecimal d1 = [self decimalValue]; NSDecimal d1 = [self decimalValue];
@ -476,9 +483,9 @@ static NSDecimalNumber *one;
rightOperand: (NSDecimalNumber*)rightOperand rightOperand: (NSDecimalNumber*)rightOperand
{ {
return [[isa defaultBehavior] exceptionDuringOperation: method return [[isa defaultBehavior] exceptionDuringOperation: method
error: error error: error
leftOperand: leftOperand leftOperand: leftOperand
rightOperand: rightOperand]; rightOperand: rightOperand];
} }
- (NSRoundingMode) roundingMode - (NSRoundingMode) roundingMode

View file

@ -1,4 +1,4 @@
/* NSDictionary - Dictionary object to store key/value pairs /** NSDictionary - Dictionary object to store key/value pairs
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation for GNU Objective-C version of NSDistantObject /** Implementation for GNU Objective-C version of NSDistantObject
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation for GNU Objective-C version of NSDistributedLock /** Implementation for GNU Objective-C version of NSDistributedLock
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation of NSDistributedNotificationCenter class /** Implementation of NSDistributedNotificationCenter class
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* NSEnumerator abstrace class for GNUStep /** NSEnumerator abstrace class for GNUStep
Copyright (C) 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* NSException - Object encapsulation of a general exception handler /** NSException - Object encapsulation of a general exception handler
Copyright (C) 1993, 1994, 1996, 1997, 1999 Free Software Foundation, Inc. Copyright (C) 1993, 1994, 1996, 1997, 1999 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* Implementation for NSFileHandle for GNUStep /** Implementation for NSFileHandle for GNUStep
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
@ -389,7 +389,7 @@ NSString* NSFileHandleOperationException =
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
- (void) writeInBackgroundAndNotify: (NSData*)item; - (void) writeInBackgroundAndNotify: (NSData*)item
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }

View file

@ -1,4 +1,4 @@
/* /**
NSFileManager.m NSFileManager.m
Copyright (C) 1997-1999 Free Software Foundation, Inc. Copyright (C) 1997-1999 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* Implementation of NSFormatter class /** Implementation of NSFormatter class
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* NSGeometry.m - geometry functions /** NSGeometry.m - geometry functions
* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. * Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
* *
* Written by: Adam Fedor <fedor@boulder.colorado.edu> * Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* NSHashTable implementation for GNUStep. /** NSHashTable implementation for GNUStep.
* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. * Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
* *
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU> * Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>

View file

@ -1,4 +1,4 @@
/* Implementation of host class /** Implementation of host class
Copyright (C) 1996, 1997,1999 Free Software Foundation, Inc. Copyright (C) 1996, 1997,1999 Free Software Foundation, Inc.
Written by: Luke Howard <lukeh@xedoc.com.au> Written by: Luke Howard <lukeh@xedoc.com.au>
@ -416,7 +416,7 @@ static NSString *myHostName = nil;
[_hostCacheLock unlock]; [_hostCacheLock unlock];
} }
+ (BOOL) isHostCacheEnabled; + (BOOL) isHostCacheEnabled
{ {
return _hostCacheEnabled; return _hostCacheEnabled;
} }

View file

@ -1,4 +1,4 @@
/* Implementation of NSInvocation for GNUStep /** Implementation of NSInvocation for GNUStep
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998 Free Software Foundation, Inc.
Written: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Mutual exclusion locking classes /** Mutual exclusion locking classes
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
Author: Scott Christley <scottc@net-community.com> Author: Scott Christley <scottc@net-community.com>

View file

@ -1,4 +1,4 @@
/* Interface for NSLog for GNUStep /** Interface for NSLog for GNUStep
Copyright (C) 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu> Written by: Adam Fedor <fedor@boulder.colorado.edu>

View file

@ -1,4 +1,4 @@
/* NSMapTable implementation for GNUStep. /** NSMapTable implementation for GNUStep.
* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. * Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
* *
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU> * Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>

View file

@ -1,4 +1,4 @@
/* Implementation of NSMethodSignature for GNUStep /** Implementation of NSMethodSignature for GNUStep
Copyright (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc. Copyright (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation of NSNotification for GNUstep /** Implementation of NSNotification for GNUstep
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
@ -31,7 +31,7 @@
/* This is the designated initializer. */ /* This is the designated initializer. */
- (id) initWithName: (NSString*)name - (id) initWithName: (NSString*)name
object: (id)object object: (id)object
userInfo: (id)info userInfo: (NSDictionary*)info
{ {
[super init]; [super init];
_name = [name copyWithZone: NSDefaultMallocZone()]; _name = [name copyWithZone: NSDefaultMallocZone()];
@ -53,7 +53,7 @@
+ (NSNotification*) notificationWithName: (NSString*)name + (NSNotification*) notificationWithName: (NSString*)name
object: (id)object object: (id)object
userInfo: (id)info userInfo: (NSDictionary*)info
{ {
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()] return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
initWithName: name object: object userInfo: info]); initWithName: name object: object userInfo: info]);

View file

@ -1,4 +1,4 @@
/* Implementation of NSNotificationCenter for GNUstep /** Implementation of NSNotificationCenter for GNUstep
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* /**
NSNotificationQueue.m NSNotificationQueue.m
Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea. Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea.
@ -344,7 +344,7 @@ add_to_queue(NSNotificationQueueList *queue, NSNotification *notification,
/* Inserting and Removing Notifications From a Queue */ /* Inserting and Removing Notifications From a Queue */
- (void) dequeueNotificationsMatching: (NSNotification*)notification - (void) dequeueNotificationsMatching: (NSNotification*)notification
coalesceMask: (NSNotificationCoalescing)coalesceMask coalesceMask: (unsigned int)coalesceMask
{ {
NSNotificationQueueRegistration *item; NSNotificationQueueRegistration *item;
NSNotificationQueueRegistration *next; NSNotificationQueueRegistration *next;
@ -446,21 +446,22 @@ add_to_queue(NSNotificationQueueList *queue, NSNotification *notification,
postingStyle: (NSPostingStyle)postingStyle postingStyle: (NSPostingStyle)postingStyle
{ {
[self enqueueNotification: notification [self enqueueNotification: notification
postingStyle: postingStyle postingStyle: postingStyle
coalesceMask: NSNotificationCoalescingOnName coalesceMask: NSNotificationCoalescingOnName
+ NSNotificationCoalescingOnSender + NSNotificationCoalescingOnSender
forModes: nil]; forModes: nil];
} }
- (void) enqueueNotification: (NSNotification*)notification - (void) enqueueNotification: (NSNotification*)notification
postingStyle: (NSPostingStyle)postingStyle postingStyle: (NSPostingStyle)postingStyle
coalesceMask: (NSNotificationCoalescing)coalesceMask coalesceMask: (unsigned int)coalesceMask
forModes: (NSArray*)modes forModes: (NSArray*)modes
{ {
if (coalesceMask != NSNotificationNoCoalescing) if (coalesceMask != NSNotificationNoCoalescing)
[self dequeueNotificationsMatching: notification {
coalesceMask: coalesceMask]; [self dequeueNotificationsMatching: notification
coalesceMask: coalesceMask];
}
switch (postingStyle) switch (postingStyle)
{ {
case NSPostNow: case NSPostNow:

View file

@ -1,4 +1,4 @@
/* Implementation for NSNull for GNUStep /** Implementation for NSNull for GNUStep
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <rfm@gnu.org> Written by: Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1,4 +1,4 @@
/* NSNumber - Object encapsulation of numbers /** NSNumber - Object encapsulation of numbers
Copyright (C) 1993, 1994, 1996, 2000 Free Software Foundation, Inc. Copyright (C) 1993, 1994, 1996, 2000 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* /**
NSNumberFormatter class NSNumberFormatter class
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000 Free Software Foundation, Inc.

View file

@ -1,4 +1,4 @@
/* Implementation of ObjC runtime for GNUStep /** Implementation of ObjC runtime for GNUStep
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation of page-related functions for GNUstep /** Implementation of page-related functions for GNUstep
Copyright (C) 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu> Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>

View file

@ -1,4 +1,4 @@
/* Implementation for NSPipe for GNUStep /** Implementation for NSPipe for GNUStep
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation of abstract superclass port for use with NSConnection /** Implementation of abstract superclass port for use with NSConnection
Copyright (C) 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,4 +1,4 @@
/* Implementation of NSPortCoder object for remote messaging /** Implementation of NSPortCoder object for remote messaging
Copyright (C) 1997,2000 Free Software Foundation, Inc. Copyright (C) 1997,2000 Free Software Foundation, Inc.
This implementation for OPENSTEP conformance written by This implementation for OPENSTEP conformance written by

View file

@ -1,4 +1,4 @@
/* Implementation of NSPortMessage for GNUstep /** Implementation of NSPortMessage for GNUstep
Copyright (C) 1998,2000 Free Software Foundation, Inc. Copyright (C) 1998,2000 Free Software Foundation, Inc.
Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik> Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik>

View file

@ -1,4 +1,4 @@
/* Implementation of NSPortNameServer class for Distributed Objects /** Implementation of NSPortNameServer class for Distributed Objects
Copyright (C) 1998,1999,2000 Free Software Foundation, Inc. Copyright (C) 1998,1999,2000 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,9 +1,10 @@
/* Implementation for NSProcessInfo for GNUStep /** Implementation for NSProcessInfo for GNUStep
Copyright (C) 1995-1999 Free Software Foundation, Inc. Copyright (C) 1995-2001 Free Software Foundation, Inc.
Written by: Georg Tuparev, EMBL & Academia Naturalis, Written by: Georg Tuparev <Tuparev@EMBL-Heidelberg.de>
Heidelberg, Germany Heidelberg, Germany
Tuparev@EMBL-Heidelberg.de Tuparev@EMBL-Heidelberg.de
Modified by: Richard Frith-Macdonald <rfm@gnu.org>
This file is part of the GNUstep Base Library. This file is part of the GNUstep Base Library.
@ -523,7 +524,7 @@ int main(int argc, char *argv[], char *env[])
*/ */
+ (void)initializeWithArguments:(char**)argv + (void)initializeWithArguments:(char**)argv
count:(int)argc count:(int)argc
environment:(char**)env; environment:(char**)env
{ {
if (!_gnu_processName && !_gnu_arguments && !_gnu_environment) if (!_gnu_processName && !_gnu_arguments && !_gnu_environment)
{ {

View file

@ -1,4 +1,4 @@
/* Implementation of NSProtocolChecker for GNUStep /** Implementation of NSProtocolChecker for GNUStep
Copyright (C) 1995 Free Software Foundation, Inc. Copyright (C) 1995 Free Software Foundation, Inc.
Written by: Mike Kienenberger Written by: Mike Kienenberger

View file

@ -1,4 +1,4 @@
/* Implementation for GNU Objective-C version of NSProxy /** Implementation for GNU Objective-C version of NSProxy
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk> Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -1,6 +1,24 @@
/* NSRange - range functions /** NSRange - range functions
* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
*/ *
* Written by: Adam Fedor <fedor@boulder.colorado.edu>
* Date: Mar 1995
*
* This file is part of the GNUstep Base Library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#include <config.h> #include <config.h>

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