-extern int addch(const chtype); /* generated */
-extern int addchnstr(const chtype *, int); /* generated */
-extern int addchstr(const chtype *); /* generated */
-extern int addnstr(const char *, int); /* generated */
-extern int addstr(const char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int addnwstr(const wchar_t *, int); /* missing */
-extern int addwstr(const wchar_t *); /* missing */
-extern int add_wch(const cchar_t *); /* missing */
-extern int add_wchnstr(const cchar_t *, int); /* missing */
-extern int add_wchstr(const cchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int attroff(NCURSES_ATTR_T); /* generated */
-extern int attron(NCURSES_ATTR_T); /* generated */
-extern int attrset(NCURSES_ATTR_T); /* generated */
-extern int attr_get(attr_t *, short *, void *); /* generated */
-extern int attr_off(attr_t, void *); /* generated */
-extern int attr_on(attr_t, void *); /* generated */
-extern int attr_set(attr_t, short, void *); /* generated */
-extern int baudrate(void); /* implemented */
-extern int beep(void); /* implemented */
-extern int bkgd(chtype); /* generated */
-extern void bkgdset(chtype); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern void bkgrndset(const cchar_t *); /* missing */
-extern int bkgrnd(const cchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int border(chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int border_set(const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int box(WINDOW *, chtype, chtype); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int box_set(WINDOW *, const cchar_t *, const cchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern bool can_change_color(void); /* implemented */
-extern int cbreak(void); /* implemented */
-extern int chgat(int, attr_t, short, const void *); /* generated */
-extern int clear(void); /* generated */
-extern int clearok(WINDOW *,bool); /* implemented */
-extern int clrtobot(void); /* generated */
-extern int clrtoeol(void); /* generated */
-extern int color_content(short,short*,short*,short*); /* implemented */
-extern int color_set(short,void*); /* generated */
-extern int COLOR_PAIR(int); /* generated */
-extern int copywin(const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */
-extern int curs_set(int); /* implemented */
-extern int def_prog_mode(void); /* implemented */
-extern int def_shell_mode(void); /* implemented */
-extern int delay_output(int); /* implemented */
-extern int delch(void); /* generated */
-extern void delscreen(SCREEN *); /* implemented */
-extern int delwin(WINDOW *); /* implemented */
-extern int deleteln(void); /* generated */
-extern WINDOW *derwin(WINDOW *,int,int,int,int); /* implemented */
-extern int doupdate(void); /* implemented */
-extern WINDOW *dupwin(WINDOW *); /* implemented */
-extern int echo(void); /* implemented */
-extern int echochar(const chtype); /* generated */
-extern int erase(void); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int echo_wchar(const cchar_t *); /* missing */
-extern int erasewchar(wchar_t*); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int endwin(void); /* implemented */
-extern char erasechar(void); /* implemented */
-extern void filter(void); /* implemented */
-extern int flash(void); /* implemented */
-extern int flushinp(void); /* implemented */
-extern chtype getbkgd(WINDOW *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int getbkgrnd(cchar_t *); /* missing */
-extern int getcchar(const cchar_t *, wchar_t*, attr_t*, short*, void*); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int getch(void); /* generated */
-extern int getnstr(char *, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int getn_wstr(wint_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int getstr(char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int get_wch(wint_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern WINDOW *getwin(FILE *); /* implemented */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int get_wstr(wint_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int halfdelay(int); /* implemented */
-extern bool has_colors(void); /* implemented */
-extern bool has_ic(void); /* implemented */
-extern bool has_il(void); /* implemented */
-extern int hline(chtype, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int hline_set(const cchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern void idcok(WINDOW *, bool); /* implemented */
-extern int idlok(WINDOW *, bool); /* implemented */
-extern void immedok(WINDOW *, bool); /* implemented */
-extern chtype inch(void); /* generated */
-extern int inchnstr(chtype *, int); /* generated */
-extern int inchstr(chtype *); /* generated */
-extern WINDOW *initscr(void); /* implemented */
-extern int init_color(short,short,short,short); /* implemented */
-extern int init_pair(short,short,short); /* implemented */
-extern int innstr(char *, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int innwstr(wchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int insch(chtype); /* generated */
-extern int insdelln(int); /* generated */
-extern int insertln(void); /* generated */
-extern int insnstr(const char *, int); /* generated */
-extern int insstr(const char *); /* generated */
-extern int instr(char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int ins_nwstr(const wchar_t *, int); /* missing */
-extern int ins_wch(const cchar_t *); /* missing */
-extern int ins_wstr(const wchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int intrflush(WINDOW *,bool); /* implemented */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int inwstr(wchar_t *); /* missing */
-extern int in_wch(NCURSES_CONST cchar_t *); /* missing */
-extern int in_wchstr(NCURSES_CONST cchar_t *); /* missing */
-extern int in_wchnstr(NCURSES_CONST cchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern bool isendwin(void); /* implemented */
-extern bool is_linetouched(WINDOW *,int); /* implemented */
-extern bool is_wintouched(WINDOW *); /* implemented */
-extern NCURSES_CONST char *keyname(int); /* implemented */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern char *key_name(wchar_t); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int keypad(WINDOW *,bool); /* implemented */
-extern char killchar(void); /* implemented */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int killwchar(wchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int leaveok(WINDOW *,bool); /* implemented */
-extern char *longname(void); /* implemented */
-extern int meta(WINDOW *,bool); /* implemented */
-extern int move(int, int); /* generated */
-extern int mvaddch(int, int, const chtype); /* generated */
-extern int mvaddchnstr(int, int, const chtype *, int); /* generated */
-extern int mvaddchstr(int, int, const chtype *); /* generated */
-extern int mvaddnstr(int, int, const char *, int); /* generated */
-extern int mvaddstr(int, int, const char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvaddnwstr(int, int, const wchar_t *, int); /* missing */
-extern int mvaddwstr(int, int, const wchar_t *); /* missing */
-extern int mvadd_wch(int, int, const cchar_t *); /* missing */
-extern int mvadd_wchnstr(int, int, const cchar_t *, int);/* missing */
-extern int mvadd_wchstr(int, int, const cchar_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvchgat(int, int, int, attr_t, short, const void *); /* generated */
-extern int mvcur(int,int,int,int); /* implemented */
-extern int mvdelch(int, int); /* generated */
-extern int mvderwin(WINDOW *, int, int); /* implemented */
-extern int mvgetch(int, int); /* generated */
-extern int mvgetnstr(int, int, char *, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvgetn_wstr(int, int, wint_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvgetstr(int, int, char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvget_wch(int, int, wint_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvget_wstr(int, int, wint_t *); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvhline(int, int, chtype, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvhline_set(int, int, const cchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern chtype mvinch(int, int); /* generated */
-extern int mvinchnstr(int, int, chtype *, int); /* generated */
-extern int mvinchstr(int, int, chtype *); /* generated */
-extern int mvinnstr(int, int, char *, int); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvinnwstr(int, int, wchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvinsch(int, int, chtype); /* generated */
-extern int mvinsnstr(int, int, const char *, int); /* generated */
-extern int mvinsstr(int, int, const char *); /* generated */
-extern int mvinstr(int, int, char *); /* generated */
-#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvins_nwstr(int, int, const wchar_t *, int); /* missing */
-extern int mvins_wch(int, int, const cchar_t *); /* missing */
-extern int mvins_wstr(int, int, const wchar_t *); /* missing */
-extern int mvinwstr(int, int, wchar_t *); /* missing */
-extern int mvin_wch(int, int, NCURSES_CONST cchar_t *); /* missing */
-extern int mvin_wchstr(int, int, NCURSES_CONST cchar_t *); /* missing */
-extern int mvin_wchnstr(int, int, NCURSES_CONST cchar_t *, int); /* missing */
-#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvprintw(int,int, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) addch (const chtype); /* generated */
+extern NCURSES_EXPORT(int) addchnstr (const chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) addchstr (const chtype *); /* generated */
+extern NCURSES_EXPORT(int) addnstr (const char *, int); /* generated */
+extern NCURSES_EXPORT(int) addstr (const char *); /* generated */
+extern NCURSES_EXPORT(int) attroff (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attron (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attrset (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attr_get (attr_t *, short *, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_off (attr_t, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_on (attr_t, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_set (attr_t, short, void *); /* generated */
+extern NCURSES_EXPORT(int) baudrate (void); /* implemented */
+extern NCURSES_EXPORT(int) beep (void); /* implemented */
+extern NCURSES_EXPORT(int) bkgd (chtype); /* generated */
+extern NCURSES_EXPORT(void) bkgdset (chtype); /* generated */
+extern NCURSES_EXPORT(int) border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */
+extern NCURSES_EXPORT(int) box (WINDOW *, chtype, chtype); /* generated */
+extern NCURSES_EXPORT(bool) can_change_color (void); /* implemented */
+extern NCURSES_EXPORT(int) cbreak (void); /* implemented */
+extern NCURSES_EXPORT(int) chgat (int, attr_t, short, const void *); /* generated */
+extern NCURSES_EXPORT(int) clear (void); /* generated */
+extern NCURSES_EXPORT(int) clearok (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) clrtobot (void); /* generated */
+extern NCURSES_EXPORT(int) clrtoeol (void); /* generated */
+extern NCURSES_EXPORT(int) color_content (short,short*,short*,short*); /* implemented */
+extern NCURSES_EXPORT(int) color_set (short,void*); /* generated */
+extern NCURSES_EXPORT(int) COLOR_PAIR (int); /* generated */
+extern NCURSES_EXPORT(int) copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) curs_set (int); /* implemented */
+extern NCURSES_EXPORT(int) def_prog_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) def_shell_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) delay_output (int); /* implemented */
+extern NCURSES_EXPORT(int) delch (void); /* generated */
+extern NCURSES_EXPORT(void) delscreen (SCREEN *); /* implemented */
+extern NCURSES_EXPORT(int) delwin (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) deleteln (void); /* generated */
+extern NCURSES_EXPORT(WINDOW *) derwin (WINDOW *,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) doupdate (void); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) dupwin (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) echo (void); /* implemented */
+extern NCURSES_EXPORT(int) echochar (const chtype); /* generated */
+extern NCURSES_EXPORT(int) erase (void); /* generated */
+extern NCURSES_EXPORT(int) endwin (void); /* implemented */
+extern NCURSES_EXPORT(char) erasechar (void); /* implemented */
+extern NCURSES_EXPORT(void) filter (void); /* implemented */
+extern NCURSES_EXPORT(int) flash (void); /* implemented */
+extern NCURSES_EXPORT(int) flushinp (void); /* implemented */
+extern NCURSES_EXPORT(chtype) getbkgd (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) getch (void); /* generated */
+extern NCURSES_EXPORT(int) getnstr (char *, int); /* generated */
+extern NCURSES_EXPORT(int) getstr (char *); /* generated */
+extern NCURSES_EXPORT(WINDOW *) getwin (FILE *); /* implemented */
+extern NCURSES_EXPORT(int) halfdelay (int); /* implemented */
+extern NCURSES_EXPORT(bool) has_colors (void); /* implemented */
+extern NCURSES_EXPORT(bool) has_ic (void); /* implemented */
+extern NCURSES_EXPORT(bool) has_il (void); /* implemented */
+extern NCURSES_EXPORT(int) hline (chtype, int); /* generated */
+extern NCURSES_EXPORT(void) idcok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(int) idlok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(void) immedok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(chtype) inch (void); /* generated */
+extern NCURSES_EXPORT(int) inchnstr (chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) inchstr (chtype *); /* generated */
+extern NCURSES_EXPORT(WINDOW *) initscr (void); /* implemented */
+extern NCURSES_EXPORT(int) init_color (short,short,short,short); /* implemented */
+extern NCURSES_EXPORT(int) init_pair (short,short,short); /* implemented */
+extern NCURSES_EXPORT(int) innstr (char *, int); /* generated */
+extern NCURSES_EXPORT(int) insch (chtype); /* generated */
+extern NCURSES_EXPORT(int) insdelln (int); /* generated */
+extern NCURSES_EXPORT(int) insertln (void); /* generated */
+extern NCURSES_EXPORT(int) insnstr (const char *, int); /* generated */
+extern NCURSES_EXPORT(int) insstr (const char *); /* generated */
+extern NCURSES_EXPORT(int) instr (char *); /* generated */
+extern NCURSES_EXPORT(int) intrflush (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(bool) isendwin (void); /* implemented */
+extern NCURSES_EXPORT(bool) is_linetouched (WINDOW *,int); /* implemented */
+extern NCURSES_EXPORT(bool) is_wintouched (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
+extern NCURSES_EXPORT(int) keypad (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(char) killchar (void); /* implemented */
+extern NCURSES_EXPORT(int) leaveok (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(char *) longname (void); /* implemented */
+extern NCURSES_EXPORT(int) meta (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) move (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddch (int, int, const chtype); /* generated */
+extern NCURSES_EXPORT(int) mvaddchnstr (int, int, const chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddchstr (int, int, const chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvaddnstr (int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, short, const void *); /* generated */
+extern NCURSES_EXPORT(int) mvcur (int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) mvdelch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvderwin (WINDOW *, int, int); /* implemented */
+extern NCURSES_EXPORT(int) mvgetch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvgetnstr (int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvgetstr (int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvhline (int, int, chtype, int); /* generated */
+extern NCURSES_EXPORT(chtype) mvinch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvinchnstr (int, int, chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) mvinchstr (int, int, chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvinnstr (int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvinsch (int, int, chtype); /* generated */
+extern NCURSES_EXPORT(int) mvinsnstr (int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvinsstr (int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) mvinstr (int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvprintw (int,int, const char *,...) /* implemented */