"Stephen R. van den Berg" srb@cuci.nl wrote:
if((THIS->foo=foo)) { debug_malloc_touch(THIS->foo);
I suggest replacing this bit with the move_svalue macro:
if (foo) { move_svalue (THIS->foo, foo);
It has some debug stuff to detect if the old svalue is used later by mistake, but more importantly it's good for code clarity.