Added CollMove

git-svn-id: svn://svn.cc65.org/cc65/trunk@797 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-07-17 11:54:30 +00:00
parent ccde3d8299
commit 5c46ebee60
2 changed files with 30 additions and 0 deletions

View File

@@ -248,6 +248,13 @@ INLINE void CollReplace (Collection* C, void* Item, unsigned Index)
(C)->Items[(Index)] = (Item))
#endif
void CollMove (Collection* C, unsigned OldIndex, unsigned NewIndex);
/* Move an item from one position in the collection to another. OldIndex
* is the current position of the item, NewIndex is the new index after
* the function has done it's work. Existing entries with indices NewIndex
* and up are moved one position upwards.
*/
void CollSort (Collection* C,
int (*Compare) (void*, const void*, const void*),
void* Data);