• marko's avatar
    Merge r1815:1817 from branches/zip: Improve Valgrind instrumentation. · d71dd22e
    marko authored
    UNIV_MEM_ASSERT_RW(): New macro, to check that the contents of a memory
    area is defined.
    
    UNIV_MEM_ASSERT_W(): New macro, to check that a memory area is writable.
    
    UNIV_MEM_ASSERT_AND_FREE(): New macro, to check that the memory is
    writable before declaring it free (unwritable).  This replaces UNIV_MEM_FREE()
    in many places.
    
    mem_init_buf(): Check that the memory is writable, and declare it undefined.
    
    mem_erase_buf(): Check that the memory is writable, and declare it freed.
    d71dd22e
univ.i 9.77 KB