]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix Bug 404638 - Add VG_(replaceIndexXA)
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 16 Mar 2019 11:08:01 +0000 (12:08 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 16 Mar 2019 11:11:39 +0000 (12:11 +0100)
commit081c34ea477f1512944e704e0b6972604824b9be
treec97cf33d6623d368629b343e18bd845279197025
parent7e9113cb7a249e0fae2a365462c6b0164de11566
Fix Bug 404638 - Add VG_(replaceIndexXA)

Based on a patch from Ćukasz Marek.

Note that this function differs from:
   *(T*)VG_(indexXA)(arr, index) = new_value;
as the function will mark the array as unsorted.

Note that this function is currently unused in the current valgrind code basis,
but it is useful for tools outside of valgrind tree.
NEWS
coregrind/m_xarray.c
include/pub_tool_xarray.h