update macro table entries on (un)definitions of macros