C macros from back-of-the-textbook data