mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 14:20:04 +00:00
VG_(addToXA): return index in the array where the item was added.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6619
This commit is contained in:
@@ -61,8 +61,10 @@ extern void VG_(deleteXA) ( XArray* );
|
||||
before making further queries with lookupXA. */
|
||||
extern void VG_(setCmpFnXA) ( XArray*, Word (*compar)(void*,void*) );
|
||||
|
||||
/* Add an element to an XArray. Element is copied into the XArray. */
|
||||
extern void VG_(addToXA) ( XArray*, void* elem );
|
||||
/* Add an element to an XArray. Element is copied into the XArray.
|
||||
Index at which it was added is returned. Note this will be
|
||||
invalidated if the array is later sortXA'd. */
|
||||
extern Int VG_(addToXA) ( XArray*, void* elem );
|
||||
|
||||
/* Sort an XArray using its comparison function, if set; else bomb.
|
||||
Probably not a stable sort w.r.t. equal elements module cmpFn. */
|
||||
|
||||
Reference in New Issue
Block a user