use qsort_r() when it is available - relates to #622

fix and simplify discovery of memrchr

huge refactoring of collections to add support for 3-arg compare functions

add tests for freeing memory with a reallocation of size zero

(0) -1000 -300 -100 -30 -10 -4 +4 +10 +30 tip

mercurial