jcs
/subtext
/amendments
/focusable.c
Amendments on March 2, 2023
jcs made amendment
339
about 1 year ago
Amendments on July 21, 2022
*: Use NewPtr instead of malloc, add malloc and free debugging
Instead of free(ptr), use xfree(&ptr) and after it calls
DisposePtr(ptr), it will update ptr to point at NULL to catch
use-after-frees.
When MALLOC_DEBUG is defined, each allocation is added to a
list, and removed when freed. If it's not in the list at free
time, it's a double-free. Also, instead of pointing pointers at
NULL, point them to a pre-defined block of zeroes and in the
idle loop, periodically check that this block is still zero. This
will also catch use-after-frees in a more reliable (but costly)
way.
Amendments on April 14, 2022
focusable: Move code to separate file, fix a bunch of bugs here
Fix drawing on the wrong window, drawing in the wrong font, crash at
exit, etc.
1