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:
Richard Frith-MacDonald 2009-02-23 20:42:32 +00:00
parent 845a701069
commit 24d43481a8
138 changed files with 2094 additions and 1536 deletions

View file

@ -237,9 +237,10 @@ static Class NSMutableDataMallocClass;
}
- (void) encodeArrayOfObjCType: (const char*)type
count: (unsigned)count
count: (NSUInteger)count
at: (const void*)buf
{
unsigned c = count;
unsigned i;
unsigned offset = 0;
unsigned size = objc_sizeof_type(type);
@ -272,9 +273,9 @@ static Class NSMutableDataMallocClass;
if (_initialPass == NO)
{
(*_tagImp)(_dst, tagSel, _GSC_ARY_B);
(*_serImp)(_dst, serSel, &count, @encode(unsigned), nil);
(*_serImp)(_dst, serSel, &c, @encode(unsigned), nil);
}
for (i = 0; i < count; i++)
for (i = 0; i < c; i++)
{
(*_eValImp)(self, eValSel, type, (char*)buf + offset);
offset += size;
@ -283,10 +284,10 @@ static Class NSMutableDataMallocClass;
else if (_initialPass == NO)
{
(*_tagImp)(_dst, tagSel, _GSC_ARY_B);
(*_serImp)(_dst, serSel, &count, @encode(unsigned), nil);
(*_serImp)(_dst, serSel, &c, @encode(unsigned), nil);
(*_tagImp)(_dst, tagSel, info);
for (i = 0; i < count; i++)
for (i = 0; i < c; i++)
{
(*_serImp)(_dst, serSel, (char*)buf + offset, type, nil);
offset += size;
@ -305,7 +306,7 @@ static Class NSMutableDataMallocClass;
case _C_ARY_B:
{
int count = atoi(++type);
unsigned count = atoi(++type);
while (isdigit(*type))
{