Tidied for STRICT_OPENSTEP and STRICT_MACOS_X

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3194 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-11-10 20:16:33 +00:00
parent 0e142523e6
commit d6e2e012d9
7 changed files with 31 additions and 23 deletions

View file

@ -76,9 +76,11 @@
- (void) encodeClassName: (NSString*)trueName
intoClassName: (NSString*)inArchiveName;
#ifndef STRICT_OPENSTEP
/* Substituting Objects */
- (void) replaceObject: (id)object
withObject: (id)newObject;
#endif
@end
#ifndef NO_GNUSTEP
@ -197,8 +199,10 @@
- (void) decodeClassName: (NSString*)nameInArchive
asClassName: (NSString*)trueName;
#ifndef STRICT_OPENSTEP
/* Substituting objects */
- (void) replaceObject: (id)anObject withObject: (id)replacement;
#endif
@end
#ifndef NO_GNUSTEP

View file

@ -64,10 +64,14 @@
- firstObjectCommonWithArray: (NSArray*) otherArray;
- (BOOL) isEqualToArray: (NSArray*)otherArray;
#ifndef STRICT_MACOS_X
- (void) makeObjectsPerform: (SEL) aSelector;
- (void) makeObjectsPerform: (SEL)aSelector withObject: argument;
#endif
#ifndef STRICT_OPENSTEP
- (void) makeObjectsPerformSelector: (SEL) aSelector;
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject: argument;
#endif
- (NSData*) sortedArrayHint;
- (NSArray*) sortedArrayUsingFunction: (int (*)(id, id, void*))comparator
@ -94,7 +98,7 @@
@interface NSMutableArray : NSArray
- initWithCapacity: (unsigned)numItems;
- (id) initWithCapacity: (unsigned)numItems;
- (void) addObject: anObject;
- (void) replaceObjectAtIndex: (unsigned)index withObject: anObject;
- (void) insertObject: anObject atIndex: (unsigned)index;
@ -131,22 +135,4 @@
@end
#ifndef NO_GNUSTEP
#include <gnustep/base/IndexedCollecting.h>
/* Eventually we'll make a Constant version of this protocol. */
@interface NSArray (GNU) <IndexedCollecting>
@end
@interface NSMutableArray (GNU)
+ (unsigned) defaultCapacity;
+ (unsigned) defaultGrowFactor;
- setCapacity: (unsigned)newCapacity;
- (unsigned) growFactor;
- setGrowFactor: (unsigned)aNum;
@end
#endif /* NO_GNUSTEP */
#endif /* __NSArray_h_GNUSTEP_BASE_INCLUDE */

View file

@ -48,6 +48,7 @@
#ifndef _NSXKit_H_NSAttributedString
#define _NSXKit_H_NSAttributedString
#ifndef STRICT_OPENSTEP
#include <Foundation/NSString.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSArray.h>
@ -111,5 +112,7 @@
@end //NSMutableAttributedString
#endif //STRICT_OPENSTEP
#endif //_NSXKit_H_NSAttributedString

View file

@ -86,12 +86,13 @@ struct autorelease_array_list
+ (void)addObject: anObject;
- (void)addObject: anObject;
#ifndef NO_GNUSTEP
+ (void) enableRelease: (BOOL)enable;
+ (void) setPoolCountThreshhold: (unsigned)c;
+ (unsigned) autoreleaseCountForObject: anObject;
+ (void) resetTotalAutoreleasedObjects;
+ (unsigned) totalAutoreleasedObjects;
#endif
@end
#endif /* __NSAutoreleasePool_h_GNUSTEP_BASE_INCLUDE */

View file

@ -52,6 +52,9 @@
- (BOOL)characterIsMember:(unichar)aCharacter;
- (NSCharacterSet *)invertedSet;
#ifndef STRICT_MACOS_X
+ (NSCharacterSet*) characterSetWithContentsOfFile: (NSString*)file;
#endif
@end
@interface NSMutableCharacterSet : NSCharacterSet

View file

@ -1,5 +1,5 @@
/* NSCharacterSet - Character set holder
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu>
Date: Apr 1995
@ -295,6 +295,17 @@ static NSLock* cache_lock = nil;
return [self characterSetWithBitmapRepresentation:bitmap];
}
+ (NSCharacterSet *)characterSetWithContentsOfFile: (NSString *)aFile
{
if ([@"bitmap" isEqual: [aFile pathExtension]])
{
NSData *bitmap = [NSData dataWithContentsOfFile: aFile];
return [self characterSetWithBitmapRepresentation: bitmap];
}
else
return nil;
}
- (NSData *)bitmapRepresentation
{
[self subclassResponsibility:_cmd];

View file

@ -189,7 +189,7 @@
}
}
- (void) getObjects: (id*)aBuffer range: (IndexRange)aRange
- (void) getObjects: (id*)aBuffer range: (NSRange)aRange
{
unsigned i, j = 0, e = aRange.location + aRange.length;