mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
e580f7e25b
commit
5be36e089c
128 changed files with 697 additions and 456 deletions
139
ChangeLog
139
ChangeLog
|
@ -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>
|
||||
|
||||
* Tools/AGSHtml.m: Provide list of methods in each class.
|
||||
|
@ -6,7 +142,8 @@
|
|||
* Tools/AGSOutput.m: Support (name) syntax for specifying a protocol
|
||||
cross reference using [(name)-method]
|
||||
* 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>
|
||||
|
||||
|
|
|
@ -59,15 +59,15 @@
|
|||
|
||||
+ (GSMimeDocument*) mimeDocument;
|
||||
|
||||
- (BOOL) addHeader: (NSDictionary*)headerInfo;
|
||||
- (BOOL) addHeader: (NSDictionary*)info;
|
||||
- (NSArray*) allHeaders;
|
||||
- (id) content;
|
||||
- (void) deleteHeader: (NSString*)rawHeader;
|
||||
- (void) deleteHeaderNamed: (NSString*)aName;
|
||||
- (void) deleteHeader: (NSString*)aHeader;
|
||||
- (void) deleteHeaderNamed: (NSString*)name;
|
||||
- (NSDictionary*) headerNamed: (NSString*)name;
|
||||
- (NSArray*) headersNamed: (NSString*)name;
|
||||
- (BOOL) setContent: (id)newContent;
|
||||
- (BOOL) setHeader: (NSDictionary*)headerInfo;
|
||||
- (BOOL) setHeader: (NSDictionary*)info;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -92,25 +92,25 @@
|
|||
|
||||
+ (GSMimeParser*) mimeParser;
|
||||
|
||||
- (GSMimeCodingContext*) contextFor: (NSDictionary*)headerInfo;
|
||||
- (GSMimeCodingContext*) contextFor: (NSDictionary*)info;
|
||||
- (NSData*) data;
|
||||
- (BOOL) decodeData: (NSData*)sData
|
||||
fromRange: (NSRange)aRange
|
||||
intoData: (NSMutableData*)dData
|
||||
withContext: (GSMimeCodingContext*)ctxt;
|
||||
withContext: (GSMimeCodingContext*)con;
|
||||
- (GSMimeDocument*) document;
|
||||
- (BOOL) isComplete;
|
||||
- (BOOL) isInBody;
|
||||
- (BOOL) isInHeaders;
|
||||
- (BOOL) parse: (NSData*)input;
|
||||
- (BOOL) parseHeader: (NSString*)aRawHeader;
|
||||
- (BOOL) parse: (NSData*)d;
|
||||
- (BOOL) parseHeader: (NSString*)aHeader;
|
||||
- (BOOL) parsedHeaders;
|
||||
- (BOOL) scanHeader: (NSScanner*)aScanner
|
||||
named: (NSString*)headerName
|
||||
- (BOOL) scanHeader: (NSScanner*)scanner
|
||||
named: (NSString*)name
|
||||
inTo: (NSMutableDictionary*)info;
|
||||
- (BOOL) scanPastSpace: (NSScanner*)aScanner;
|
||||
- (NSString*) scanSpecial: (NSScanner*)aScanner;
|
||||
- (NSString*) scanToken: (NSScanner*)aScanner;
|
||||
- (BOOL) scanPastSpace: (NSScanner*)scanner;
|
||||
- (NSString*) scanSpecial: (NSScanner*)scanner;
|
||||
- (NSString*) scanToken: (NSScanner*)scanner;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -80,12 +80,12 @@
|
|||
BOOL native;
|
||||
}
|
||||
|
||||
+ (NSString*) descriptionFromType: (int)t;
|
||||
+ (NSString*) descriptionFromType: (int)type;
|
||||
+ (GSXMLNamespace*) namespaceWithNode: (GSXMLNode*)node
|
||||
href: (NSString*)href
|
||||
prefix: (NSString*)prefix;
|
||||
+ (GSXMLNamespace*) namespaceFrom: (void*)data;
|
||||
+ (int) typeFromDescription: (NSString*)d;
|
||||
+ (int) typeFromDescription: (NSString*)desc;
|
||||
|
||||
- (id) initWithNode: (GSXMLNode*)node
|
||||
href: (NSString*)href
|
||||
|
@ -109,10 +109,10 @@
|
|||
BOOL native;
|
||||
}
|
||||
|
||||
+ (NSString*) descriptionFromType: (int)t;
|
||||
+ (NSString*) descriptionFromType: (int)type;
|
||||
+ (GSXMLNode*) nodeWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name;
|
||||
+ (GSXMLNode*) nodeFrom: (void*) data;
|
||||
+ (int) typeFromDescription: (NSString*)d;
|
||||
+ (int) typeFromDescription: (NSString*)desc;
|
||||
|
||||
- (id) initWithNamespace: (GSXMLNamespace*)ns name: (NSString*)name;
|
||||
- (id) initFrom: (void*) data;
|
||||
|
@ -151,12 +151,12 @@
|
|||
{
|
||||
}
|
||||
|
||||
+ (NSString*) descriptionFromType: (int)t;
|
||||
+ (NSString*) descriptionFromType: (int)type;
|
||||
+ (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node
|
||||
name: (NSString*)name
|
||||
value: (NSString*)value;
|
||||
+ (GSXMLAttribute*) attributeFrom: (void*)data;
|
||||
+ (int) typeFromDescription: (NSString*)d;
|
||||
+ (int) typeFromDescription: (NSString*)desc;
|
||||
|
||||
- (id) initWithNode: (GSXMLNode*)node
|
||||
name: (NSString*)name
|
||||
|
@ -180,8 +180,7 @@
|
|||
void *lib; /* parser context */
|
||||
GSSAXHandler *saxHandler;
|
||||
}
|
||||
+ (NSString*) loadEntity: (NSString*)publicId
|
||||
at: (NSString*)locationURL;
|
||||
+ (NSString*) loadEntity: (NSString*)publicId at: (NSString*)location;
|
||||
+ (GSXMLParser*) parser;
|
||||
+ (GSXMLParser*) parserWithContentsOfFile: (NSString*)path;
|
||||
+ (GSXMLParser*) parserWithContentsOfURL: (NSURL*)url;
|
||||
|
|
|
@ -36,22 +36,22 @@
|
|||
+ (id) arrayWithArray: (NSArray*)array;
|
||||
+ (id) arrayWithContentsOfFile: (NSString*)file;
|
||||
+ (id) arrayWithObject: (id)anObject;
|
||||
+ (id) arrayWithObjects: (id)firstObj, ...;
|
||||
+ (id) arrayWithObjects: (id)firstObject, ...;
|
||||
+ (id) arrayWithObjects: (id*)objects count: (unsigned)count;
|
||||
|
||||
- (NSArray*) arrayByAddingObject: (id)anObject;
|
||||
- (NSArray*) arrayByAddingObjectsFromArray: (NSArray*)anotherArray;
|
||||
- (BOOL) containsObject: anObject;
|
||||
- (unsigned) count; // Primitive
|
||||
- (void) getObjects: (id*)objs;
|
||||
- (void) getObjects: (id*)objs range: (NSRange)aRange;
|
||||
- (void) getObjects: (id*)aBuffer;
|
||||
- (void) getObjects: (id*)aBuffer range: (NSRange)aRange;
|
||||
- (unsigned) indexOfObject: (id)anObject;
|
||||
- (unsigned) indexOfObject: (id)anObject inRange: (NSRange)aRange;
|
||||
- (unsigned) indexOfObjectIdenticalTo: (id)anObject;
|
||||
- (unsigned) indexOfObjectIdenticalTo: (id)anObject inRange: (NSRange)aRange;
|
||||
- (id) initWithArray: (NSArray*)array;
|
||||
- (id) initWithContentsOfFile: (NSString*)file;
|
||||
- (id) initWithObjects: firstObj, ...;
|
||||
- (id) initWithObjects: firstObject, ...;
|
||||
- (id) initWithObjects: (id*)objects count: (unsigned)count; // Primitive
|
||||
|
||||
- (id) lastObject;
|
||||
|
@ -66,7 +66,7 @@
|
|||
#endif
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector;
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject: (id)argument;
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject: (id)arg;
|
||||
#endif
|
||||
|
||||
- (NSData*) sortedArrayHint;
|
||||
|
@ -76,7 +76,7 @@
|
|||
context: (void*)context
|
||||
hint: (NSData*)hint;
|
||||
- (NSArray*) sortedArrayUsingSelector: (SEL)comparator;
|
||||
- (NSArray*) subarrayWithRange: (NSRange)range;
|
||||
- (NSArray*) subarrayWithRange: (NSRange)aRange;
|
||||
|
||||
- (NSString*) componentsJoinedByString: (NSString*)separator;
|
||||
- (NSArray*) pathsMatchingExtensions: (NSArray*)extensions;
|
||||
|
@ -127,7 +127,7 @@
|
|||
|
||||
- (void) sortUsingFunction: (int(*)(id,id,void*))compare
|
||||
context: (void*)context;
|
||||
- (void) sortUsingSelector: (SEL) aSelector;
|
||||
- (void) sortUsingSelector: (SEL)comparator;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -63,19 +63,19 @@
|
|||
- (id) initWithString: (NSString*)aString attributes: (NSDictionary*)attributes;
|
||||
|
||||
//Retrieving character information
|
||||
- (unsigned) length;
|
||||
- (unsigned int) length;
|
||||
- (NSString*) string; //Primitive method!
|
||||
|
||||
//Retrieving attribute information
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned int)index
|
||||
effectiveRange: (NSRange*)aRange; //Primitive method!
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned int)index
|
||||
longestEffectiveRange: (NSRange*)aRange
|
||||
inRange: (NSRange)rangeLimit;
|
||||
- (id) attribute: (NSString*)attributeName
|
||||
atIndex: (unsigned)index
|
||||
atIndex: (unsigned int)index
|
||||
effectiveRange: (NSRange*)aRange;
|
||||
- (id) attribute: (NSString*)attributeName atIndex: (unsigned)index
|
||||
- (id) attribute: (NSString*)attributeName atIndex: (unsigned int)index
|
||||
longestEffectiveRange: (NSRange*)aRange inRange: (NSRange)rangeLimit;
|
||||
|
||||
//Comparing attributed strings
|
||||
|
@ -114,7 +114,7 @@
|
|||
//Changing characters and attributes
|
||||
- (void) appendAttributedString: (NSAttributedString*)attributedString;
|
||||
- (void) insertAttributedString: (NSAttributedString*)attributedString
|
||||
atIndex: (unsigned)index;
|
||||
atIndex: (unsigned int)index;
|
||||
- (void) replaceCharactersInRange: (NSRange)aRange
|
||||
withAttributedString: (NSAttributedString*)attributedString;
|
||||
- (void) replaceCharactersInRange: (NSRange)aRange
|
||||
|
|
|
@ -85,8 +85,8 @@ struct autorelease_array_list
|
|||
void (*_addImp)(id, SEL, id);
|
||||
}
|
||||
|
||||
+ (void) addObject: (id)anObject;
|
||||
- (void) addObject: (id)anObject;
|
||||
+ (void) addObject: (id)anObj;
|
||||
- (void) addObject: (id)anObj;
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
+ (void) enableRelease: (BOOL)enable;
|
||||
|
|
|
@ -53,8 +53,8 @@
|
|||
- (id) initWithString: (NSString*)description
|
||||
calendarFormat: (NSString*)format;
|
||||
- (id) initWithString: (NSString*)description
|
||||
calendarFormat: (NSString*)format
|
||||
locale: (NSDictionary*)dictionary;
|
||||
calendarFormat: (NSString*)fmt
|
||||
locale: (NSDictionary*)locale;
|
||||
- (id) initWithYear: (int)year
|
||||
month: (unsigned int)month
|
||||
day: (unsigned int)day
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
- (NSCharacterSet*) invertedSet;
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
+ (NSCharacterSet*) characterSetWithContentsOfFile: (NSString*)file;
|
||||
+ (NSCharacterSet*) characterSetWithContentsOfFile: (NSString*)aFile;
|
||||
#endif
|
||||
@end
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
at: (const void*)array;
|
||||
- (void) encodeBycopyObject: (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) encodeDataObject: (NSData*)data;
|
||||
- (void) encodeObject: (id)anObject;
|
||||
|
|
|
@ -106,14 +106,14 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
|
|||
usingNameServer: (NSPortNameServer*)s;
|
||||
+ (id) currentConversation;
|
||||
+ (NSConnection*) defaultConnection;
|
||||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)name
|
||||
host: (NSString*)host;
|
||||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)name
|
||||
host: (NSString*)host usingNameServer: (NSPortNameServer*)s;
|
||||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
|
||||
host: (NSString*)h;
|
||||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
|
||||
host: (NSString*)h usingNameServer: (NSPortNameServer*)s;
|
||||
|
||||
|
||||
- (void) addRequestMode: (NSString*)mode;
|
||||
- (void) addRunLoop: (NSRunLoop*)runloop;
|
||||
- (void) addRunLoop: (NSRunLoop*)loop;
|
||||
- (id) delegate;
|
||||
- (void) enableMultipleThreads;
|
||||
- (BOOL) independentConversationQueueing;
|
||||
|
@ -128,7 +128,7 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
|
|||
- (BOOL) registerName: (NSString*)name withNameServer: (NSPortNameServer*)svr;
|
||||
- (NSArray*) remoteObjects;
|
||||
- (void) removeRequestMode: (NSString*)mode;
|
||||
- (void) removeRunLoop: (NSRunLoop *)runloop;
|
||||
- (void) removeRunLoop: (NSRunLoop *)loop;
|
||||
- (NSTimeInterval) replyTimeout;
|
||||
- (NSArray*) requestModes;
|
||||
- (NSTimeInterval) requestTimeout;
|
||||
|
@ -138,9 +138,9 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
|
|||
- (NSPort*) sendPort;
|
||||
- (void) setDelegate: anObj;
|
||||
- (void) setIndependentConversationQueueing: (BOOL)flag;
|
||||
- (void) setReplyTimeout: (NSTimeInterval)seconds;
|
||||
- (void) setReplyTimeout: (NSTimeInterval)to;
|
||||
- (void) setRequestMode: (NSString*)mode;
|
||||
- (void) setRequestTimeout: (NSTimeInterval)seconds;
|
||||
- (void) setRequestTimeout: (NSTimeInterval)to;
|
||||
- (void) setRootObject: anObj;
|
||||
- (NSDictionary*) statistics;
|
||||
@end
|
||||
|
@ -152,14 +152,14 @@ GS_EXPORT NSString *NSConnectionProxyCount; /* Objects received */
|
|||
*/
|
||||
@interface NSConnection (GNUstepExtensions) <GCFinalization>
|
||||
|
||||
+ (NSConnection*) newRegisteringAtName: (NSString*)n
|
||||
+ (NSConnection*) newRegisteringAtName: (NSString*)name
|
||||
withRootObject: (id)anObject;
|
||||
|
||||
- (void) gcFinalize;
|
||||
|
||||
- (retval_t) forwardForProxy: (NSDistantObject*)object
|
||||
selector: (SEL)sel
|
||||
argFrame: (arglist_t)frame;
|
||||
argFrame: (arglist_t)argframe;
|
||||
- (void) forwardInvocation: (NSInvocation *)inv
|
||||
forProxy: (NSDistantObject*)object;
|
||||
- (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target;
|
||||
|
|
|
@ -47,10 +47,10 @@
|
|||
+ (id) dataWithContentsOfURL: (NSURL*)url;
|
||||
#endif
|
||||
+ (id) dataWithData: (NSData*)data;
|
||||
- (id) initWithBytes: (const void*)bytes
|
||||
length: (unsigned int)length;
|
||||
- (id) initWithBytesNoCopy: (void*)bytes
|
||||
length: (unsigned int)length;
|
||||
- (id) initWithBytes: (const void*)aBuffer
|
||||
length: (unsigned int)bufferSize;
|
||||
- (id) initWithBytesNoCopy: (void*)aBuffer
|
||||
length: (unsigned int)bufferSize;
|
||||
- (id) initWithContentsOfFile: (NSString*)path;
|
||||
- (id) initWithContentsOfMappedFile: (NSString*)path;
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
@ -90,7 +90,7 @@
|
|||
atCursor: (unsigned int*)cursor
|
||||
context: (id <NSObjCTypeSerializationCallBack>)callback;
|
||||
- (int) deserializeIntAtCursor: (unsigned int*)cursor;
|
||||
- (int) deserializeIntAtIndex: (unsigned int)location;
|
||||
- (int) deserializeIntAtIndex: (unsigned int)index;
|
||||
- (void) deserializeInts: (int*)intBuffer
|
||||
count: (unsigned int)numInts
|
||||
atCursor: (unsigned int*)cursor;
|
||||
|
@ -173,9 +173,9 @@
|
|||
#define _GSC_CID 0x17 /* Class encoded as id */
|
||||
|
||||
@interface NSData (GNUstepExtensions)
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned) length;
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned) length;
|
||||
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned) length;
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned int) length;
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int) length;
|
||||
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned int) length;
|
||||
|
||||
/*
|
||||
* -deserializeTypeTag:andCrossRef:atCursor:
|
||||
|
@ -183,8 +183,8 @@
|
|||
* NSUnarchiver maximum possible performance.
|
||||
*/
|
||||
- (void) deserializeTypeTag: (unsigned char*)tag
|
||||
andCrossRef: (unsigned int*)xref
|
||||
atCursor: (unsigned*)cursor;
|
||||
andCrossRef: (unsigned int*)ref
|
||||
atCursor: (unsigned int*)cursor;
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
@ -198,13 +198,13 @@
|
|||
// Adjusting Capacity
|
||||
|
||||
- (void) increaseLengthBy: (unsigned int)extraLength;
|
||||
- (void) setLength: (unsigned int)length;
|
||||
- (void) setLength: (unsigned int)size;
|
||||
- (void*) mutableBytes;
|
||||
|
||||
// Appending Data
|
||||
|
||||
- (void) appendBytes: (const void*)bytes
|
||||
length: (unsigned int)length;
|
||||
- (void) appendBytes: (const void*)aBuffer
|
||||
length: (unsigned int)bufferSize;
|
||||
- (void) appendData: (NSData*)other;
|
||||
|
||||
// Modifying Data
|
||||
|
@ -222,12 +222,12 @@
|
|||
context: (id <NSObjCTypeSerializationCallBack>)callback;
|
||||
- (void) serializeInt: (int)value;
|
||||
- (void) serializeInt: (int)value
|
||||
atIndex: (unsigned int)location;
|
||||
atIndex: (unsigned int)index;
|
||||
- (void) serializeInts: (int*)intBuffer
|
||||
count: (unsigned int)numInts;
|
||||
- (void) serializeInts: (int*)intBuffer
|
||||
count: (unsigned int)numInts
|
||||
atIndex: (unsigned int)location;
|
||||
atIndex: (unsigned int)index;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -250,7 +250,7 @@
|
|||
*/
|
||||
- (void) serializeTypeTag: (unsigned char)tag;
|
||||
- (void) serializeTypeTag: (unsigned char)tag
|
||||
andCrossRef: (unsigned)xref;
|
||||
andCrossRef: (unsigned int)xref;
|
||||
|
||||
@end
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,7 @@ typedef double NSTimeInterval;
|
|||
- (NSString*) description;
|
||||
- (NSString*) descriptionWithCalendarFormat: (NSString*)format
|
||||
timeZone: (NSTimeZone*)aTimeZone
|
||||
locale: (NSDictionary*)localeDictionary;
|
||||
locale: (NSDictionary*)l;
|
||||
- (NSString*) descriptionWithLocale: (NSDictionary*)locale;
|
||||
|
||||
// Adding and getting intervals
|
||||
|
@ -84,13 +84,13 @@ typedef double NSTimeInterval;
|
|||
|
||||
- (NSComparisonResult) compare: (NSDate*)otherDate;
|
||||
- (NSDate*) earlierDate: (NSDate*)otherDate;
|
||||
- (BOOL) isEqualToDate: (NSDate*)otherDate;
|
||||
- (BOOL) isEqualToDate: (NSDate*)other;
|
||||
- (NSDate*) laterDate: (NSDate*)otherDate;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
+ (id) dateWithNaturalLanguageString: (NSString*)string;
|
||||
+ (id) dateWithNaturalLanguageString: (NSString*)string
|
||||
locale: (NSDictionary*)localeDictionary;
|
||||
locale: (NSDictionary*)locale;
|
||||
- (id) initWithTimeIntervalSince1970: (NSTimeInterval)seconds;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
- (NSConnection*) connectionForProxy;
|
||||
- (id) initWithLocal: (id)anObject
|
||||
connection: (NSConnection*)aConnection;
|
||||
- (id) initWithTarget: (unsigned)anObject
|
||||
- (id) initWithTarget: (unsigned)target
|
||||
connection: (NSConnection*)aConnection;
|
||||
- (void) setProtocolForProxy: (Protocol*)aProtocol;
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ GS_EXPORT NSString *NSLocalNotificationCenterType;
|
|||
- (void) removeObserver: (id)anObserver
|
||||
name: (NSString*)notificationName
|
||||
object: (NSString*)anObject;
|
||||
- (void) setSuspended: (BOOL)suspended;
|
||||
- (void) setSuspended: (BOOL)flag;
|
||||
- (BOOL) suspended;
|
||||
|
||||
@end
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
/*
|
||||
* Creating instances.
|
||||
*/
|
||||
+ (NSInvocation*) invocationWithMethodSignature: (NSMethodSignature*)signature;
|
||||
+ (NSInvocation*) invocationWithMethodSignature: (NSMethodSignature*)_signature;
|
||||
|
||||
/*
|
||||
* Accessing message elements.
|
||||
|
@ -57,8 +57,8 @@
|
|||
- (void) setArgument: (void*)buffer
|
||||
atIndex: (int)index;
|
||||
- (void) setReturnValue: (void*)buffer;
|
||||
- (void) setSelector: (SEL)selector;
|
||||
- (void) setTarget: (id)target;
|
||||
- (void) setSelector: (SEL)aSelector;
|
||||
- (void) setTarget: (id)anObject;
|
||||
- (id) target;
|
||||
|
||||
/*
|
||||
|
@ -71,7 +71,7 @@
|
|||
* Dispatching an Invocation.
|
||||
*/
|
||||
- (void) invoke;
|
||||
- (void) invokeWithTarget: (id)target;
|
||||
- (void) invokeWithTarget: (id)anObject;
|
||||
|
||||
/*
|
||||
* Getting the method signature.
|
||||
|
@ -85,7 +85,7 @@
|
|||
- (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector;
|
||||
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature;
|
||||
- (id) initWithSelector: (SEL)aSelector;
|
||||
- (id) initWithTarget: target selector: (SEL)aSelector, ...;
|
||||
- (id) initWithTarget: (id)anObject selector: (SEL)aSelector, ...;
|
||||
- (void*) returnFrame: (arglist_t)argFrame;
|
||||
- (BOOL) sendsToSuper;
|
||||
- (void) setSendsToSuper: (BOOL)flag;
|
||||
|
|
|
@ -98,8 +98,8 @@
|
|||
* Acquiring the lock with a date condition
|
||||
*/
|
||||
- (BOOL) lockBeforeDate: (NSDate*)limit;
|
||||
- (BOOL) lockWhenCondition: (int)condition
|
||||
beforeDate: (NSDate*)limit;
|
||||
- (BOOL) lockWhenCondition: (int)condition_to_meet
|
||||
beforeDate: (NSDate*)limitDate;
|
||||
|
||||
- (void) lock;
|
||||
- (void) unlock;
|
||||
|
|
|
@ -60,7 +60,7 @@ typedef struct {
|
|||
#endif
|
||||
}
|
||||
|
||||
+ (NSMethodSignature*) signatureWithObjCTypes: (const char*)types;
|
||||
+ (NSMethodSignature*) signatureWithObjCTypes: (const char*)t;
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
- (NSArgumentInfo) argumentInfoAtIndex: (unsigned)index;
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
+ (NSNotification*) notificationWithName: (NSString*)name
|
||||
object: (id)object
|
||||
userInfo: (NSDictionary*)user_info;
|
||||
userInfo: (NSDictionary*)info;
|
||||
|
||||
/* Querying a Notification Object */
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
- (NSString*) description;
|
||||
+ (NSString*) description;
|
||||
|
||||
+ (void) poseAsClass: (Class)aClass;
|
||||
+ (void) poseAsClass: (Class)aClassObject;
|
||||
|
||||
- (void) doesNotRecognizeSelector: (SEL)aSelector;
|
||||
|
||||
|
@ -130,9 +130,9 @@
|
|||
- (Class) classForArchiver;
|
||||
- (Class) classForCoder;
|
||||
- (Class) classForPortCoder;
|
||||
- (id) replacementObjectForArchiver: (NSArchiver*)anEncoder;
|
||||
- (id) replacementObjectForArchiver: (NSArchiver*)anArchiver;
|
||||
- (id) replacementObjectForCoder: (NSCoder*)anEncoder;
|
||||
- (id) replacementObjectForPortCoder: (NSPortCoder*)anEncoder;
|
||||
- (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder;
|
||||
|
||||
|
||||
+ (id) setVersion: (int)aVersion;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
|
||||
+ (id) alloc;
|
||||
+ (id) allocWithZone: (NSZone*)zone;
|
||||
+ (id) allocWithZone: (NSZone*)z;
|
||||
+ (Class) class;
|
||||
+ (void) load;
|
||||
+ (BOOL) respondsToSelector: (SEL)aSelector;
|
||||
|
|
|
@ -48,7 +48,7 @@ GS_EXPORT NSString* const NSDefaultRunLoopMode;
|
|||
+ (NSRunLoop*) currentRunLoop;
|
||||
|
||||
- (void) acceptInputForMode: (NSString*)mode
|
||||
beforeDate: (NSDate*)date;
|
||||
beforeDate: (NSDate*)limit_date;
|
||||
|
||||
- (void) addTimer: (NSTimer*)timer
|
||||
forMode: (NSString*)mode;
|
||||
|
@ -62,7 +62,7 @@ GS_EXPORT NSString* const NSDefaultRunLoopMode;
|
|||
- (BOOL) runMode: (NSString*)mode
|
||||
beforeDate: (NSDate*)date;
|
||||
|
||||
- (void) runUntilDate: (NSDate*)limit_date;
|
||||
- (void) runUntilDate: (NSDate*)date;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -133,16 +133,16 @@ typedef enum {
|
|||
+ currentInstance;
|
||||
+ (NSString*) currentMode;
|
||||
+ (void) run;
|
||||
+ (BOOL) runOnceBeforeDate: date;
|
||||
+ (BOOL) runOnceBeforeDate: date
|
||||
+ (BOOL) runOnceBeforeDate: (NSDate*)date;
|
||||
+ (BOOL) runOnceBeforeDate: (NSDate*)date
|
||||
forMode: (NSString*)mode;
|
||||
+ (void) runUntilDate: date;
|
||||
+ (void) runUntilDate: date
|
||||
+ (void) runUntilDate: (NSDate*)date;
|
||||
+ (void) runUntilDate: (NSDate*)date
|
||||
forMode: (NSString*)mode;
|
||||
- (BOOL) runOnceBeforeDate: (NSDate*)date;
|
||||
- (BOOL) runOnceBeforeDate: (NSDate*)date
|
||||
forMode: (NSString*)mode;
|
||||
- (void) runUntilDate: (NSDate*)limit_date
|
||||
- (void) runUntilDate: (NSDate*)date
|
||||
forMode: (NSString*)mode;
|
||||
#endif
|
||||
/*
|
||||
|
|
|
@ -31,29 +31,29 @@
|
|||
@interface NSSet : NSObject <NSCoding, NSCopying, NSMutableCopying>
|
||||
|
||||
+ (id) set;
|
||||
+ (id) setWithArray: (NSArray*)array;
|
||||
+ (id) setWithArray: (NSArray*)objects;
|
||||
+ (id) setWithObject: (id)anObject;
|
||||
+ (id) setWithObjects: (id)anObject, ...;
|
||||
+ (id) setWithObjects: (id)firstObject, ...;
|
||||
+ (id) setWithSet: (NSSet*)aSet;
|
||||
|
||||
- (NSArray*) allObjects;
|
||||
- (id) anyObject;
|
||||
- (BOOL) containsObject: (id)anObject;
|
||||
- (unsigned) count;
|
||||
- (NSString*) descriptionWithLocale: (NSDictionary*)ld;
|
||||
- (NSString*) descriptionWithLocale: (NSDictionary*)locale;
|
||||
|
||||
- (id) initWithArray: (NSArray*)array;
|
||||
- (id) initWithObjects: (id)objects, ...;
|
||||
- (id) initWithArray: (NSArray*)other;
|
||||
- (id) initWithObjects: (id)firstObject, ...;
|
||||
- (id) initWithObjects: (id*)objects
|
||||
count: (unsigned)count;
|
||||
- (id) initWithObjects: firstObject
|
||||
rest: (va_list)ap;
|
||||
- (id) initWithSet: (NSSet*)otherSet;
|
||||
- (id) initWithSet: (NSSet*)otherSet copyItems: (BOOL)flags;
|
||||
- (id) initWithSet: (NSSet*)other;
|
||||
- (id) initWithSet: (NSSet*)other copyItems: (BOOL)flag;
|
||||
|
||||
- (BOOL) intersectsSet: (NSSet*)other;
|
||||
- (BOOL) intersectsSet: (NSSet*)otherSet;
|
||||
- (BOOL) isEqualToSet: (NSSet*)other;
|
||||
- (BOOL) isSubsetOfSet: (NSSet*)other;
|
||||
- (BOOL) isSubsetOfSet: (NSSet*)otherSet;
|
||||
|
||||
- (void) makeObjectsPerform: (SEL)aSelector;
|
||||
- (void) makeObjectsPerform: (SEL)aSelector withObject: (id)argument;
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
+ (NSTimeZone*) systemTimeZone;
|
||||
+ (NSTimeZone*) timeZoneWithName: (NSString*)name data: (NSData*)data;
|
||||
- (NSString*) abbreviation;
|
||||
- (NSString*) abbreviationForDate: (NSDate*)aDate;
|
||||
- (NSString*) abbreviationForDate: (NSDate*)when;
|
||||
- (id) initWithName: (NSString*)name;
|
||||
- (id) initWithName: (NSString*)name data: (NSData*)data;
|
||||
- (BOOL) isDaylightSavingTime;
|
||||
|
@ -64,7 +64,7 @@
|
|||
- (BOOL) isEqualToTimeZone: (NSTimeZone*)aTimeZone;
|
||||
- (NSString*) name;
|
||||
- (int) secondsFromGMT;
|
||||
- (int) secondsFromGMTForDate: (NSDate*)aDate;
|
||||
- (int) secondsFromGMTForDate: (NSDate*)when;
|
||||
#endif
|
||||
|
||||
#ifndef STRICT_MACOS_X
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
/* Creating timer objects. */
|
||||
|
||||
+ (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti
|
||||
invocation: invocation
|
||||
invocation: (NSInvocation*)invocation
|
||||
repeats: (BOOL)f;
|
||||
+ (NSTimer*) scheduledTimerWithTimeInterval: (NSTimeInterval)ti
|
||||
target: object
|
||||
|
@ -57,7 +57,7 @@
|
|||
repeats: (BOOL)f;
|
||||
|
||||
+ (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti
|
||||
invocation: invocation
|
||||
invocation: (NSInvocation*)invocation
|
||||
repeats: (BOOL)f;
|
||||
+ (NSTimer*) timerWithTimeInterval: (NSTimeInterval)ti
|
||||
target: object
|
||||
|
|
|
@ -37,31 +37,31 @@ GS_EXPORT NSString* NSURLFileScheme; //file
|
|||
NSURL *_baseURL;
|
||||
}
|
||||
|
||||
+ (id) fileURLWithPath: (NSString*)path;
|
||||
+ (id) URLWithString: (NSString*)URLString;
|
||||
+ (id) URLWithString: (NSString*)URLString
|
||||
relativeToURL: (NSURL*)baseURL;
|
||||
+ (id) fileURLWithPath: (NSString*)aPath;
|
||||
+ (id) URLWithString: (NSString*)aUrlString;
|
||||
+ (id) URLWithString: (NSString*)aUrlString
|
||||
relativeToURL: (NSURL*)aBaseUrl;
|
||||
|
||||
- (id) initWithScheme: (NSString*)scheme
|
||||
host: (NSString*)host
|
||||
path: (NSString*)path;
|
||||
- (id) initWithScheme: (NSString*)aScheme
|
||||
host: (NSString*)aHost
|
||||
path: (NSString*)aPath;
|
||||
|
||||
//Non Standard Function
|
||||
- (id) initWithScheme: (NSString*)scheme
|
||||
host: (NSString*)host
|
||||
port: (NSNumber*)port
|
||||
path: (NSString*)path;
|
||||
- (id) initWithScheme: (NSString*)aScheme
|
||||
host: (NSString*)aHost
|
||||
port: (NSNumber*)aPort
|
||||
path: (NSString*)aPath;
|
||||
|
||||
//Do a initWithScheme: NSFileScheme host: nil path: path
|
||||
- (id) initFileURLWithPath: (NSString*)path;
|
||||
- (id) initFileURLWithPath: (NSString*)aPath;
|
||||
|
||||
// urlString is escaped
|
||||
- (id) initWithString: (NSString*)URLString;
|
||||
- (id) initWithString: (NSString*)aUrlString;
|
||||
|
||||
//URLString!=nil !
|
||||
// urlString is escaped
|
||||
- (id) initWithString: (NSString*)URLString
|
||||
relativeToURL: (NSURL*)baseURL;
|
||||
- (id) initWithString: (NSString*)aUrlString
|
||||
relativeToURL: (NSURL*)aBaseUrl;
|
||||
|
||||
- (NSString*) description;
|
||||
- (NSString*) absoluteString;
|
||||
|
|
|
@ -73,17 +73,17 @@ GS_EXPORT NSString *NSUndoManagerWillUndoChangeNotification;
|
|||
- (void) redo;
|
||||
- (NSString*) redoActionName;
|
||||
- (NSString*) redoMenuItemTitle;
|
||||
- (NSString*) redoMenuTitleForUndoActionName: (NSString*)actionName;
|
||||
- (NSString*) redoMenuTitleForUndoActionName: (NSString*)name;
|
||||
- (void) registerUndoWithTarget: (id)target
|
||||
selector: (SEL)aSelector
|
||||
object: (id)anObject;
|
||||
- (void) removeAllActions;
|
||||
- (void) removeAllActionsWithTarget: (id)target;
|
||||
- (NSArray*) runLoopModes;
|
||||
- (void) setActionName: (NSString*)actionName;
|
||||
- (void) setActionName: (NSString*)name;
|
||||
- (void) setGroupsByEvent: (BOOL)flag;
|
||||
- (void) setLevelsOfUndo: (unsigned)num;
|
||||
- (void) setRunLoopModes: (NSArray*)modes;
|
||||
- (void) setRunLoopModes: (NSArray*)newModes;
|
||||
- (void) undo;
|
||||
- (NSString*) undoActionName;
|
||||
- (NSString*) undoMenuItemTitle;
|
||||
|
|
|
@ -184,7 +184,7 @@ GS_EXPORT NSString* const NSLocale;
|
|||
|
||||
/* Making Advanced Use of Defaults */
|
||||
- (NSDictionary*) dictionaryRepresentation;
|
||||
- (void) registerDefaults: (NSDictionary*)dictionary;
|
||||
- (void) registerDefaults: (NSDictionary*)newVals;
|
||||
@end
|
||||
|
||||
#endif /* __NSUserDefaults_h_OBJECTS_INCLUDE */
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
+ (NSValue*) valueWithBytes: (const void*)value objCType: (const char*)type;
|
||||
+ (NSValue*) valueFromString: (NSString*)string;
|
||||
/* 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;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Concrete implementation of NSArray
|
||||
/** Concrete implementation of NSArray
|
||||
Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
GSAttributedString.m
|
||||
|
||||
Implementation of concrete subclass of a string class with attributes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Runtime MacOSX compatibility functionality
|
||||
/** Runtime MacOSX compatibility functionality
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Interface to concrete implementation of NSDictionary
|
||||
/** Interface to concrete implementation of NSDictionary
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of GSFFCallInvocation for GNUStep
|
||||
/** Implementation of GSFFCallInvocation for GNUStep
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written: Adam Fedor <fedor@gnu.org>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of GSFFIInvocation for GNUStep
|
||||
/** Implementation of GSFFIInvocation for GNUStep
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written: Adam Fedor <fedor@gnu.org>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Hacked together by Kai Henningsen <kai@cats.ms>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* GSHTTPURLHandle.m - Class GSHTTPURLHandle
|
||||
/** GSHTTPURLHandle.m - Class GSHTTPURLHandle
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Mark Allison <mark@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* GSLocale - various functions for localization
|
||||
/** GSLocale - various functions for localization
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
/* Implementation for GSMIME
|
||||
/** Implementation for GSMIME
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Base on code written by Stevo Crvenkovski <stevo@btinternet.com>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for GSUnixSSLHandle for GNUStep
|
||||
/** Implementation for GSUnixSSLHandle for GNUStep
|
||||
Copyright (C) 1997-1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for GSXMLDocument for GNUstep xmlparser
|
||||
/** Implementation for GSXMLDocument for GNUstep xmlparser
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -180,7 +180,7 @@ loadEntityFunction(const char *url, const char *eid, xmlParserCtxtPtr *ctxt);
|
|||
|
||||
- (id) initWithVersion: (NSString*)version
|
||||
{
|
||||
void *data = xmlNewDoc([version cString]);
|
||||
void *data = xmlNewDoc([version lossyCString]);
|
||||
|
||||
if (data == 0)
|
||||
{
|
||||
|
@ -240,15 +240,16 @@ loadEntityFunction(const char *url, const char *eid, xmlParserCtxtPtr *ctxt);
|
|||
|
||||
- (GSXMLNode*) makeNodeWithNamespace: (GSXMLNamespace*)ns
|
||||
name: (NSString*)name
|
||||
content: (NSString*)content;
|
||||
content: (NSString*)content
|
||||
{
|
||||
return [GSXMLNode nodeFrom:
|
||||
xmlNewDocNode(lib, [ns lib], [name cString], [content cString])];
|
||||
xmlNewDocNode(lib, [ns lib], [name lossyCString],
|
||||
[content lossyCString])];
|
||||
}
|
||||
|
||||
- (void) save: (NSString*) filename
|
||||
{
|
||||
xmlSaveFile([filename cString], lib);
|
||||
xmlSaveFile([filename lossyCString], lib);
|
||||
}
|
||||
|
||||
- (NSString*) stringValue
|
||||
|
@ -334,7 +335,8 @@ static NSMapTable *nsNames = 0;
|
|||
|
||||
if (node != nil)
|
||||
{
|
||||
data = xmlNewNs((xmlNodePtr)[node lib], [href cString], [prefix cString]);
|
||||
data = xmlNewNs((xmlNodePtr)[node lib], [href lossyCString],
|
||||
[prefix lossyCString]);
|
||||
if (data == NULL)
|
||||
{
|
||||
NSLog(@"Can't create GSXMLNamespace object");
|
||||
|
@ -345,7 +347,7 @@ static NSMapTable *nsNames = 0;
|
|||
}
|
||||
else
|
||||
{
|
||||
data = xmlNewNs(NULL, [href cString], [prefix cString]);
|
||||
data = xmlNewNs(NULL, [href lossyCString], [prefix lossyCString]);
|
||||
if (data == NULL)
|
||||
{
|
||||
NSLog(@"Can't create GSXMLNamespace object");
|
||||
|
@ -563,11 +565,11 @@ static NSMapTable *nodeNames = 0;
|
|||
if (ns != nil)
|
||||
{
|
||||
[ns _native: NO];
|
||||
lib = xmlNewNode((xmlNsPtr)[ns lib], [name cString]);
|
||||
lib = xmlNewNode((xmlNsPtr)[ns lib], [name lossyCString]);
|
||||
}
|
||||
else
|
||||
{
|
||||
lib = xmlNewNode(NULL, [name cString]);
|
||||
lib = xmlNewNode(NULL, [name lossyCString]);
|
||||
}
|
||||
if (lib == NULL)
|
||||
{
|
||||
|
@ -792,28 +794,30 @@ static NSMapTable *nodeNames = 0;
|
|||
|
||||
- (GSXMLNode*) makeChildWithNamespace: (GSXMLNamespace*)ns
|
||||
name: (NSString*)name
|
||||
content: (NSString*)content;
|
||||
content: (NSString*)content
|
||||
{
|
||||
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
|
||||
{
|
||||
return [GSXMLAttribute attributeFrom:
|
||||
xmlSetProp(lib, [name cString], [value cString])];
|
||||
xmlSetProp(lib, [name lossyCString], [value lossyCString])];
|
||||
}
|
||||
|
||||
|
||||
- (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
|
||||
{
|
||||
return [GSXMLNode nodeFrom:
|
||||
xmlAddChild((xmlNodePtr)lib, xmlNewPI([name cString], [content cString]))];
|
||||
xmlAddChild((xmlNodePtr)lib, xmlNewPI([name lossyCString],
|
||||
[content lossyCString]))];
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
|
@ -935,17 +939,18 @@ static NSMapTable *attrNames = 0;
|
|||
|
||||
+ (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node
|
||||
name: (NSString*)name
|
||||
value: (NSString*)value;
|
||||
value: (NSString*)value
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithNode: node name: name value: value]);
|
||||
}
|
||||
|
||||
- (id) initWithNode: (GSXMLNode*)node
|
||||
name: (NSString*)name
|
||||
value: (NSString*)value;
|
||||
value: (NSString*)value
|
||||
{
|
||||
self = [super init];
|
||||
lib = xmlNewProp((xmlNodePtr)[node lib], [name cString], [value cString]);
|
||||
lib = xmlNewProp((xmlNodePtr)[node lib], [name lossyCString],
|
||||
[value lossyCString]);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -1916,7 +1921,7 @@ fatalErrorFunction(void *ctx, const char *msg, ...)
|
|||
}
|
||||
|
||||
- (void) startElement: (NSString*)elementName
|
||||
attributes: (NSMutableDictionary*)elementAttributes;
|
||||
attributes: (NSMutableDictionary*)elementAttributes
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSArchiver for GNUstep
|
||||
/** Implementation of NSArchiver for GNUstep
|
||||
Copyright (C) 1998,1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
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();
|
||||
NSDictionary *loc;
|
||||
|
@ -854,10 +854,10 @@ static NSString *indentStrings[] = {
|
|||
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();
|
||||
NSDictionary *loc;
|
||||
|
@ -883,7 +883,7 @@ static NSString *indentStrings[] = {
|
|||
desc = result;
|
||||
}
|
||||
|
||||
return [desc writeToURL: url atomically: useAuxiliaryFile];
|
||||
return [desc writeToURL: url atomically: useAuxilliaryFile];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSAssertionHandler - Object encapsulation of assertions
|
||||
/** NSAssertionHandler - Object encapsulation of assertions
|
||||
Copyright (C) 1995, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSAttributedString.m
|
||||
|
||||
Implementation of string class with attributes
|
||||
|
@ -278,14 +278,14 @@ static Class GSMutableAttributedStringClass;
|
|||
}
|
||||
|
||||
//Retrieving attribute information
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned int)index
|
||||
effectiveRange: (NSRange*)aRange
|
||||
{
|
||||
[self subclassResponsibility: _cmd];/* Primitive method! */
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned int)index
|
||||
longestEffectiveRange: (NSRange*)aRange
|
||||
inRange: (NSRange)rangeLimit
|
||||
{
|
||||
|
@ -335,7 +335,7 @@ static Class GSMutableAttributedStringClass;
|
|||
}
|
||||
|
||||
- (id) attribute: (NSString*)attributeName
|
||||
atIndex: (unsigned)index
|
||||
atIndex: (unsigned int)index
|
||||
effectiveRange: (NSRange*)aRange
|
||||
{
|
||||
NSDictionary *tmpDictionary;
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSBitmapCharSet - Concrete character set holder
|
||||
/** NSBitmapCharSet - Concrete character set holder
|
||||
Copyright (C) 1993,1994 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSBundle class
|
||||
/** Implementation of NSBundle class
|
||||
Copyright (C) 1993,1994,1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
@ -727,12 +727,12 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
return bundle;
|
||||
}
|
||||
|
||||
+ (NSBundle *)bundleWithPath:(NSString *)path
|
||||
+ (NSBundle*) bundleWithPath: (NSString*)path
|
||||
{
|
||||
return AUTORELEASE([[NSBundle alloc] initWithPath: path]);
|
||||
}
|
||||
|
||||
- (id) initWithPath:(NSString *)path;
|
||||
- (id) initWithPath: (NSString*)path
|
||||
{
|
||||
[super init];
|
||||
|
||||
|
@ -1112,7 +1112,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
}
|
||||
|
||||
- (NSString *) pathForResource: (NSString *)name
|
||||
ofType: (NSString *)ext;
|
||||
ofType: (NSString *)ext
|
||||
{
|
||||
return [self pathForResource: name
|
||||
ofType: ext
|
||||
|
@ -1121,7 +1121,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
|
||||
- (NSString *) pathForResource: (NSString *)name
|
||||
ofType: (NSString *)ext
|
||||
inDirectory: (NSString *)bundlePath;
|
||||
inDirectory: (NSString *)bundlePath
|
||||
{
|
||||
NSString *rootPath;
|
||||
|
||||
|
@ -1385,7 +1385,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
|
||||
+ (NSString *) pathForGNUstepResource: (NSString *)name
|
||||
ofType: (NSString *)ext
|
||||
inDirectory: (NSString *)bundlePath;
|
||||
inDirectory: (NSString *)bundlePath
|
||||
{
|
||||
NSString *path = nil;
|
||||
NSString *bundle_path = nil;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for NSCalendarDate for GNUstep
|
||||
/** Implementation for NSCalendarDate for GNUstep
|
||||
Copyright (C) 1996, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSCharacterSet - Character set holder
|
||||
/** NSCharacterSet - Character set holder
|
||||
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
@ -171,12 +171,12 @@ static NSLock* cache_lock = nil;
|
|||
return [self _bitmapForSet: @"nonBaseCharSet" number: 7];
|
||||
}
|
||||
|
||||
+ (NSCharacterSet*) punctuationCharacterSet;
|
||||
+ (NSCharacterSet*) punctuationCharacterSet
|
||||
{
|
||||
return [self _bitmapForSet: @"punctuationCharSet" number: 8];
|
||||
}
|
||||
|
||||
+ (NSCharacterSet*) symbolAndOperatorCharacterSet;
|
||||
+ (NSCharacterSet*) symbolAndOperatorCharacterSet
|
||||
{
|
||||
return [self _bitmapForSet: @"symbolAndOperatorCharSet" number: 9];
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
/* NSClassDescription
|
||||
/** NSClassDescription
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Created by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSCopyObject() for GNUStep
|
||||
/** Implementation of NSCopyObject() for GNUStep
|
||||
Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSCountedSet - CountedSet object
|
||||
/** NSCountedSet - CountedSet object
|
||||
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
136
Source/NSData.m
136
Source/NSData.m
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
@ -120,7 +120,7 @@ static SEL appendSel;
|
|||
static IMP appendImp;
|
||||
|
||||
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];
|
||||
FILE *theFile = 0;
|
||||
|
@ -343,7 +343,7 @@ failure:
|
|||
unsigned growth;
|
||||
}
|
||||
/* Increase capacity to at least the specified minimum value. */
|
||||
- (void) _grow: (unsigned)minimum;
|
||||
- (void) _grow: (unsigned int)minimum;
|
||||
@end
|
||||
|
||||
#if HAVE_MMAP
|
||||
|
@ -356,14 +356,14 @@ failure:
|
|||
{
|
||||
int shmid;
|
||||
}
|
||||
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize;
|
||||
- (id) initWithShmID: (int)anId length: (unsigned int)bufferSize;
|
||||
@end
|
||||
|
||||
@interface NSMutableDataShared : NSMutableDataMalloc
|
||||
{
|
||||
int shmid;
|
||||
}
|
||||
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize;
|
||||
- (id) initWithShmID: (int)anId length: (unsigned int)bufferSize;
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
@ -406,7 +406,7 @@ failure:
|
|||
}
|
||||
|
||||
+ (id) dataWithBytes: (const void*)bytes
|
||||
length: (unsigned)length
|
||||
length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -416,7 +416,7 @@ failure:
|
|||
}
|
||||
|
||||
+ (id) dataWithBytesNoCopy: (void*)bytes
|
||||
length: (unsigned)length
|
||||
length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -480,7 +480,7 @@ failure:
|
|||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
void *ptr = 0;
|
||||
|
||||
|
@ -493,7 +493,7 @@ failure:
|
|||
}
|
||||
|
||||
- (id) initWithBytesNoCopy: (void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
|
@ -522,7 +522,7 @@ failure:
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithContentsOfMappedFile: (NSString *)path;
|
||||
- (id) initWithContentsOfMappedFile: (NSString *)path
|
||||
{
|
||||
#if HAVE_MMAP
|
||||
RELEASE(self);
|
||||
|
@ -615,7 +615,7 @@ failure:
|
|||
[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)];
|
||||
}
|
||||
|
@ -653,7 +653,7 @@ failure:
|
|||
return [NSData dataWithBytesNoCopy: buffer length: aRange.length];
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
- (unsigned int) hash
|
||||
{
|
||||
unsigned char buf[64];
|
||||
unsigned l = [self length];
|
||||
|
@ -691,7 +691,7 @@ failure:
|
|||
}
|
||||
|
||||
// Querying a Data Object
|
||||
- (BOOL) isEqualToData: (NSData*)other;
|
||||
- (BOOL) isEqualToData: (NSData*)other
|
||||
{
|
||||
int len;
|
||||
if ((len = [self length]) != [other length])
|
||||
|
@ -699,7 +699,7 @@ failure:
|
|||
return (memcmp([self bytes], [other bytes], len) ? NO : YES);
|
||||
}
|
||||
|
||||
- (unsigned) length;
|
||||
- (unsigned int) length
|
||||
{
|
||||
/* This is left to concrete subclasses to implement. */
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
@ -907,14 +907,14 @@ failure:
|
|||
|
||||
// Deserializing Data
|
||||
|
||||
- (unsigned) deserializeAlignedBytesLengthAtCursor: (unsigned int*)cursor
|
||||
- (unsigned int) deserializeAlignedBytesLengthAtCursor: (unsigned int*)cursor
|
||||
{
|
||||
return (unsigned)[self deserializeIntAtCursor: cursor];
|
||||
}
|
||||
|
||||
- (void) deserializeBytes: (void*)buffer
|
||||
length: (unsigned)bytes
|
||||
atCursor: (unsigned*)cursor
|
||||
length: (unsigned int)bytes
|
||||
atCursor: (unsigned int*)cursor
|
||||
{
|
||||
NSRange range = { *cursor, bytes };
|
||||
|
||||
|
@ -924,7 +924,7 @@ failure:
|
|||
|
||||
- (void) deserializeDataAt: (void*)data
|
||||
ofObjCType: (const char*)type
|
||||
atCursor: (unsigned*)cursor
|
||||
atCursor: (unsigned int*)cursor
|
||||
context: (id <NSObjCTypeSerializationCallBack>)callback
|
||||
{
|
||||
if (!type || !data)
|
||||
|
@ -1205,7 +1205,7 @@ failure:
|
|||
}
|
||||
}
|
||||
|
||||
- (int) deserializeIntAtCursor: (unsigned*)cursor
|
||||
- (int) deserializeIntAtCursor: (unsigned int*)cursor
|
||||
{
|
||||
unsigned ni, result;
|
||||
|
||||
|
@ -1214,7 +1214,7 @@ failure:
|
|||
return result;
|
||||
}
|
||||
|
||||
- (int) deserializeIntAtIndex: (unsigned)index
|
||||
- (int) deserializeIntAtIndex: (unsigned int)index
|
||||
{
|
||||
unsigned ni, result;
|
||||
|
||||
|
@ -1224,8 +1224,8 @@ failure:
|
|||
}
|
||||
|
||||
- (void) deserializeInts: (int*)intBuffer
|
||||
count: (unsigned)numInts
|
||||
atCursor: (unsigned*)cursor
|
||||
count: (unsigned int)numInts
|
||||
atCursor: (unsigned int*)cursor
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
@ -1237,8 +1237,8 @@ failure:
|
|||
}
|
||||
|
||||
- (void) deserializeInts: (int*)intBuffer
|
||||
count: (unsigned)numInts
|
||||
atIndex: (unsigned)index
|
||||
count: (unsigned int)numInts
|
||||
atIndex: (unsigned int)index
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
@ -1286,7 +1286,7 @@ failure:
|
|||
@end
|
||||
|
||||
@implementation NSData (GNUstepExtensions)
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned)length
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned int)length
|
||||
{
|
||||
#if HAVE_SHMCTL
|
||||
NSDataShared *d;
|
||||
|
@ -1300,7 +1300,7 @@ failure:
|
|||
#endif
|
||||
}
|
||||
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned)length
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -1314,7 +1314,7 @@ failure:
|
|||
return AUTORELEASE(d);
|
||||
}
|
||||
|
||||
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned)length
|
||||
+ (id) dataWithStaticBytes: (const void*)bytes length: (unsigned int)length
|
||||
{
|
||||
NSDataStatic *d;
|
||||
|
||||
|
@ -1325,7 +1325,7 @@ failure:
|
|||
|
||||
- (void) deserializeTypeTag: (unsigned char*)tag
|
||||
andCrossRef: (unsigned int*)ref
|
||||
atCursor: (unsigned*)cursor
|
||||
atCursor: (unsigned int*)cursor
|
||||
{
|
||||
[self deserializeDataAt: (void*)tag
|
||||
ofObjCType: @encode(gsu8)
|
||||
|
@ -1402,7 +1402,7 @@ failure:
|
|||
}
|
||||
|
||||
+ (id) dataWithBytes: (const void*)bytes
|
||||
length: (unsigned)length
|
||||
length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -1412,7 +1412,7 @@ failure:
|
|||
}
|
||||
|
||||
+ (id) dataWithBytesNoCopy: (void*)bytes
|
||||
length: (unsigned)length
|
||||
length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -1421,7 +1421,7 @@ failure:
|
|||
return AUTORELEASE(d);
|
||||
}
|
||||
|
||||
+ (id) dataWithCapacity: (unsigned)numBytes
|
||||
+ (id) dataWithCapacity: (unsigned int)numBytes
|
||||
{
|
||||
NSMutableData *d;
|
||||
|
||||
|
@ -1468,7 +1468,7 @@ failure:
|
|||
return AUTORELEASE(d);
|
||||
}
|
||||
|
||||
+ (id) dataWithLength: (unsigned)length
|
||||
+ (id) dataWithLength: (unsigned int)length
|
||||
{
|
||||
NSMutableData *d;
|
||||
|
||||
|
@ -1506,7 +1506,7 @@ failure:
|
|||
}
|
||||
}
|
||||
|
||||
- (id) initWithCapacity: (unsigned)capacity
|
||||
- (id) initWithCapacity: (unsigned int)capacity
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
|
@ -1544,7 +1544,7 @@ failure:
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithLength: (unsigned)length
|
||||
- (id) initWithLength: (unsigned int)length
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
|
@ -1552,12 +1552,12 @@ failure:
|
|||
|
||||
// Adjusting Capacity
|
||||
|
||||
- (void) increaseLengthBy: (unsigned)extraLength
|
||||
- (void) increaseLengthBy: (unsigned int)extraLength
|
||||
{
|
||||
[self setLength: [self length]+extraLength];
|
||||
}
|
||||
|
||||
- (void) setLength: (unsigned)size
|
||||
- (void) setLength: (unsigned int)size
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
@ -1571,7 +1571,7 @@ failure:
|
|||
// Appending Data
|
||||
|
||||
- (void) appendBytes: (const void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
unsigned oldLength = [self length];
|
||||
void* buffer;
|
||||
|
@ -1628,7 +1628,7 @@ failure:
|
|||
|
||||
// Serializing Data
|
||||
|
||||
- (void) serializeAlignedBytesLength: (unsigned)length
|
||||
- (void) serializeAlignedBytesLength: (unsigned int)length
|
||||
{
|
||||
[self serializeInt: length];
|
||||
}
|
||||
|
@ -1812,7 +1812,7 @@ failure:
|
|||
[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);
|
||||
NSRange range = { index, sizeof(int) };
|
||||
|
@ -1821,7 +1821,7 @@ failure:
|
|||
}
|
||||
|
||||
- (void) serializeInts: (int*)intBuffer
|
||||
count: (unsigned)numInts
|
||||
count: (unsigned int)numInts
|
||||
{
|
||||
unsigned i;
|
||||
SEL sel = @selector(serializeInt:);
|
||||
|
@ -1834,8 +1834,8 @@ failure:
|
|||
}
|
||||
|
||||
- (void) serializeInts: (int*)intBuffer
|
||||
count: (unsigned)numInts
|
||||
atIndex: (unsigned)index
|
||||
count: (unsigned int)numInts
|
||||
atIndex: (unsigned int)index
|
||||
{
|
||||
unsigned i;
|
||||
SEL sel = @selector(serializeInt:atIndex:);
|
||||
|
@ -1850,7 +1850,7 @@ failure:
|
|||
@end
|
||||
|
||||
@implementation NSMutableData (GNUstepExtensions)
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned)length
|
||||
+ (id) dataWithShmID: (int)anID length: (unsigned int)length
|
||||
{
|
||||
#if HAVE_SHMCTL
|
||||
NSDataShared *d;
|
||||
|
@ -1864,7 +1864,7 @@ failure:
|
|||
#endif
|
||||
}
|
||||
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned)length
|
||||
+ (id) dataWithSharedBytes: (const void*)bytes length: (unsigned int)length
|
||||
{
|
||||
NSData *d;
|
||||
|
||||
|
@ -1878,13 +1878,13 @@ failure:
|
|||
return AUTORELEASE(d);
|
||||
}
|
||||
|
||||
- (unsigned) capacity
|
||||
- (unsigned int) capacity
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (id) setCapacity: (unsigned)newCapacity
|
||||
- (id) setCapacity: (unsigned int)newCapacity
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
|
@ -1903,7 +1903,7 @@ failure:
|
|||
}
|
||||
|
||||
- (void) serializeTypeTag: (unsigned char)tag
|
||||
andCrossRef: (unsigned)xref
|
||||
andCrossRef: (unsigned int)xref
|
||||
{
|
||||
if (xref <= 0xff)
|
||||
{
|
||||
|
@ -1988,7 +1988,7 @@ failure:
|
|||
}
|
||||
|
||||
- (id) initWithBytesNoCopy: (void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
bytes = aBuffer;
|
||||
length = bufferSize;
|
||||
|
@ -2014,7 +2014,7 @@ failure:
|
|||
memcpy(buffer, bytes + aRange.location, aRange.length);
|
||||
}
|
||||
|
||||
- (unsigned) length
|
||||
- (unsigned int) length
|
||||
{
|
||||
return length;
|
||||
}
|
||||
|
@ -2034,7 +2034,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
|
||||
- (void) deserializeDataAt: (void*)data
|
||||
ofObjCType: (const char*)type
|
||||
atCursor: (unsigned*)cursor
|
||||
atCursor: (unsigned int*)cursor
|
||||
context: (id <NSObjCTypeSerializationCallBack>)callback
|
||||
{
|
||||
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
|
||||
andCrossRef: (unsigned int*)ref
|
||||
atCursor: (unsigned*)cursor
|
||||
atCursor: (unsigned int*)cursor
|
||||
{
|
||||
if (*cursor >= length)
|
||||
{
|
||||
|
@ -2401,7 +2401,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
|
||||
- (id) initWithBytesNoCopy: (void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
bytes = aBuffer;
|
||||
length = bufferSize;
|
||||
|
@ -2508,7 +2508,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
|
||||
{
|
||||
shmid = -1;
|
||||
if (aBuffer && bufferSize)
|
||||
|
@ -2538,7 +2538,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize
|
||||
- (id) initWithShmID: (int)anId length: (unsigned int)bufferSize
|
||||
{
|
||||
struct shmid_ds buf;
|
||||
|
||||
|
@ -2618,7 +2618,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
|
||||
{
|
||||
self = [self initWithCapacity: bufferSize];
|
||||
if (self)
|
||||
|
@ -2633,7 +2633,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
|
||||
- (id) initWithBytesNoCopy: (void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
if (aBuffer == 0)
|
||||
{
|
||||
|
@ -2667,7 +2667,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
/*
|
||||
* THIS IS THE DESIGNATED INITIALISER
|
||||
*/
|
||||
- (id) initWithCapacity: (unsigned)size
|
||||
- (id) initWithCapacity: (unsigned int)size
|
||||
{
|
||||
#if GS_WITH_GC
|
||||
zone = GSAtomicMallocZone();
|
||||
|
@ -2695,7 +2695,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithLength: (unsigned)size
|
||||
- (id) initWithLength: (unsigned int)size
|
||||
{
|
||||
self = [self initWithCapacity: size];
|
||||
if (self)
|
||||
|
@ -2727,7 +2727,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
|
||||
- (void) appendBytes: (const void*)aBuffer
|
||||
length: (unsigned)bufferSize
|
||||
length: (unsigned int)bufferSize
|
||||
{
|
||||
unsigned oldLength = length;
|
||||
unsigned minimum = length + bufferSize;
|
||||
|
@ -2740,12 +2740,12 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
length = minimum;
|
||||
}
|
||||
|
||||
- (unsigned) capacity
|
||||
- (unsigned int) capacity
|
||||
{
|
||||
return capacity;
|
||||
}
|
||||
|
||||
- (void) _grow: (unsigned)minimum
|
||||
- (void) _grow: (unsigned int)minimum
|
||||
{
|
||||
if (minimum > capacity)
|
||||
{
|
||||
|
@ -3022,7 +3022,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
}
|
||||
|
||||
- (void) serializeTypeTag: (unsigned char)tag
|
||||
andCrossRef: (unsigned)xref
|
||||
andCrossRef: (unsigned int)xref
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
@ -3121,7 +3121,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
memcpy(bytes, [data bytes], length);
|
||||
}
|
||||
|
||||
- (void) setLength: (unsigned)size
|
||||
- (void) setLength: (unsigned int)size
|
||||
{
|
||||
if (size > capacity)
|
||||
{
|
||||
|
@ -3165,7 +3165,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned)bufferSize
|
||||
- (id) initWithBytes: (const void*)aBuffer length: (unsigned int)bufferSize
|
||||
{
|
||||
self = [self initWithCapacity: bufferSize];
|
||||
if (self)
|
||||
|
@ -3177,7 +3177,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithCapacity: (unsigned)bufferSize
|
||||
- (id) initWithCapacity: (unsigned int)bufferSize
|
||||
{
|
||||
int e;
|
||||
|
||||
|
@ -3206,7 +3206,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithShmID: (int)anId length: (unsigned)bufferSize
|
||||
- (id) initWithShmID: (int)anId length: (unsigned int)bufferSize
|
||||
{
|
||||
struct shmid_ds buf;
|
||||
|
||||
|
@ -3237,7 +3237,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) setCapacity: (unsigned)size
|
||||
- (id) setCapacity: (unsigned int)size
|
||||
{
|
||||
if (size != capacity)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for NSDate for GNUStep
|
||||
/** Implementation for NSDate for GNUStep
|
||||
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Jeremy Bettis <jeremy@hksys.com>
|
||||
|
@ -950,7 +950,7 @@ GSTimeNow()
|
|||
}
|
||||
|
||||
- (id) initWithTimeInterval: (NSTimeInterval)secsToBeAdded
|
||||
sinceDate: (NSDate*)anotherDate;
|
||||
sinceDate: (NSDate*)anotherDate
|
||||
{
|
||||
if (anotherDate == nil)
|
||||
{
|
||||
|
@ -963,7 +963,7 @@ GSTimeNow()
|
|||
otherTime(anotherDate) + secsToBeAdded];
|
||||
}
|
||||
|
||||
- (id) initWithTimeIntervalSinceNow: (NSTimeInterval)secsToBeAdded;
|
||||
- (id) initWithTimeIntervalSinceNow: (NSTimeInterval)secsToBeAdded
|
||||
{
|
||||
// Get the current time, add the secs and init thyself
|
||||
return [self initWithTimeIntervalSinceReferenceDate:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSDateFormatter class
|
||||
/** Implementation of NSDateFormatter class
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSDecimal functions
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSDecimalNumber class
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -31,7 +31,7 @@ static NSDecimalNumberHandler *handler;
|
|||
|
||||
@implementation NSDecimalNumberHandler
|
||||
|
||||
+ (id)defaultDecimalNumberHandler
|
||||
+ (id) defaultDecimalNumberHandler
|
||||
{
|
||||
if (handler == nil)
|
||||
handler = [[self alloc] initWithRoundingMode: NSRoundPlain
|
||||
|
@ -44,12 +44,12 @@ static NSDecimalNumberHandler *handler;
|
|||
return handler;
|
||||
}
|
||||
|
||||
+ (id)decimalNumberHandlerWithRoundingMode:(NSRoundingMode)roundingMode
|
||||
scale:(short)scale
|
||||
raiseOnExactness:(BOOL)raiseOnExactness
|
||||
raiseOnOverflow:(BOOL)raiseOnOverflow
|
||||
raiseOnUnderflow:(BOOL)raiseOnUnderflow
|
||||
raiseOnDivideByZero:(BOOL)raiseOnDivideByZero
|
||||
+ (id) decimalNumberHandlerWithRoundingMode: (NSRoundingMode)roundingMode
|
||||
scale: (short)scale
|
||||
raiseOnExactness: (BOOL)raiseOnExactness
|
||||
raiseOnOverflow: (BOOL)raiseOnOverflow
|
||||
raiseOnUnderflow: (BOOL)raiseOnUnderflow
|
||||
raiseOnDivideByZero: (BOOL)raiseOnDivideByZero
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithRoundingMode: roundingMode
|
||||
scale: scale
|
||||
|
@ -59,12 +59,12 @@ static NSDecimalNumberHandler *handler;
|
|||
raiseOnDivideByZero: raiseOnDivideByZero]);
|
||||
}
|
||||
|
||||
- (id)initWithRoundingMode:(NSRoundingMode)roundingMode
|
||||
scale:(short)scale
|
||||
raiseOnExactness:(BOOL)raiseOnExactness
|
||||
raiseOnOverflow:(BOOL)raiseOnOverflow
|
||||
raiseOnUnderflow:(BOOL)raiseOnUnderflow
|
||||
raiseOnDivideByZero:(BOOL)raiseOnDivideByZero
|
||||
- (id) initWithRoundingMode: (NSRoundingMode)roundingMode
|
||||
scale: (short)scale
|
||||
raiseOnExactness: (BOOL)raiseOnExactness
|
||||
raiseOnOverflow: (BOOL)raiseOnOverflow
|
||||
raiseOnUnderflow: (BOOL)raiseOnUnderflow
|
||||
raiseOnDivideByZero: (BOOL)raiseOnDivideByZero
|
||||
{
|
||||
_roundingMode = roundingMode;
|
||||
_scale = scale;
|
||||
|
@ -87,25 +87,29 @@ static NSDecimalNumberHandler *handler;
|
|||
case NSCalculationUnderflow:
|
||||
if (_raiseOnUnderflow)
|
||||
// FIXME: What exception to raise?
|
||||
[NSException raise: @"NSDecimalNumberException" format: @"Underflow"];
|
||||
[NSException raise: @"NSDecimalNumberException"
|
||||
format: @"Underflow"];
|
||||
else
|
||||
return [NSDecimalNumber minimumDecimalNumber];
|
||||
break;
|
||||
case NSCalculationOverflow:
|
||||
case NSCalculationOverflow:
|
||||
if (_raiseOnOverflow)
|
||||
[NSException raise: @"NSDecimalNumberException" format: @"Overflow"];
|
||||
[NSException raise: @"NSDecimalNumberException"
|
||||
format: @"Overflow"];
|
||||
else
|
||||
return [NSDecimalNumber maximumDecimalNumber];
|
||||
break;
|
||||
case NSCalculationLossOfPrecision:
|
||||
case NSCalculationLossOfPrecision:
|
||||
if (_raiseOnExactness)
|
||||
[NSException raise: @"NSDecimalNumberException" format: @"Loss of precision"];
|
||||
[NSException raise: @"NSDecimalNumberException"
|
||||
format: @"Loss of precision"];
|
||||
else
|
||||
return nil;
|
||||
break;
|
||||
case NSCalculationDivideByZero:
|
||||
case NSCalculationDivideByZero:
|
||||
if (_raiseOnDivideByZero)
|
||||
[NSException raise: @"NSDecimalNumberException" format: @"Divide by zero"];
|
||||
[NSException raise: @"NSDecimalNumberException"
|
||||
format: @"Divide by zero"];
|
||||
else
|
||||
return [NSDecimalNumber notANumber];
|
||||
break;
|
||||
|
@ -146,20 +150,20 @@ static NSDecimalNumber *one;
|
|||
NSDecimalMin(&d);
|
||||
minNumber = [[self alloc] initWithDecimal: d];
|
||||
zero = [[self alloc] initWithMantissa: 0
|
||||
exponent: 0
|
||||
isNegative: NO];
|
||||
exponent: 0
|
||||
isNegative: NO];
|
||||
one = [[self alloc] initWithMantissa: 1
|
||||
exponent: 0
|
||||
isNegative: NO];
|
||||
exponent: 0
|
||||
isNegative: NO];
|
||||
}
|
||||
|
||||
+ (id <NSDecimalNumberBehaviors>)defaultBehavior
|
||||
+ (id <NSDecimalNumberBehaviors>) defaultBehavior
|
||||
{
|
||||
// Reuse the handler from the class NSDecimalNumberHandler
|
||||
return [NSDecimalNumberHandler defaultDecimalNumberHandler];
|
||||
}
|
||||
|
||||
+ (void)setDefaultBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
+ (void) setDefaultBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
// Reuse the handler from the class NSDecimalNumberHandler
|
||||
// Might give interessting result on this class as behavior may came
|
||||
|
@ -167,58 +171,58 @@ static NSDecimalNumber *one;
|
|||
ASSIGN(handler, behavior);
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)maximumDecimalNumber
|
||||
+ (NSDecimalNumber*) maximumDecimalNumber
|
||||
{
|
||||
return maxNumber;
|
||||
}
|
||||
+ (NSDecimalNumber *)minimumDecimalNumber
|
||||
+ (NSDecimalNumber*) minimumDecimalNumber
|
||||
{
|
||||
return minNumber;
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)notANumber
|
||||
+ (NSDecimalNumber*) notANumber
|
||||
{
|
||||
return notANumber;
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)zero
|
||||
+ (NSDecimalNumber*) zero
|
||||
{
|
||||
return zero;
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)one
|
||||
+ (NSDecimalNumber*) one
|
||||
{
|
||||
return one;
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)decimalNumberWithDecimal:(NSDecimal)decimal
|
||||
+ (NSDecimalNumber*) decimalNumberWithDecimal: (NSDecimal)decimal
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithDecimal: decimal]);
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)decimalNumberWithMantissa:(unsigned long long)mantissa
|
||||
exponent:(short)exponent
|
||||
isNegative:(BOOL)isNegative
|
||||
+ (NSDecimalNumber*) decimalNumberWithMantissa: (unsigned long long)mantissa
|
||||
exponent: (short)exponent
|
||||
isNegative: (BOOL)isNegative
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithMantissa: mantissa
|
||||
exponent: exponent
|
||||
isNegative: isNegative]);
|
||||
exponent: exponent
|
||||
isNegative: isNegative]);
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)decimalNumberWithString:(NSString *)numericString
|
||||
+ (NSDecimalNumber*) decimalNumberWithString: (NSString*)numericString
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithString: numericString]);
|
||||
}
|
||||
|
||||
+ (NSDecimalNumber *)decimalNumberWithString:(NSString *)numericString
|
||||
locale:(NSDictionary *)locale
|
||||
+ (NSDecimalNumber*) decimalNumberWithString: (NSString*)numericString
|
||||
locale: (NSDictionary*)locale
|
||||
{
|
||||
return AUTORELEASE([[self alloc] initWithString: numericString
|
||||
locale: locale]);
|
||||
locale: locale]);
|
||||
}
|
||||
|
||||
|
||||
- (id)initWithDecimal:(NSDecimal)decimal
|
||||
- (id) initWithDecimal: (NSDecimal)decimal
|
||||
{
|
||||
NSDecimalCopy(&data, &decimal);
|
||||
return self;
|
||||
|
@ -241,7 +245,7 @@ static NSDecimalNumber *one;
|
|||
}
|
||||
|
||||
- (id) initWithString: (NSString*)numberValue
|
||||
locale: (NSDictionary*)locale;
|
||||
locale: (NSDictionary*)locale
|
||||
{
|
||||
NSDecimal decimal;
|
||||
|
||||
|
@ -254,12 +258,12 @@ static NSDecimalNumber *one;
|
|||
return NSDecimalString(&data, locale);
|
||||
}
|
||||
|
||||
- (const char *)objCType
|
||||
- (const char*) objCType
|
||||
{
|
||||
return "d";
|
||||
}
|
||||
|
||||
- (NSDecimal)decimalValue
|
||||
- (NSDecimal) decimalValue
|
||||
{
|
||||
NSDecimal decimal;
|
||||
|
||||
|
@ -267,12 +271,12 @@ static NSDecimalNumber *one;
|
|||
return decimal;
|
||||
}
|
||||
|
||||
- (double)doubleValue
|
||||
- (double) doubleValue
|
||||
{
|
||||
return NSDecimalDouble(&data);
|
||||
}
|
||||
|
||||
- (NSComparisonResult)compare:(NSNumber *)decimalNumber
|
||||
- (NSComparisonResult) compare: (NSNumber*)decimalNumber
|
||||
{
|
||||
if ([decimalNumber isMemberOfClass: [self class]])
|
||||
{
|
||||
|
@ -285,14 +289,14 @@ static NSDecimalNumber *one;
|
|||
return [super compare: decimalNumber];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber
|
||||
- (NSDecimalNumber*) decimalNumberByAdding: (NSDecimalNumber*)decimalNumber
|
||||
{
|
||||
return [self decimalNumberByAdding: decimalNumber
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber
|
||||
withBehavior:(id<NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByAdding: (NSDecimalNumber*)decimalNumber
|
||||
withBehavior: (id<NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -304,9 +308,9 @@ static NSDecimalNumber *one;
|
|||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -314,14 +318,14 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber
|
||||
- (NSDecimalNumber*) decimalNumberBySubtracting: (NSDecimalNumber*)decimalNumber
|
||||
{
|
||||
return [self decimalNumberBySubtracting: decimalNumber
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber
|
||||
withBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberBySubtracting: (NSDecimalNumber*)decimalNumber
|
||||
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -333,9 +337,9 @@ static NSDecimalNumber *one;
|
|||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -343,14 +347,16 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber
|
||||
- (NSDecimalNumber*) decimalNumberByMultiplyingBy:
|
||||
(NSDecimalNumber*)decimalNumber
|
||||
{
|
||||
return [self decimalNumberByMultiplyingBy: decimalNumber
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber
|
||||
withBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByMultiplyingBy:
|
||||
(NSDecimalNumber*)decimalNumber
|
||||
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -362,9 +368,9 @@ static NSDecimalNumber *one;
|
|||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -372,14 +378,14 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber
|
||||
- (NSDecimalNumber*) decimalNumberByDividingBy: (NSDecimalNumber*)decimalNumber
|
||||
{
|
||||
return [self decimalNumberByDividingBy: decimalNumber
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber
|
||||
withBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByDividingBy: (NSDecimalNumber*)decimalNumber
|
||||
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -391,9 +397,9 @@ static NSDecimalNumber *one;
|
|||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: decimalNumber];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -401,14 +407,14 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power
|
||||
- (NSDecimalNumber*) decimalNumberByMultiplyingByPowerOf10: (short)power
|
||||
{
|
||||
return [self decimalNumberByMultiplyingByPowerOf10: power
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power
|
||||
withBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByMultiplyingByPowerOf10: (short)power
|
||||
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -416,13 +422,13 @@ static NSDecimalNumber *one;
|
|||
NSDecimalNumber *res;
|
||||
|
||||
error = NSDecimalMultiplyByPowerOf10(&result, &d1,
|
||||
power, [behavior roundingMode]);
|
||||
power, [behavior roundingMode]);
|
||||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: nil];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: nil];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -430,14 +436,14 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByRaisingToPower:(unsigned)power
|
||||
- (NSDecimalNumber*) decimalNumberByRaisingToPower: (unsigned)power
|
||||
{
|
||||
return [self decimalNumberByRaisingToPower: power
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
withBehavior: [isa defaultBehavior]];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByRaisingToPower:(unsigned)power
|
||||
withBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByRaisingToPower: (unsigned)power
|
||||
withBehavior: (id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -445,13 +451,13 @@ static NSDecimalNumber *one;
|
|||
NSDecimalNumber *res;
|
||||
|
||||
error = NSDecimalPower(&result, &d1,
|
||||
power, [behavior roundingMode]);
|
||||
power, [behavior roundingMode]);
|
||||
if (error)
|
||||
{
|
||||
res = [behavior exceptionDuringOperation: _cmd
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: nil];
|
||||
error: error
|
||||
leftOperand: self
|
||||
rightOperand: nil];
|
||||
if (res != nil)
|
||||
return res;
|
||||
}
|
||||
|
@ -459,7 +465,8 @@ static NSDecimalNumber *one;
|
|||
return [NSDecimalNumber decimalNumberWithDecimal: result];
|
||||
}
|
||||
|
||||
- (NSDecimalNumber *)decimalNumberByRoundingAccordingToBehavior:(id <NSDecimalNumberBehaviors>)behavior
|
||||
- (NSDecimalNumber*) decimalNumberByRoundingAccordingToBehavior:
|
||||
(id <NSDecimalNumberBehaviors>)behavior
|
||||
{
|
||||
NSDecimal result;
|
||||
NSDecimal d1 = [self decimalValue];
|
||||
|
@ -476,9 +483,9 @@ static NSDecimalNumber *one;
|
|||
rightOperand: (NSDecimalNumber*)rightOperand
|
||||
{
|
||||
return [[isa defaultBehavior] exceptionDuringOperation: method
|
||||
error: error
|
||||
leftOperand: leftOperand
|
||||
rightOperand: rightOperand];
|
||||
error: error
|
||||
leftOperand: leftOperand
|
||||
rightOperand: rightOperand];
|
||||
}
|
||||
|
||||
- (NSRoundingMode) roundingMode
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSDistributedNotificationCenter class
|
||||
/** Implementation of NSDistributedNotificationCenter class
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSEnumerator abstrace class for GNUStep
|
||||
/** NSEnumerator abstrace class for GNUStep
|
||||
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for NSFileHandle for GNUStep
|
||||
/** Implementation for NSFileHandle for GNUStep
|
||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
@ -389,7 +389,7 @@ NSString* NSFileHandleOperationException =
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) writeInBackgroundAndNotify: (NSData*)item;
|
||||
- (void) writeInBackgroundAndNotify: (NSData*)item
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSFileManager.m
|
||||
|
||||
Copyright (C) 1997-1999 Free Software Foundation, Inc.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSFormatter class
|
||||
/** Implementation of NSFormatter class
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSGeometry.m - geometry functions
|
||||
/** NSGeometry.m - geometry functions
|
||||
* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
|
||||
*
|
||||
* Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSHashTable implementation for GNUStep.
|
||||
/** NSHashTable implementation for GNUStep.
|
||||
* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
*
|
||||
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of host class
|
||||
/** Implementation of host class
|
||||
Copyright (C) 1996, 1997,1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Luke Howard <lukeh@xedoc.com.au>
|
||||
|
@ -416,7 +416,7 @@ static NSString *myHostName = nil;
|
|||
[_hostCacheLock unlock];
|
||||
}
|
||||
|
||||
+ (BOOL) isHostCacheEnabled;
|
||||
+ (BOOL) isHostCacheEnabled
|
||||
{
|
||||
return _hostCacheEnabled;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSInvocation for GNUStep
|
||||
/** Implementation of NSInvocation for GNUStep
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Mutual exclusion locking classes
|
||||
/** Mutual exclusion locking classes
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Interface for NSLog for GNUStep
|
||||
/** Interface for NSLog for GNUStep
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSMapTable implementation for GNUStep.
|
||||
/** NSMapTable implementation for GNUStep.
|
||||
* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* Author: Albin L. Jones <Albin.L.Jones@Dartmouth.EDU>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSMethodSignature for GNUStep
|
||||
/** Implementation of NSMethodSignature for GNUStep
|
||||
Copyright (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSNotification for GNUstep
|
||||
/** Implementation of NSNotification for GNUstep
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
@ -31,7 +31,7 @@
|
|||
/* This is the designated initializer. */
|
||||
- (id) initWithName: (NSString*)name
|
||||
object: (id)object
|
||||
userInfo: (id)info
|
||||
userInfo: (NSDictionary*)info
|
||||
{
|
||||
[super init];
|
||||
_name = [name copyWithZone: NSDefaultMallocZone()];
|
||||
|
@ -53,7 +53,7 @@
|
|||
|
||||
+ (NSNotification*) notificationWithName: (NSString*)name
|
||||
object: (id)object
|
||||
userInfo: (id)info
|
||||
userInfo: (NSDictionary*)info
|
||||
{
|
||||
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
|
||||
initWithName: name object: object userInfo: info]);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSNotificationCenter for GNUstep
|
||||
/** Implementation of NSNotificationCenter for GNUstep
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSNotificationQueue.m
|
||||
|
||||
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 */
|
||||
|
||||
- (void) dequeueNotificationsMatching: (NSNotification*)notification
|
||||
coalesceMask: (NSNotificationCoalescing)coalesceMask
|
||||
coalesceMask: (unsigned int)coalesceMask
|
||||
{
|
||||
NSNotificationQueueRegistration *item;
|
||||
NSNotificationQueueRegistration *next;
|
||||
|
@ -446,21 +446,22 @@ add_to_queue(NSNotificationQueueList *queue, NSNotification *notification,
|
|||
postingStyle: (NSPostingStyle)postingStyle
|
||||
{
|
||||
[self enqueueNotification: notification
|
||||
postingStyle: postingStyle
|
||||
coalesceMask: NSNotificationCoalescingOnName
|
||||
+ NSNotificationCoalescingOnSender
|
||||
forModes: nil];
|
||||
postingStyle: postingStyle
|
||||
coalesceMask: NSNotificationCoalescingOnName
|
||||
+ NSNotificationCoalescingOnSender
|
||||
forModes: nil];
|
||||
}
|
||||
|
||||
- (void) enqueueNotification: (NSNotification*)notification
|
||||
postingStyle: (NSPostingStyle)postingStyle
|
||||
coalesceMask: (NSNotificationCoalescing)coalesceMask
|
||||
coalesceMask: (unsigned int)coalesceMask
|
||||
forModes: (NSArray*)modes
|
||||
{
|
||||
if (coalesceMask != NSNotificationNoCoalescing)
|
||||
[self dequeueNotificationsMatching: notification
|
||||
coalesceMask: coalesceMask];
|
||||
|
||||
{
|
||||
[self dequeueNotificationsMatching: notification
|
||||
coalesceMask: coalesceMask];
|
||||
}
|
||||
switch (postingStyle)
|
||||
{
|
||||
case NSPostNow:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for NSNull for GNUStep
|
||||
/** Implementation for NSNull for GNUStep
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* NSNumber - Object encapsulation of numbers
|
||||
/** NSNumber - Object encapsulation of numbers
|
||||
|
||||
Copyright (C) 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
NSNumberFormatter class
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of ObjC runtime for GNUStep
|
||||
/** Implementation of ObjC runtime for GNUStep
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation for NSPipe for GNUStep
|
||||
/** Implementation for NSPipe for GNUStep
|
||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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.
|
||||
|
||||
This implementation for OPENSTEP conformance written by
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSPortMessage for GNUstep
|
||||
/** Implementation of NSPortMessage for GNUstep
|
||||
Copyright (C) 1998,2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik>
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
/* Implementation for NSProcessInfo for GNUStep
|
||||
Copyright (C) 1995-1999 Free Software Foundation, Inc.
|
||||
/** Implementation for NSProcessInfo for GNUStep
|
||||
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
|
||||
Tuparev@EMBL-Heidelberg.de
|
||||
Modified by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
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
|
||||
count:(int)argc
|
||||
environment:(char**)env;
|
||||
environment:(char**)env
|
||||
{
|
||||
if (!_gnu_processName && !_gnu_arguments && !_gnu_environment)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Implementation of NSProtocolChecker for GNUStep
|
||||
/** Implementation of NSProtocolChecker for GNUStep
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Mike Kienenberger
|
||||
|
|
|
@ -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.
|
||||
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue