mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Changes to restore sorting functiionality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b1355ff7f
commit
a4140c8f51
11 changed files with 7804 additions and 10611 deletions
|
@ -25,6 +25,7 @@
|
|||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#import "common.h"
|
||||
#import "Foundation/NSSortDescriptor.h"
|
||||
#import "Foundation/NSArray.h"
|
||||
#import "Foundation/NSObjCRuntime.h"
|
||||
|
@ -45,7 +46,7 @@ SwapObjects(id * o1, id * o2)
|
|||
* Sorts the provided object array's sortRange according to sortDescriptor.
|
||||
*/
|
||||
// Quicksort algorithm copied from Wikipedia :-).
|
||||
#ifndef GS_DISABLE_QUICKSORT
|
||||
#if GS_USE_QUICKSORT
|
||||
static void
|
||||
_GSQuickSort(id *objects,
|
||||
NSRange sortRange,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue