(&rb_leaveok),
(&rbncurs_leaveok),
static void init_functions_2(void) {    rb_define_module_function(mNcurses, "addch",                              (&rb_addch),                              1);    rb_define_module_function(mNcurses, "addchnstr",                              (&rb_addchnstr),                              2);    rb_define_module_function(mNcurses, "addchstr",                              (&rb_addchstr),                              1);    rb_define_module_function(mNcurses, "addnstr",                              (&rb_addnstr),                              2);    rb_define_module_function(mNcurses, "addstr",                              (&rb_addstr),                              1);    rb_define_module_function(mNcurses, "attroff",                              (&rb_attroff),                              1);    rb_define_module_function(mNcurses, "attron",                              (&rb_attron),                              1);    rb_define_module_function(mNcurses, "attrset",                              (&rb_attrset),                              1);#ifdef HAVE_ATTR_OFF    rb_define_module_function(mNcurses, "attr_off",                              (&rb_attr_off),                              2);#endif#ifdef HAVE_ATTR_ON    rb_define_module_function(mNcurses, "attr_on",                              (&rb_attr_on),                              2);#endif#ifdef HAVE_ATTR_SET    rb_define_module_function(mNcurses, "attr_set",                              (&rb_attr_set),                              3);#endif    rb_define_module_function(mNcurses, "baudrate",                              (&rb_baudrate),                              0);    rb_define_module_function(mNcurses, "beep",                              (&rb_beep),                              0);    rb_define_module_function(mNcurses, "bkgd",                              (&rb_bkgd),                              1);    rb_define_module_function(mNcurses, "bkgdset",                              (&rb_bkgdset),                              1);    rb_define_module_function(mNcurses, "border",                              (&rb_border),                              8);    rb_define_module_function(mNcurses, "box",                              (&rb_box),                              3);    rb_define_module_function(mNcurses, "can_change_color?",                              (&rb_can_change_color),                              0);    rb_define_module_function(mNcurses, "cbreak",                              (&rb_cbreak),                              0);#ifdef HAVE_CHGAT    rb_define_module_function(mNcurses, "chgat",                              (&rb_chgat),                              4);#endif    rb_define_module_function(mNcurses, "clear",                              (&rb_clear),                              0);    rb_define_module_function(mNcurses, "clearok",                              (&rb_clearok),                              2);    rb_define_module_function(mNcurses, "clrtobot",                              (&rb_clrtobot),                              0);    rb_define_module_function(mNcurses, "clrtoeol",                              (&rb_clrtoeol),                              0);#ifdef HAVE_COLOR_SET    rb_define_module_function(mNcurses, "color_set",                              (&rb_color_set),                              2);#endif    rb_define_module_function(mNcurses, "COLOR_PAIR",                              (&rb_COLOR_PAIR),                              1);    rb_define_module_function(mNcurses, "copywin",                              (&rb_copywin),                              9);    rb_define_module_function(mNcurses, "curs_set",                              (&rb_curs_set),                              1);    rb_define_module_function(mNcurses, "def_prog_mode",                              (&rb_def_prog_mode),                              0);    rb_define_module_function(mNcurses, "def_shell_mode",                              (&rb_def_shell_mode),                              0);    rb_define_module_function(mNcurses, "delay_output",                              (&rb_delay_output),                              1);    rb_define_module_function(mNcurses, "delch",                              (&rb_delch),                              0);    rb_define_module_function(mNcurses, "deleteln",                              (&rb_deleteln),                              0);    rb_define_module_function(mNcurses, "derwin",                              (&rb_derwin),                              5);    rb_define_module_function(mNcurses, "doupdate",                              (&rb_doupdate),                              0);    rb_define_module_function(mNcurses, "dupwin",                              (&rb_dupwin),                              1);    rb_define_module_function(mNcurses, "echo",                              (&rb_echo),                              0);    rb_define_module_function(mNcurses, "echochar",                              (&rb_echochar),                              1);    rb_define_module_function(mNcurses, "endwin",                              (&rb_endwin),                              0);    rb_define_module_function(mNcurses, "erasechar",                              (&rb_erasechar),                              0);#ifdef HAVE_FILTER    rb_define_module_function(mNcurses, "filter",                              (&rb_filter),                              0);#endif    rb_define_module_function(mNcurses, "flash",                              (&rb_flash),                              0);    rb_define_module_function(mNcurses, "flushinp",                              (&rb_flushinp),                              0);    rb_define_module_function(mNcurses, "getbkgd",                              (&rb_getbkgd),                              1);    rb_define_module_function(mNcurses, "getch",                              (&rb_getch),                              0);    rb_define_module_function(mNcurses, "halfdelay",                              (&rb_halfdelay),                              1);    rb_define_module_function(mNcurses, "has_colors?",                              (&rb_has_colors),                              0);    rb_define_module_function(mNcurses, "has_ic?",                              (&rb_has_ic),                              0);    rb_define_module_function(mNcurses, "has_il?",                              (&rb_has_il),                              0);    rb_define_module_function(mNcurses, "hline",                              (&rb_hline),                              2);    rb_define_module_function(mNcurses, "idcok",                              (&rb_idcok),                              2);    rb_define_module_function(mNcurses, "idlok",                              (&rb_idlok),                              2);    rb_define_module_function(mNcurses, "immedok",                              (&rb_immedok),                              2);    rb_define_module_function(mNcurses, "inch",                              (&rb_inch),                              0);    rb_define_module_function(mNcurses, "initscr",                              (&rb_initscr),                              0);    rb_define_module_function(mNcurses, "init_color",                              (&rb_init_color),                              4);    rb_define_module_function(mNcurses, "init_pair",                              (&rb_init_pair),                              3);    rb_define_module_function(mNcurses, "insch",                              (&rb_insch),                              1);    rb_define_module_function(mNcurses, "insdelln",                              (&rb_insdelln),                              1);    rb_define_module_function(mNcurses, "insertln",                              (&rb_insertln),                              0);    rb_define_module_function(mNcurses, "insnstr",                              (&rb_insnstr),                              2);    rb_define_module_function(mNcurses, "insstr",                              (&rb_insstr),                              1);#ifdef HAVE_INTRFLUSH    rb_define_module_function(mNcurses, "intrflush",                              (&rb_intrflush),                              2);#endif    rb_define_module_function(mNcurses, "isendwin?",                              (&rb_isendwin),                              0);    rb_define_module_function(mNcurses, "is_linetouched?",                              (&rb_is_linetouched),                              2);    rb_define_module_function(mNcurses, "is_wintouched?",                              (&rb_is_wintouched),                              1);    rb_define_module_function(mNcurses, "keyname",                              (&rb_keyname),                              1);    rb_define_module_function(mNcurses, "keypad",                              (&rb_keypad),                              2);    rb_define_module_function(mNcurses, "killchar",                              (&rb_killchar),                              0);    rb_define_module_function(mNcurses, "leaveok",                              (&rb_leaveok),                              2);    rb_define_module_function(mNcurses, "longname",                              (&rb_longname),                              0);    rb_define_module_function(mNcurses, "meta",                              (&rb_meta),                              2);    rb_define_module_function(mNcurses, "move",                              (&rb_move),                              2);    rb_define_module_function(mNcurses, "mvaddch",                              (&rb_mvaddch),                              3);    rb_define_module_function(mNcurses, "mvaddchnstr",                              (&rb_mvaddchnstr),                              4);    rb_define_module_function(mNcurses, "mvaddchstr",                              (&rb_mvaddchstr),                              3);    rb_define_module_function(mNcurses, "mvaddnstr",                              (&rb_mvaddnstr),                              4);    rb_define_module_function(mNcurses, "mvaddstr",                              (&rb_mvaddstr),                              3);#ifdef HAVE_MVCHGAT    rb_define_module_function(mNcurses, "mvchgat",                              (&rb_mvchgat),                              6);#endif    rb_define_module_function(mNcurses, "mvcur",                              (&rb_mvcur),                              4);    rb_define_module_function(mNcurses, "mvdelch",                              (&rb_mvdelch),                              2);    rb_define_module_function(mNcurses, "mvderwin",                              (&rb_mvderwin),                              3);    rb_define_module_function(mNcurses, "mvgetch",                              (&rb_mvgetch),                              2);#ifdef HAVE_MVHLINE    rb_define_module_function(mNcurses, "mvhline",                              (&rb_mvhline),                              4);#endif    rb_define_module_function(mNcurses, "mvinch",                              (&rb_mvinch),                              2);    rb_define_module_function(mNcurses, "mvinsch",                              (&rb_mvinsch),                              3);    rb_define_module_function(mNcurses, "mvinsnstr",                              (&rb_mvinsnstr),                              4);    rb_define_module_function(mNcurses, "mvinsstr",                              (&rb_mvinsstr),                              3);#ifdef HAVE_MVVLINE    rb_define_module_function(mNcurses, "mvvline",                              (&rb_mvvline),                              4);#endif    rb_define_module_function(mNcurses, "mvwaddch",                              (&rb_mvwaddch),                              4);    rb_define_module_function(mNcurses, "mvwaddchnstr",                              (&rb_mvwaddchnstr),                              5);    rb_define_module_function(mNcurses, "mvwaddchstr",                              (&rb_mvwaddchstr),                              4);    rb_define_module_function(mNcurses, "mvwaddnstr",                              (&rb_mvwaddnstr),                              5);    rb_define_module_function(mNcurses, "mvwaddstr",                              (&rb_mvwaddstr),                              4);#ifdef HAVE_MVWCHGAT    rb_define_module_function(mNcurses, "mvwchgat",                              (&rb_mvwchgat),                              7);#endif    rb_define_module_function(mNcurses, "mvwdelch",                              (&rb_mvwdelch),                              3);    rb_define_module_function(mNcurses, "mvwgetch",                              (&rb_mvwgetch),                              3);#ifdef HAVE_MVWHLINE    rb_define_module_function(mNcurses, "mvwhline",                              (&rb_mvwhline),                              5);#endif    rb_define_module_function(mNcurses, "mvwin",                              (&rb_mvwin),                              3);    rb_define_module_function(mNcurses, "mvwinch",                              (&rb_mvwinch),                              3);    rb_define_module_function(mNcurses, "mvwinsch",                              (&rb_mvwinsch),                              4);    rb_define_module_function(mNcurses, "mvwinsnstr",                              (&rb_mvwinsnstr),                              5);    rb_define_module_function(mNcurses, "mvwinsstr",                              (&rb_mvwinsstr),                              4);#ifdef HAVE_MVWVLINE    rb_define_module_function(mNcurses, "mvwvline",                              (&rb_mvwvline),                              5);#endif    rb_define_module_function(mNcurses, "napms",                              (&rb_napms),                              1);    rb_define_module_function(mNcurses, "newpad",                              (&rb_newpad),                              2);    rb_define_module_function(mNcurses, "newwin",                              (&rb_newwin),                              4);    rb_define_module_function(mNcurses, "nl",                              (&rb_nl),                              0);    rb_define_module_function(mNcurses, "nocbreak",                              (&rb_nocbreak),                              0);    rb_define_module_function(mNcurses, "nodelay",                              (&rb_nodelay),                              2);    rb_define_module_function(mNcurses, "noecho",                              (&rb_noecho),                              0);    rb_define_module_function(mNcurses, "nonl",                              (&rb_nonl),                              0);#ifdef HAVE_NOQIFLUSH    rb_define_module_function(mNcurses, "noqiflush",                              (&rb_noqiflush),                              0);#endif    rb_define_module_function(mNcurses, "noraw",                              (&rb_noraw),                              0);    rb_define_module_function(mNcurses, "notimeout",                              (&rb_notimeout),                              2);    rb_define_module_function(mNcurses, "overlay",                              (&rb_overlay),                              2);    rb_define_module_function(mNcurses, "overwrite",                              (&rb_overwrite),                              2);    rb_define_module_function(mNcurses, "PAIR_NUMBER",                              (&rb_PAIR_NUMBER),                              1);#ifdef HAVE_PECHOCHAR    rb_define_module_function(mNcurses, "pechochar",                              (&rb_pechochar),                              2);#endif    rb_define_module_function(mNcurses, "pnoutrefresh",                              (&rb_pnoutrefresh),                              7);    rb_define_module_function(mNcurses, "prefresh",                              (&rb_prefresh),                              7);#ifdef HAVE_PUTP    rb_define_module_function(mNcurses, "putp",                              (&rb_putp),                              1);#endif#ifdef HAVE_QIFLUSH    rb_define_module_function(mNcurses, "qiflush",                              (&rb_qiflush),                              0);#endif    rb_define_module_function(mNcurses, "raw",                              (&rb_raw),                              0);#ifdef HAVE_REDRAWWIN    rb_define_module_function(mNcurses, "redrawwin",                              (&rb_redrawwin),                              1);#endif    rb_define_module_function(mNcurses, "refresh",                              (&rb_refresh),                              0);    rb_define_module_function(mNcurses, "resetty",                              (&rb_resetty),                              0);    rb_define_module_function(mNcurses, "reset_prog_mode",                              (&rb_reset_prog_mode),                              0);    rb_define_module_function(mNcurses, "reset_shell_mode",                              (&rb_reset_shell_mode),                              0);    rb_define_module_function(mNcurses, "savetty",                              (&rb_savetty),                              0);#ifdef HAVE_SCR_DUMP    rb_define_module_function(mNcurses, "scr_dump",                              (&rb_scr_dump),                              1);#endif#ifdef HAVE_SCR_INIT    rb_define_module_function(mNcurses, "scr_init",                              (&rb_scr_init),                              1);#endif    rb_define_module_function(mNcurses, "scrl",                              (&rb_scrl),                              1);    rb_define_module_function(mNcurses, "scroll",                              (&rb_scroll),                              1);    rb_define_module_function(mNcurses, "scrollok",                              (&rb_scrollok),                              2);#ifdef HAVE_SCR_RESTORE    rb_define_module_function(mNcurses, "scr_restore",                              (&rb_scr_restore),                              1);#endif#ifdef HAVE_SCR_SET    rb_define_module_function(mNcurses, "scr_set",                              (&rb_scr_set),                              1);#endif    rb_define_module_function(mNcurses, "setscrreg",                              (&rb_setscrreg),                              2);    rb_define_module_function(mNcurses, "set_term",                              (&rb_set_term),                              1);    rb_define_module_function(mNcurses, "slk_attroff",                              (&rb_slk_attroff),                              1);#if defined(HAVE_SLK_ATTR_OFF) || defined(slk_attr_off)    rb_define_module_function(mNcurses, "slk_attr_off",                              (&rb_slk_attr_off),                              2);#endif    rb_define_module_function(mNcurses, "slk_attron",                              (&rb_slk_attron),                              1);#if defined(HAVE_SLK_ATTR_ON) || defined(slk_attr_on)    rb_define_module_function(mNcurses, "slk_attr_on",                              (&rb_slk_attr_on),                              2);#endif    rb_define_module_function(mNcurses, "slk_attrset",                              (&rb_slk_attrset),                              1);#ifdef HAVE_SLK_ATTR    rb_define_module_function(mNcurses, "slk_attr",                              (&rb_slk_attr),                              0);#endif#ifdef HAVE_SLK_ATTR_SET    rb_define_module_function(mNcurses, "slk_attr_set",                              (&rb_slk_attr_set),                              3);#endif    rb_define_module_function(mNcurses, "slk_clear",                              (&rb_slk_clear),                              0);#ifdef HAVE_SLK_COLOR    rb_define_module_function(mNcurses, "slk_color",                              (&rb_slk_color),                              1);#endif    rb_define_module_function(mNcurses, "slk_init",                              (&rb_slk_init),                              1);    rb_define_module_function(mNcurses, "slk_label",                              (&rb_slk_label),                              1);    rb_define_module_function(mNcurses, "slk_noutrefresh",                              (&rb_slk_noutrefresh),                              0);    rb_define_module_function(mNcurses, "slk_refresh",                              (&rb_slk_refresh),                              0);    rb_define_module_function(mNcurses, "slk_restore",                              (&rb_slk_restore),                              0);    rb_define_module_function(mNcurses, "slk_set",                              (&rb_slk_set),                              3);    rb_define_module_function(mNcurses, "slk_touch",                              (&rb_slk_touch),                              0);    rb_define_module_function(mNcurses, "standout",                              (&rb_standout),                              0);    rb_define_module_function(mNcurses, "standend",                              (&rb_standend),                              0);    rb_define_module_function(mNcurses, "start_color",                              (&rb_start_color),                              0);    rb_define_module_function(mNcurses, "subpad",                              (&rb_subpad),                              5);    rb_define_module_function(mNcurses, "subwin",                              (&rb_subwin),                              5);    rb_define_module_function(mNcurses, "syncok",                              (&rb_syncok),                              2);    rb_define_module_function(mNcurses, "termattrs",                              (&rb_termattrs),                              0);    rb_define_module_function(mNcurses, "termname",                              (&rb_termname),                              0);#ifdef HAVE_TIGETFLAG    rb_define_module_function(mNcurses, "tigetflag",                              (&rb_tigetflag),                              1);#endif#ifdef HAVE_TIGETNUM    rb_define_module_function(mNcurses, "tigetnum",                              (&rb_tigetnum),                              1);#endif#ifdef HAVE_TIGETSTR    rb_define_module_function(mNcurses, "tigetstr",                              (&rb_tigetstr),                              1);#endif    rb_define_module_function(mNcurses, "timeout",                              (&rb_timeout),                              1);    rb_define_module_function(mNcurses, "typeahead",                              (&rb_typeahead),                              1);    rb_define_module_function(mNcurses, "ungetch",                              (&rb_ungetch),                              1);    rb_define_module_function(mNcurses, "untouchwin",                              (&rb_untouchwin),                              1);#ifdef HAVE_USE_ENV    rb_define_module_function(mNcurses, "use_env",                              (&rb_use_env),                              1);#endif#ifdef HAVE_VIDATTR    rb_define_module_function(mNcurses, "vidattr",                              (&rb_vidattr),                              1);#endif#if defined (HAVE_VID_ATTR) || defined(vid_attr)    rb_define_module_function(mNcurses, "vid_attr",                              (&rb_vid_attr),                              3);#endif    rb_define_module_function(mNcurses, "vline",                              (&rb_vline),                              2);    rb_define_module_function(mNcurses, "waddch",                              (&rb_waddch),                              2);    rb_define_module_function(mNcurses, "waddchnstr",                              (&rb_waddchnstr),                              3);    rb_define_module_function(mNcurses, "waddchstr",                              (&rb_waddchstr),                              2);    rb_define_module_function(mNcurses, "waddnstr",                              (&rb_waddnstr),                              3);    rb_define_module_function(mNcurses, "waddstr",                              (&rb_waddstr),                              2);    rb_define_module_function(mNcurses, "wattron",                              (&rb_wattron),                              2);    rb_define_module_function(mNcurses, "wattroff",                              (&rb_wattroff),                              2);    rb_define_module_function(mNcurses, "wattrset",                              (&rb_wattrset),                              2); #ifdef HAVE_WATTR_ON   rb_define_module_function(mNcurses, "wattr_on",                              (&rb_wattr_on),                              3);#endif#ifdef HAVE_WATTR_OFF    rb_define_module_function(mNcurses, "wattr_off",                              (&rb_wattr_off),                              3);#endif#ifdef HAVE_WATTR_SET    rb_define_module_function(mNcurses, "wattr_set",                              (&rb_wattr_set),                              4);#endif    rb_define_module_function(mNcurses, "wbkgd",                              (&rb_wbkgd),                              2);    rb_define_module_function(mNcurses, "wbkgdset",                              (&rb_wbkgdset),                              2);    rb_define_module_function(mNcurses, "wborder",                              (&rb_wborder),                              9);#ifdef HAVE_WCHGAT    rb_define_module_function(mNcurses, "wchgat",                              (&rb_wchgat),                              5);#endif    rb_define_module_function(mNcurses, "wclear",                              (&rb_wclear),                              1);    rb_define_module_function(mNcurses, "wclrtobot",                              (&rb_wclrtobot),                              1);    rb_define_module_function(mNcurses, "wclrtoeol",                              (&rb_wclrtoeol),                              1);#ifdef HAVE_WCOLOR_SET    rb_define_module_function(mNcurses, "wcolor_set",                              (&rb_wcolor_set),                              3);#endif    rb_define_module_function(mNcurses, "wcursyncup",                              (&rb_wcursyncup),                              1);    rb_define_module_function(mNcurses, "wdelch",                              (&rb_wdelch),                              1);    rb_define_module_function(mNcurses, "wdeleteln",                              (&rb_wdeleteln),                              1);    rb_define_module_function(mNcurses, "wechochar",                              (&rb_wechochar),                              2);    rb_define_module_function(mNcurses, "werase",                              (&rb_werase),                              1);    rb_define_module_function(mNcurses, "wgetch",                              (&rb_wgetch),                              1);    rb_define_module_function(mNcurses, "whline",                              (&rb_whline),                              3);    rb_define_module_function(mNcurses, "winch",                              (&rb_winch),                              1);    rb_define_module_function(mNcurses, "winsch",                              (&rb_winsch),                              2);    rb_define_module_function(mNcurses, "winsdelln",                              (&rb_winsdelln),                              2);    rb_define_module_function(mNcurses, "winsertln",                              (&rb_winsertln),                              1);    rb_define_module_function(mNcurses, "winsnstr",                              (&rb_winsnstr),                              3);    rb_define_module_function(mNcurses, "winsstr",                              (&rb_winsstr),                              2);    rb_define_module_function(mNcurses, "wmove",                              (&rb_wmove),                              3);    rb_define_module_function(mNcurses, "wnoutrefresh",                              (&rb_wnoutrefresh),                              1);    rb_define_module_function(mNcurses, "wredrawln",                              (&rb_wredrawln),                              3);    rb_define_module_function(mNcurses, "wrefresh",                              (&rb_wrefresh),                              1);    rb_define_module_function(mNcurses, "wscrl",                              (&rb_wscrl),                              2);    rb_define_module_function(mNcurses, "wsetscrreg",                              (&rb_wsetscrreg),                              3);    rb_define_module_function(mNcurses, "wstandout",                              (&rb_wstandout),                              1);    rb_define_module_function(mNcurses, "wstandend",                              (&rb_wstandend),                              1);    rb_define_module_function(mNcurses, "wsyncdown",                              (&rb_wsyncdown),                              1);    rb_define_module_function(mNcurses, "wsyncup",                              (&rb_wsyncup),                              1);    rb_define_module_function(mNcurses, "wtimeout",                              (&rb_wtimeout),                              2);    rb_define_module_function(mNcurses, "wtouchln",                              (&rb_wtouchln),                              4);    rb_define_module_function(mNcurses, "wvline",                              (&rb_wvline),                              3);    rb_define_module_function(mNcurses, "color_content",                              (&rb_color_content), 4);    rb_define_module_function(mNcurses, "pair_content",                              (&rb_pair_content), 3);    rb_define_module_function(mNcurses, "pair_content",                              (&rb_pair_content), 3);#ifdef HAVE_GETWIN    rb_define_module_function(mNcurses, "getwin",                              (&rb_getwin), 1);#endif#ifdef HAVE_PUTWIN    rb_define_module_function(mNcurses, "putwin",                              (&rb_putwin), 2);#endif    rb_define_module_function(mNcurses, "unctrl",                              (&rb_unctrl), 1);    rb_define_module_function(mNcurses, "newterm",                              (&rb_newterm), 3);}