mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fixups for DO compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26747 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f4e165a49e
commit
d790d9747f
8 changed files with 197 additions and 17 deletions
|
@ -312,7 +312,19 @@ SortRange(id *objects, NSRange range, id *descriptors,
|
|||
GS_BEGINIDBUF(objects, count);
|
||||
|
||||
[self getObjects: objects];
|
||||
[sortDescriptors getObjects: descriptors];
|
||||
if ([sortDescriptors isProxy])
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < numDescriptors; i++)
|
||||
{
|
||||
descriptors[i] = [sortDescriptors objectAtIndex: i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
[sortDescriptors getObjects: descriptors];
|
||||
}
|
||||
SortRange(objects, NSMakeRange(0, count), descriptors, numDescriptors);
|
||||
a = [[NSArray alloc] initWithObjects: objects count: count];
|
||||
[self setArray: a];
|
||||
|
@ -333,7 +345,19 @@ SortRange(id *objects, NSRange range, id *descriptors,
|
|||
{
|
||||
GS_BEGINIDBUF(descriptors, dCount);
|
||||
|
||||
[sortDescriptors getObjects: descriptors];
|
||||
if ([sortDescriptors isProxy])
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < dCount; i++)
|
||||
{
|
||||
descriptors[i] = [sortDescriptors objectAtIndex: i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
[sortDescriptors getObjects: descriptors];
|
||||
}
|
||||
SortRange(_contents_array, NSMakeRange(0, _count), descriptors, dCount);
|
||||
|
||||
GS_ENDIDBUF();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue