mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 13:09:32 +02:00
+ added the TItemListSorter_NoContext and TItemListSorter_Context procedure
types to sortbase. No implementation for them yet. They will allow sorting an array with elements of arbitrary size (e.g. array of records). git-svn-id: trunk@41171 -
This commit is contained in:
parent
25f6da7066
commit
848890e54b
@ -23,9 +23,11 @@ interface
|
||||
type
|
||||
TListSortComparer_NoContext = function(Item1, Item2: Pointer): Integer;
|
||||
TPtrListSorter_NoContext = procedure(ItemPtrs: PPointer; ItemCount: PtrUInt; Comparer: TListSortComparer_NoContext);
|
||||
TItemListSorter_NoContext = procedure(Items: Pointer; ItemSize, ItemCount: SizeUInt; Comparer: TListSortComparer_NoContext);
|
||||
|
||||
TListSortComparer_Context = function(Item1, Item2, Context: Pointer): Integer;
|
||||
TPtrListSorter_Context = procedure(ItemPtrs: PPointer; ItemCount: PtrUInt; Comparer: TListSortComparer_Context; Context: Pointer);
|
||||
TItemListSorter_Context = procedure(Items: Pointer; ItemSize, ItemCount: SizeUInt; Comparer: TListSortComparer_Context; Context: Pointer);
|
||||
|
||||
PSortingAlgorithm = ^TSortingAlgorithm;
|
||||
TSortingAlgorithm = record
|
||||
|
Loading…
Reference in New Issue
Block a user