define macros for extended curses api