mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Updates for 10.5 API changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
845a701069
commit
24d43481a8
138 changed files with 2094 additions and 1536 deletions
|
@ -80,14 +80,14 @@ static Class gcClass = 0;
|
|||
return result;
|
||||
}
|
||||
|
||||
- (unsigned int) count
|
||||
- (NSUInteger) count
|
||||
{
|
||||
return _count;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
unsigned int c = _count;
|
||||
NSUInteger c = _count;
|
||||
|
||||
[GCObject gcObjectWillBeDeallocated: (GCObject*)self];
|
||||
if ([GCObject gcIsCollecting])
|
||||
|
@ -114,7 +114,7 @@ static Class gcClass = 0;
|
|||
|
||||
- (void) gcDecrementRefCountOfContainedObjects
|
||||
{
|
||||
unsigned int c = _count;
|
||||
NSUInteger c = _count;
|
||||
|
||||
gc.flags.visited = 0;
|
||||
while (c-- > 0)
|
||||
|
@ -134,7 +134,7 @@ static Class gcClass = 0;
|
|||
}
|
||||
else
|
||||
{
|
||||
unsigned int c = _count;
|
||||
NSUInteger c = _count;
|
||||
|
||||
gc.flags.visited = 1;
|
||||
while (c-- > 0)
|
||||
|
@ -149,7 +149,7 @@ static Class gcClass = 0;
|
|||
}
|
||||
}
|
||||
|
||||
- (id) initWithObjects: (id*)objects count: (unsigned int)count
|
||||
- (id) initWithObjects: (id*)objects count: (NSUInteger)count
|
||||
{
|
||||
_contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL)));
|
||||
_isGCObject = (BOOL*)&_contents[count];
|
||||
|
@ -174,7 +174,7 @@ static Class gcClass = 0;
|
|||
|
||||
- (id) initWithArray: (NSArray*)anotherArray
|
||||
{
|
||||
unsigned int count = [anotherArray count];
|
||||
NSUInteger count = [anotherArray count];
|
||||
|
||||
_contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL)));
|
||||
_isGCObject = (BOOL*)&_contents[count];
|
||||
|
@ -208,7 +208,7 @@ static Class gcClass = 0;
|
|||
return [[GCMutableArray allocWithZone: zone] initWithArray: self];
|
||||
}
|
||||
|
||||
- (id) objectAtIndex: (unsigned int)index
|
||||
- (id) objectAtIndex: (NSUInteger)index
|
||||
{
|
||||
if (index >= _count)
|
||||
{
|
||||
|
@ -272,7 +272,7 @@ static Class gcClass = 0;
|
|||
|
||||
- (id) initWithArray: (NSArray*)anotherArray
|
||||
{
|
||||
unsigned int count = [anotherArray count];
|
||||
NSUInteger count = [anotherArray count];
|
||||
|
||||
self = [self initWithCapacity: count];
|
||||
if (self != nil)
|
||||
|
@ -287,7 +287,7 @@ static Class gcClass = 0;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithCapacity: (unsigned int)aNumItems
|
||||
- (id) initWithCapacity: (NSUInteger)aNumItems
|
||||
{
|
||||
if (aNumItems < 1)
|
||||
{
|
||||
|
@ -301,7 +301,7 @@ static Class gcClass = 0;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithObjects: (id *)objects count: (unsigned int)count
|
||||
- (id) initWithObjects: (id *)objects count: (NSUInteger)count
|
||||
{
|
||||
self = [self initWithCapacity: count];
|
||||
if (self != nil)
|
||||
|
@ -325,9 +325,9 @@ static Class gcClass = 0;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) insertObject: (id)anObject atIndex: (unsigned int)index
|
||||
- (void) insertObject: (id)anObject atIndex: (NSUInteger)index
|
||||
{
|
||||
unsigned int i;
|
||||
NSUInteger i;
|
||||
|
||||
if (anObject == nil)
|
||||
{
|
||||
|
@ -381,14 +381,14 @@ static Class gcClass = 0;
|
|||
[self removeObjectsInRange: NSMakeRange(0, _count)];
|
||||
}
|
||||
|
||||
- (void) removeObjectAtIndex: (unsigned int)index
|
||||
- (void) removeObjectAtIndex: (NSUInteger)index
|
||||
{
|
||||
[self removeObjectsInRange: NSMakeRange(index, 1)];
|
||||
}
|
||||
|
||||
- (void) removeObjectsInRange: (NSRange)range
|
||||
{
|
||||
unsigned int i;
|
||||
NSUInteger i;
|
||||
|
||||
if (NSMaxRange(range) > _count)
|
||||
{
|
||||
|
@ -413,7 +413,7 @@ static Class gcClass = 0;
|
|||
_count -= range.length;
|
||||
}
|
||||
|
||||
- (void) replaceObjectAtIndex: (unsigned int)index withObject: (id)anObject
|
||||
- (void) replaceObjectAtIndex: (NSUInteger)index withObject: (id)anObject
|
||||
{
|
||||
if (anObject == nil)
|
||||
{
|
||||
|
|
|
@ -170,7 +170,7 @@ static Class gcClass = 0;
|
|||
return [[GCDictionary allocWithZone: zone] initWithDictionary: self];
|
||||
}
|
||||
|
||||
- (unsigned int) count
|
||||
- (NSUInteger) count
|
||||
{
|
||||
return NSCountMapTable(_map);
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ static Class gcClass = 0;
|
|||
{
|
||||
id keys = [dictionary keyEnumerator];
|
||||
id key;
|
||||
unsigned int size = ([dictionary count] * 4) / 3;
|
||||
NSUInteger size = ([dictionary count] * 4) / 3;
|
||||
NSZone *z = NSDefaultMallocZone();
|
||||
|
||||
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
|
||||
|
@ -266,9 +266,9 @@ static Class gcClass = 0;
|
|||
|
||||
- (id) initWithObjects: (id*)objects
|
||||
forKeys: (id*)keys
|
||||
count: (unsigned int)count
|
||||
count: (NSUInteger)count
|
||||
{
|
||||
unsigned int size = (count * 4) / 3;
|
||||
NSUInteger size = (count * 4) / 3;
|
||||
NSZone *z = NSDefaultMallocZone();
|
||||
|
||||
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
|
||||
|
@ -368,9 +368,9 @@ static Class gcClass = 0;
|
|||
return [self initWithCapacity: 0];
|
||||
}
|
||||
|
||||
- (id) initWithCapacity: (unsigned int)aNumItems
|
||||
- (id) initWithCapacity: (NSUInteger)aNumItems
|
||||
{
|
||||
unsigned int size = (aNumItems * 4) / 3;
|
||||
NSUInteger size = (aNumItems * 4) / 3;
|
||||
|
||||
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
|
||||
GCInfoValueCallBacks, size, [self zone]);
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
@implementation NSArray (GSCategories)
|
||||
|
||||
- (unsigned) insertionPosition: (id)item
|
||||
- (NSUInteger) insertionPosition: (id)item
|
||||
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
|
||||
context: (void *)context
|
||||
{
|
||||
|
@ -91,7 +91,7 @@
|
|||
return index;
|
||||
}
|
||||
|
||||
- (unsigned) insertionPosition: (id)item
|
||||
- (NSUInteger) insertionPosition: (id)item
|
||||
usingSelector: (SEL)comp
|
||||
{
|
||||
unsigned count = [self count];
|
||||
|
@ -178,10 +178,10 @@
|
|||
* last day of the year is a monday tuesday or wednesday, these days are
|
||||
* part of week 1 of the next year.
|
||||
*/
|
||||
- (int) weekOfYear
|
||||
- (NSInteger) weekOfYear
|
||||
{
|
||||
int dayOfWeek = [self dayOfWeek];
|
||||
int dayOfYear;
|
||||
NSInteger dayOfWeek = [self dayOfWeek];
|
||||
NSInteger dayOfYear;
|
||||
|
||||
/*
|
||||
* Whether a week is considered to be in a year or not depends on its
|
||||
|
@ -825,7 +825,7 @@ static void MD5Transform (uint32_t buf[4], uint32_t const in[16])
|
|||
/*
|
||||
* The header is a line of the form 'begin mode filename'
|
||||
*/
|
||||
sprintf((char*)buf, "begin %03o ", mode);
|
||||
sprintf((char*)buf, "begin %03o ", (int)mode);
|
||||
[encoded appendBytes: buf length: strlen((const char*)buf)];
|
||||
[encoded appendData: [name dataUsingEncoding: NSASCIIStringEncoding]];
|
||||
[encoded appendBytes: "\n" length: 1];
|
||||
|
@ -1172,7 +1172,7 @@ strerror_r(int eno, char *buf, int len)
|
|||
if (length > 0)
|
||||
{
|
||||
unsigned start = 0;
|
||||
unichar (*caiImp)(NSString*, SEL, unsigned int);
|
||||
unichar (*caiImp)(NSString*, SEL, NSUInteger);
|
||||
SEL caiSel = @selector(characterAtIndex:);
|
||||
|
||||
caiImp = (unichar (*)())[self methodForSelector: caiSel];
|
||||
|
@ -1199,7 +1199,7 @@ strerror_r(int eno, char *buf, int len)
|
|||
if (length > 0)
|
||||
{
|
||||
unsigned end = length;
|
||||
unichar (*caiImp)(NSString*, SEL, unsigned int);
|
||||
unichar (*caiImp)(NSString*, SEL, NSUInteger);
|
||||
SEL caiSel = @selector(characterAtIndex:);
|
||||
|
||||
caiImp = (unichar (*)())[self methodForSelector: caiSel];
|
||||
|
@ -1231,7 +1231,7 @@ strerror_r(int eno, char *buf, int len)
|
|||
{
|
||||
unsigned start = 0;
|
||||
unsigned end = length;
|
||||
unichar (*caiImp)(NSString*, SEL, unsigned int);
|
||||
unichar (*caiImp)(NSString*, SEL, NSUInteger);
|
||||
SEL caiSel = @selector(characterAtIndex:);
|
||||
|
||||
caiImp = (unichar (*)())[self methodForSelector: caiSel];
|
||||
|
@ -1385,7 +1385,7 @@ strerror_r(int eno, char *buf, int len)
|
|||
if (length > 0)
|
||||
{
|
||||
unsigned start = 0;
|
||||
unichar (*caiImp)(NSString*, SEL, unsigned int);
|
||||
unichar (*caiImp)(NSString*, SEL, NSUInteger);
|
||||
SEL caiSel = @selector(characterAtIndex:);
|
||||
|
||||
caiImp = (unichar (*)())[self methodForSelector: caiSel];
|
||||
|
@ -1410,7 +1410,7 @@ strerror_r(int eno, char *buf, int len)
|
|||
if (length > 0)
|
||||
{
|
||||
unsigned end = length;
|
||||
unichar (*caiImp)(NSString*, SEL, unsigned int);
|
||||
unichar (*caiImp)(NSString*, SEL, NSUInteger);
|
||||
SEL caiSel = @selector(characterAtIndex:);
|
||||
|
||||
caiImp = (unichar (*)())[self methodForSelector: caiSel];
|
||||
|
|
|
@ -389,7 +389,7 @@ wordData(NSString *word)
|
|||
* Return YES on success, NO if there is an error.
|
||||
*/
|
||||
- (BOOL) decodeData: (const void*)sData
|
||||
length: (unsigned)length
|
||||
length: (NSUInteger)length
|
||||
intoData: (NSMutableData*)dData
|
||||
{
|
||||
unsigned size = [dData length];
|
||||
|
@ -417,7 +417,7 @@ wordData(NSString *word)
|
|||
@end
|
||||
@implementation GSMimeBase64DecoderContext
|
||||
- (BOOL) decodeData: (const void*)sData
|
||||
length: (unsigned)length
|
||||
length: (NSUInteger)length
|
||||
intoData: (NSMutableData*)dData
|
||||
{
|
||||
unsigned size = [dData length];
|
||||
|
@ -517,7 +517,7 @@ wordData(NSString *word)
|
|||
@end
|
||||
@implementation GSMimeQuotedDecoderContext
|
||||
- (BOOL) decodeData: (const void*)sData
|
||||
length: (unsigned)length
|
||||
length: (NSUInteger)length
|
||||
intoData: (NSMutableData*)dData
|
||||
{
|
||||
unsigned size = [dData length];
|
||||
|
@ -618,7 +618,7 @@ wordData(NSString *word)
|
|||
|
||||
@implementation GSMimeUUCodingContext
|
||||
- (BOOL) decodeData: (const void*)sData
|
||||
length: (unsigned)length
|
||||
length: (NSUInteger)length
|
||||
intoData: (NSMutableData*)dData
|
||||
{
|
||||
[super decodeData: sData length: length intoData: dData];
|
||||
|
@ -3676,7 +3676,7 @@ appendString(NSMutableData *m, unsigned offset, unsigned fold,
|
|||
|
||||
|
||||
@interface GSMimeDocument (Private)
|
||||
- (unsigned) _indexOfHeaderNamed: (NSString*)name;
|
||||
- (NSUInteger) _indexOfHeaderNamed: (NSString*)name;
|
||||
@end
|
||||
|
||||
/**
|
||||
|
@ -5743,7 +5743,7 @@ appendString(NSMutableData *m, unsigned offset, unsigned fold,
|
|||
* NB. The supplied name <em>must</em> be lowercase.<br />
|
||||
* This method is for internal use
|
||||
*/
|
||||
- (unsigned) _indexOfHeaderNamed: (NSString*)name
|
||||
- (NSUInteger) _indexOfHeaderNamed: (NSString*)name
|
||||
{
|
||||
unsigned count = [headers count];
|
||||
unsigned index;
|
||||
|
|
|
@ -225,7 +225,7 @@ static NSMapTable *attrNames = 0;
|
|||
}
|
||||
}
|
||||
|
||||
+ (int) typeFromDescription: (NSString*)desc
|
||||
+ (NSInteger) typeFromDescription: (NSString*)desc
|
||||
{
|
||||
NSMapEnumerator enumerator;
|
||||
NSString *val;
|
||||
|
@ -236,22 +236,22 @@ static NSMapTable *attrNames = 0;
|
|||
{
|
||||
if ([desc isEqual: val] == YES)
|
||||
{
|
||||
return (int)(intptr_t)key;
|
||||
return (NSInteger)(intptr_t)key;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
+ (NSString*) descriptionFromType: (int)type
|
||||
+ (NSString*) descriptionFromType: (NSInteger)type
|
||||
{
|
||||
NSString *desc = (NSString*)NSMapGet(attrNames, (void*)(intptr_t)type);
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
||||
- (int) type
|
||||
- (NSInteger) type
|
||||
{
|
||||
return (int)((xmlAttrPtr)(lib))->atype;
|
||||
return (NSInteger)((xmlAttrPtr)(lib))->atype;
|
||||
}
|
||||
|
||||
- (NSString*) typeDescription
|
||||
|
@ -400,9 +400,9 @@ static NSMapTable *attrNames = 0;
|
|||
return UTF8Str(((xmlDocPtr)(lib))->encoding);
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
- (NSUInteger) hash
|
||||
{
|
||||
return (((unsigned)(uintptr_t)lib) >> 3);
|
||||
return (((NSUInteger)(intptr_t)lib) >> 3);
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -553,7 +553,7 @@ static NSMapTable *nsNames = 0;
|
|||
/**
|
||||
* Return the string representation of the specified numeric type.
|
||||
*/
|
||||
+ (NSString*) descriptionFromType: (int)type
|
||||
+ (NSString*) descriptionFromType: (NSInteger)type
|
||||
{
|
||||
NSString *desc = (NSString*)NSMapGet(nsNames, (void*)(intptr_t)type);
|
||||
|
||||
|
@ -582,7 +582,7 @@ static NSMapTable *nsNames = 0;
|
|||
* <item>XML_LOCAL_NAMESPACE</item>
|
||||
* </list>
|
||||
*/
|
||||
+ (int) typeFromDescription: (NSString*)desc
|
||||
+ (NSInteger) typeFromDescription: (NSString*)desc
|
||||
{
|
||||
NSMapEnumerator enumerator;
|
||||
NSString *val;
|
||||
|
@ -593,7 +593,7 @@ static NSMapTable *nsNames = 0;
|
|||
{
|
||||
if ([desc isEqual: val] == YES)
|
||||
{
|
||||
return (int)(intptr_t)key;
|
||||
return (NSInteger)(intptr_t)key;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
@ -610,9 +610,9 @@ static NSMapTable *nsNames = 0;
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
- (NSUInteger) hash
|
||||
{
|
||||
return (((unsigned)(uintptr_t)lib) >> 3);
|
||||
return (((NSUInteger)(intptr_t)lib) >> 3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -676,9 +676,9 @@ static NSMapTable *nsNames = 0;
|
|||
/**
|
||||
* Return type of namespace
|
||||
*/
|
||||
- (int) type
|
||||
- (NSInteger) type
|
||||
{
|
||||
return (int)((xmlNsPtr)(lib))->type;
|
||||
return (NSInteger)((xmlNsPtr)(lib))->type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -731,7 +731,7 @@ static NSMapTable *nodeNames = 0;
|
|||
/**
|
||||
* Return the string constant value for the node type given.
|
||||
*/
|
||||
+ (NSString*) descriptionFromType: (int)type
|
||||
+ (NSString*) descriptionFromType: (NSInteger)type
|
||||
{
|
||||
NSString *desc = (NSString*)NSMapGet(nodeNames, (void*)(intptr_t)type);
|
||||
|
||||
|
@ -810,7 +810,7 @@ static NSMapTable *nodeNames = 0;
|
|||
* <item>XML_ENTITY_DECL</item>
|
||||
* </list>
|
||||
*/
|
||||
+ (int) typeFromDescription: (NSString*)desc
|
||||
+ (NSInteger) typeFromDescription: (NSString*)desc
|
||||
{
|
||||
NSMapEnumerator enumerator;
|
||||
NSString *val;
|
||||
|
@ -821,7 +821,7 @@ static NSMapTable *nodeNames = 0;
|
|||
{
|
||||
if ([desc isEqual: val] == YES)
|
||||
{
|
||||
return (int)(intptr_t)key;
|
||||
return (NSInteger)(intptr_t)key;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
@ -894,11 +894,11 @@ static NSMapTable *nodeNames = 0;
|
|||
{
|
||||
return UTF8Str(ptr->content);
|
||||
}
|
||||
if ((int)ptr->type == XML_TEXT_NODE)
|
||||
if ((NSInteger)ptr->type == XML_TEXT_NODE)
|
||||
{
|
||||
return @"";
|
||||
}
|
||||
else if ((int)ptr->type == XML_ELEMENT_NODE)
|
||||
else if ((NSInteger)ptr->type == XML_ELEMENT_NODE)
|
||||
{
|
||||
ptr = ptr->children;
|
||||
if (ptr != NULL)
|
||||
|
@ -1070,9 +1070,9 @@ static NSMapTable *nodeNames = 0;
|
|||
}
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
- (NSUInteger) hash
|
||||
{
|
||||
return (((unsigned)(uintptr_t)lib) >> 3);
|
||||
return (((NSUInteger)(intptr_t)lib) >> 3);
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -1089,7 +1089,7 @@ static NSMapTable *nodeNames = 0;
|
|||
*/
|
||||
- (BOOL) isElement
|
||||
{
|
||||
if ((int)((xmlNodePtr)(lib))->type == XML_ELEMENT_NODE)
|
||||
if ((NSInteger)((xmlNodePtr)(lib))->type == XML_ELEMENT_NODE)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
@ -1116,7 +1116,7 @@ static NSMapTable *nodeNames = 0;
|
|||
*/
|
||||
- (BOOL) isText
|
||||
{
|
||||
if ((int)((xmlNodePtr)(lib))->type == XML_TEXT_NODE)
|
||||
if ((NSInteger)((xmlNodePtr)(lib))->type == XML_TEXT_NODE)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
@ -1531,9 +1531,9 @@ static NSMapTable *nodeNames = 0;
|
|||
* use this method and compare the return value with a value you previously
|
||||
* obtained using the +typeFromDescription: method.
|
||||
*/
|
||||
- (int) type
|
||||
- (NSInteger) type
|
||||
{
|
||||
return (int)((xmlNodePtr)(lib))->type;
|
||||
return (NSInteger)((xmlNodePtr)(lib))->type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1847,7 +1847,7 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
/**
|
||||
* If executed during a parse operation, returns the current column number.
|
||||
*/
|
||||
- (int) columnNumber
|
||||
- (NSInteger) columnNumber
|
||||
{
|
||||
return xmlSAX2GetColumnNumber(lib);
|
||||
}
|
||||
|
@ -1891,7 +1891,7 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
/**
|
||||
* Return error code for last parse operation.
|
||||
*/
|
||||
- (int) errNo
|
||||
- (NSInteger) errNo
|
||||
{
|
||||
return ((xmlParserCtxtPtr)lib)->errNo;
|
||||
}
|
||||
|
@ -2057,7 +2057,7 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
/**
|
||||
* If executed during a parse operation, returns the current line number.
|
||||
*/
|
||||
- (int) lineNumber
|
||||
- (NSInteger) lineNumber
|
||||
{
|
||||
return xmlSAX2GetLineNumber(lib);
|
||||
}
|
||||
|
@ -3043,7 +3043,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
/**
|
||||
* Called to detemrine if the document is standalone.
|
||||
*/
|
||||
- (int) isStandalone
|
||||
- (NSInteger) isStandalone
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -3166,7 +3166,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* An entity definition has been parsed.
|
||||
*/
|
||||
- (void) entityDecl: (NSString*)name
|
||||
type: (int)type
|
||||
type: (NSInteger)type
|
||||
public: (NSString*)publicId
|
||||
system: (NSString*)systemId
|
||||
content: (NSString*)content
|
||||
|
@ -3178,8 +3178,8 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
*/
|
||||
- (void) attributeDecl: (NSString*)nameElement
|
||||
name: (NSString*)name
|
||||
type: (int)type
|
||||
typeDefValue: (int)defType
|
||||
type: (NSInteger)type
|
||||
typeDefValue: (NSInteger)defType
|
||||
defaultValue: (NSString*)value
|
||||
{
|
||||
}
|
||||
|
@ -3188,7 +3188,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* An element definition has been parsed.
|
||||
*/
|
||||
- (void) elementDecl: (NSString*)name
|
||||
type: (int)type
|
||||
type: (NSInteger)type
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -3246,8 +3246,8 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* Called when a warning message needs to be output.
|
||||
*/
|
||||
- (void) warning: (NSString*)e
|
||||
colNumber: (int)colNumber
|
||||
lineNumber: (int)lineNumber
|
||||
colNumber: (NSInteger)colNumber
|
||||
lineNumber: (NSInteger)lineNumber
|
||||
{
|
||||
e = [NSString stringWithFormat: @"at line: %d column: %d ... %@",
|
||||
lineNumber, colNumber, e];
|
||||
|
@ -3258,8 +3258,8 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* Called when an error message needs to be output.
|
||||
*/
|
||||
- (void) error: (NSString*)e
|
||||
colNumber: (int)colNumber
|
||||
lineNumber: (int)lineNumber
|
||||
colNumber: (NSInteger)colNumber
|
||||
lineNumber: (NSInteger)lineNumber
|
||||
{
|
||||
e = [NSString stringWithFormat: @"at line: %d column: %d ... %@",
|
||||
lineNumber, colNumber, e];
|
||||
|
@ -3270,8 +3270,8 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* Called when a fatal error message needs to be output.
|
||||
*/
|
||||
- (void) fatalError: (NSString*)e
|
||||
colNumber: (int)colNumber
|
||||
lineNumber: (int)lineNumber
|
||||
colNumber: (NSInteger)colNumber
|
||||
lineNumber: (NSInteger)lineNumber
|
||||
{
|
||||
e = [NSString stringWithFormat: @"at line: %d column: %d ... %@",
|
||||
lineNumber, colNumber, e];
|
||||
|
@ -3281,7 +3281,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
/**
|
||||
* Called to find out whether there is an internal subset.
|
||||
*/
|
||||
- (int) hasInternalSubset
|
||||
- (NSInteger) hasInternalSubset
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -3299,7 +3299,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
/**
|
||||
* Called to find out whether there is an external subset.
|
||||
*/
|
||||
- (int) hasExternalSubset
|
||||
- (NSInteger) hasExternalSubset
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -3688,7 +3688,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
/**
|
||||
* Returns the number of nodes in the receiver.
|
||||
*/
|
||||
- (unsigned int) count
|
||||
- (NSUInteger) count
|
||||
{
|
||||
if (xmlXPathNodeSetIsEmpty (((xmlXPathObject*)_lib)->nodesetval))
|
||||
{
|
||||
|
@ -3700,7 +3700,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
/**
|
||||
* Deprecated
|
||||
*/
|
||||
- (unsigned int) length
|
||||
- (NSUInteger) length
|
||||
{
|
||||
if (xmlXPathNodeSetIsEmpty (((xmlXPathObject*)_lib)->nodesetval))
|
||||
{
|
||||
|
@ -3714,7 +3714,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
* Returns the node from the receiver at the specified index, or nil
|
||||
* if no such node exists.
|
||||
*/
|
||||
- (GSXMLNode *) nodeAtIndex: (unsigned)index
|
||||
- (GSXMLNode *) nodeAtIndex: (NSUInteger)index
|
||||
{
|
||||
if (xmlXPathNodeSetIsEmpty (((xmlXPathObject*)_lib)->nodesetval))
|
||||
{
|
||||
|
@ -3726,7 +3726,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
|
|||
GSXMLNode *n;
|
||||
|
||||
node = xmlXPathNodeSetItem (((xmlXPathObject*)_lib)->nodesetval,
|
||||
(int)index);
|
||||
(NSInteger)index);
|
||||
n = [GSXMLNode alloc];
|
||||
n = [n _initFrom: node parent: self];
|
||||
return AUTORELEASE(n);
|
||||
|
@ -4441,43 +4441,43 @@ static BOOL warned = NO; if (warned == NO) { warned = YES; NSLog(@"WARNING, use
|
|||
*/
|
||||
@interface NSArray (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSData (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSDate (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSDictionary (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSObject (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSNumber (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
@interface NSString (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc;
|
||||
@end
|
||||
|
||||
|
@ -4528,7 +4528,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSArray (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
unsigned i;
|
||||
|
@ -4564,7 +4564,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSData (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
NSData *d;
|
||||
|
@ -4581,7 +4581,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSDate (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
NSString *s;
|
||||
|
@ -4597,7 +4597,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSDictionary (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
NSEnumerator *kEnum = [self keyEnumerator];
|
||||
|
@ -4638,7 +4638,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSNumber (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
const char *t = [self objCType];
|
||||
|
@ -4674,7 +4674,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSObject (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
[[self description] appendToXMLRPC: str indent: indent for: rpc];
|
||||
|
@ -4683,7 +4683,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
@implementation NSString (GSXMLRPC)
|
||||
- (void) appendToXMLRPC: (NSMutableString*)str
|
||||
indent: (unsigned)indent
|
||||
indent: (NSUInteger)indent
|
||||
for: (GSXMLRPC*)rpc
|
||||
{
|
||||
BOOL compact = [rpc compact];
|
||||
|
@ -4990,7 +4990,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
return str;
|
||||
}
|
||||
|
||||
- (NSString*) buildResponseWithFaultCode: (int)code andString: (NSString*)s
|
||||
- (NSString*) buildResponseWithFaultCode: (NSInteger)code andString: (NSString*)s
|
||||
{
|
||||
NSMutableString *str = [NSMutableString stringWithCapacity: 1024];
|
||||
NSDictionary *fault;
|
||||
|
@ -5140,7 +5140,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
- (id) makeMethodCall: (NSString*)method
|
||||
params: (NSArray*)params
|
||||
timeout: (int)seconds
|
||||
timeout: (NSInteger)seconds
|
||||
{
|
||||
NS_DURING
|
||||
{
|
||||
|
@ -5322,7 +5322,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
|
||||
- (BOOL) sendMethodCall: (NSString*)method
|
||||
params: (NSArray*)params
|
||||
timeout: (int)seconds
|
||||
timeout: (NSInteger)seconds
|
||||
{
|
||||
NSData *data;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue