]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/llib-lncurses
ncurses 4.2
[ncurses.git] / ncurses / llib-lncurses
index 0ca29b5e570ea10fc79f6ef1097bf7bf81c4cdca..9a58ee0e70743405c4a447bce022adf95a8b0016 100644 (file)
@@ -1,50 +1,64 @@
-/******************************************************************************
- * Copyright 1996,1997 by Thomas E. Dickey <dickey@clark.net>                 *
- * All Rights Reserved.                                                       *
- *                                                                            *
- * Permission to use, copy, modify, and distribute this software and its      *
- * documentation for any purpose and without fee is hereby granted, provided  *
- * that the above copyright notice appear in all copies and that both that    *
- * copyright notice and this permission notice appear in supporting           *
- * documentation, and that the name of the above listed copyright holder(s)   *
- * not be used in advertising or publicity pertaining to distribution of the  *
- * software without specific, written prior permission. THE ABOVE LISTED      *
- * COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,  *
- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO     *
- * EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY         *
- * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER       *
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF       *
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN        *
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.                   *
- ******************************************************************************/
+/****************************************************************************
+ * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ *                                                                          *
+ * Permission is hereby granted, free of charge, to any person obtaining a  *
+ * copy of this software and associated documentation files (the            *
+ * "Software"), to deal in the Software without restriction, including      *
+ * without limitation the rights to use, copy, modify, merge, publish,      *
+ * distribute, distribute with modifications, sublicense, and/or sell       *
+ * copies of the Software, and to permit persons to whom the Software is    *
+ * furnished to do so, subject to the following conditions:                 *
+ *                                                                          *
+ * The above copyright notice and this permission notice shall be included  *
+ * in all copies or substantial portions of the Software.                   *
+ *                                                                          *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
+ *                                                                          *
+ * Except as contained in this notice, the name(s) of the above copyright   *
+ * holders shall not be used in advertising or otherwise to promote the     *
+ * sale, use or other dealings in this Software without prior written       *
+ * authorization.                                                           *
+ ****************************************************************************/
+
+/****************************************************************************
+ *  Author: Thomas E. Dickey <dickey@clark.net> 1996,1997,1998              *
+ ****************************************************************************/
 /* LINTLIBRARY */
 
-/* ./fallback.c */
+/* ./hardscroll.c */
 
 #include <curses.priv.h>
-#include <term.h>
 
-#undef _nc_fallback
-const TERMTYPE *_nc_fallback(
-               const char *name)
-               { return(*(const TERMTYPE **)0); }
+#undef _nc_scroll_optimize
+void   _nc_scroll_optimize(void)
+               { /* void */ }
 
 /* ./hashmap.c */
 
+typedef struct
+{
+    unsigned long      hashval;
+    int                oldcount, newcount;
+    int                oldindex, newindex;
+}
+    sym;
+
 #undef _nc_hash_map
 void   _nc_hash_map(void)
                { /* void */ }
 
-/* ./hardscroll.c */
-
-#undef _nc_scroll_optimize
-void   _nc_scroll_optimize(void)
-               { /* void */ }
-
 /* ./lib_acs.c */
 
+#include <term.h>
+
 #undef acs_map
-chtype acs_map[128];
+chtype acs_map[128 ];
 
 #undef init_acs
 void   init_acs(void)
@@ -54,18 +68,6 @@ void init_acs(void)
 
 #include <ctype.h>
 
-#undef wattr_on
-int    wattr_on(
-               WINDOW  *win, 
-               const attr_t at)
-               { return(*(int *)0); }
-
-#undef wattr_off
-int    wattr_off(
-               WINDOW  *win, 
-               const attr_t at)
-               { return(*(int *)0); }
-
 #undef wchgat
 int    wchgat(
                WINDOW  *win, 
@@ -120,35 +122,37 @@ int       waddchnstr(
                int     n)
                { return(*(int *)0); }
 
+/* ./lib_baudrate.c */
+
+struct speed {
+       speed_t s;
+       int sp;
+};
+
+#undef baudrate
+int    baudrate(void)
+               { return(*(int *)0); }
+
 /* ./lib_beep.c */
 
 #undef beep
 int    beep(void)
                { return(*(int *)0); }
 
-#undef flash
-int    flash(void)
-               { return(*(int *)0); }
-
 /* ./lib_bkgd.c */
 
+#undef wbkgdset
+void   wbkgdset(
+               WINDOW  *win, 
+               chtype  ch)
+               { /* void */ }
+
 #undef wbkgd
 int    wbkgd(
                WINDOW  *win, 
                const chtype ch)
                { return(*(int *)0); }
 
-/* ./lib_baudrate.c */
-
-struct speed {
-       speed_t s;
-       int sp;
-};
-
-#undef baudrate
-int    baudrate(void)
-               { return(*(int *)0); }
-
 /* ./lib_box.c */
 
 #undef wborder
@@ -164,20 +168,6 @@ int        wborder(
                chtype  br)
                { return(*(int *)0); }
 
-#undef whline
-int    whline(
-               WINDOW  *win, 
-               chtype  ch, 
-               int     n)
-               { return(*(int *)0); }
-
-#undef wvline
-int    wvline(
-               WINDOW  *win, 
-               chtype  ch, 
-               int     n)
-               { return(*(int *)0); }
-
 /* ./lib_clear.c */
 
 #undef wclear
@@ -263,12 +253,8 @@ WINDOW     *stdscr;
 WINDOW *curscr;
 #undef newscr
 WINDOW *newscr;
-#undef _nc_windows
-struct _win_list *_nc_windows;
-#undef _nc_idcok
-bool   _nc_idcok;
-#undef _nc_idlok
-bool   _nc_idlok;
+#undef _nc_screen_chain
+SCREEN *_nc_screen_chain;
 #undef SP
 SCREEN *SP;
 
@@ -299,6 +285,31 @@ void       _nc_outstr(
                const char *str)
                { /* void */ }
 
+#undef _nc_scrolln
+int    _nc_scrolln(
+               int     n, 
+               int     top, 
+               int     bot, 
+               int     maxy)
+               { return(*(int *)0); }
+
+#undef _nc_screen_resume
+void   _nc_screen_resume(void)
+               { /* void */ }
+
+#undef _nc_screen_init
+void   _nc_screen_init(void)
+               { /* void */ }
+
+#undef _nc_screen_wrap
+void   _nc_screen_wrap(void)
+               { /* void */ }
+
+#undef _nc_do_xmc_glitch
+void   _nc_do_xmc_glitch(
+               attr_t  previous)
+               { /* void */ }
+
 /* ./lib_endwin.c */
 
 #undef endwin
@@ -312,9 +323,13 @@ int        werase(
                WINDOW  *win)
                { return(*(int *)0); }
 
-/* ./lib_gen.c */
+/* ./lib_flash.c */
 
-#include <curses.h>
+#undef flash
+int    flash(void)
+               { return(*(int *)0); }
+
+/* ./lib_gen.c */
 
 #undef addch
 int    addch(
@@ -345,17 +360,17 @@ int       addstr(
 
 #undef attroff
 int    attroff(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef attron
 int    attron(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef attrset
 int    attrset(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef attr_get
@@ -364,17 +379,17 @@ int       attr_get(void)
 
 #undef attr_off
 int    attr_off(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef attr_on
 int    attr_on(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef attr_set
 int    attr_set(
-               int     z)
+               NCURSES_ATTR_T  z)
                { return(*(int *)0); }
 
 #undef bkgd
@@ -952,12 +967,6 @@ int        wattr_set(
                attr_t  z)
                { return(*(int *)0); }
 
-#undef wbkgdset
-void   wbkgdset(
-               WINDOW  *a1, 
-               chtype  z)
-               { /* void */ }
-
 #undef wdeleteln
 int    wdeleteln(
                WINDOW  *z)
@@ -1009,19 +1018,11 @@ int     wstandend(
 
 /* ./lib_getch.c */
 
+#include <fifo_defs.h>
+
 #undef ESCDELAY
 int    ESCDELAY;
 
-#undef ungetch
-int    ungetch(
-               int     ch)
-               { return(*(int *)0); }
-
-#undef _nc_backspace
-void   _nc_backspace(
-               WINDOW  *win)
-               { /* void */ }
-
 #undef wgetch
 int    wgetch(
                WINDOW  *win)
@@ -1036,6 +1037,15 @@ int      wgetnstr(
                int     maxlen)
                { return(*(int *)0); }
 
+/* ./lib_hline.c */
+
+#undef whline
+int    whline(
+               WINDOW  *win, 
+               chtype  ch, 
+               int     n)
+               { return(*(int *)0); }
+
 /* ./lib_inchstr.c */
 
 #undef winchnstr
@@ -1047,10 +1057,6 @@ int      winchnstr(
 
 /* ./lib_initscr.c */
 
-#undef _nc_initscr
-int    _nc_initscr(void)
-               { return(*(int *)0); }
-
 #undef initscr
 WINDOW *initscr(void)
                { return(*(WINDOW **)0); }
@@ -1099,59 +1105,6 @@ int      winnstr(
 int    isendwin(void)
                { return(*(int *)0); }
 
-/* ./lib_kernel.c */
-
-#undef napms
-int    napms(
-               int     ms)
-               { return(*(int *)0); }
-
-#undef reset_prog_mode
-int    reset_prog_mode(void)
-               { return(*(int *)0); }
-
-#undef reset_shell_mode
-int    reset_shell_mode(void)
-               { return(*(int *)0); }
-
-#undef erasechar
-char   erasechar(void)
-               { return(*(char *)0); }
-
-#undef killchar
-char   killchar(void)
-               { return(*(char *)0); }
-
-#undef flushinp
-int    flushinp(void)
-               { return(*(int *)0); }
-
-#undef savetty
-int    savetty(void)
-               { return(*(int *)0); }
-
-#undef resetty
-int    resetty(void)
-               { return(*(int *)0); }
-
-/* ./lib_keyname.c */
-
-#include <ncurses_cfg.h>
-#include <stdlib.h>
-
-struct kn {
-       const char *name;
-       int code;
-};
-
-#undef key_names
-const struct kn key_names[] = {0};
-
-#undef keyname
-const char *keyname(
-               int     c)
-               { return(*(const char **)0); }
-
 /* ./lib_longname.c */
 
 #undef longname
@@ -1160,43 +1113,6 @@ char     *longname(void)
 
 /* ./lib_mouse.c */
 
-#undef _nc_max_click_interval
-int    _nc_max_click_interval;
-
-#undef _nc_mouse_init
-void   _nc_mouse_init(
-               SCREEN  *sp)
-               { /* void */ }
-
-#undef _nc_mouse_fd
-int    _nc_mouse_fd(void)
-               { return(*(int *)0); }
-
-#undef _nc_mouse_event
-bool   _nc_mouse_event(
-               SCREEN  *sp)
-               { return(*(bool *)0); }
-
-#undef _nc_mouse_inline
-bool   _nc_mouse_inline(
-               SCREEN  *sp)
-               { return(*(bool *)0); }
-
-#undef _nc_mouse_parse
-bool   _nc_mouse_parse(
-               int     runcount)
-               { return(*(bool *)0); }
-
-#undef _nc_mouse_wrap
-void   _nc_mouse_wrap(
-               SCREEN  *sp)
-               { /* void */ }
-
-#undef _nc_mouse_resume
-void   _nc_mouse_resume(
-               SCREEN  *sp)
-               { /* void */ }
-
 #undef getmouse
 int    getmouse(
                MEVENT  *aevent)
@@ -1215,7 +1131,7 @@ mmask_t   mousemask(
 
 #undef wenclose
 bool   wenclose(
-               WINDOW  *win, 
+               const WINDOW *win, 
                int     y, 
                int     x)
                { return(*(bool *)0); }
@@ -1225,6 +1141,10 @@ int      mouseinterval(
                int     maxclick)
                { return(*(int *)0); }
 
+#undef _nc_has_mouse
+int    _nc_has_mouse(void)
+               { return(*(int *)0); }
+
 /* ./lib_move.c */
 
 #undef wmove
@@ -1236,6 +1156,12 @@ int      wmove(
 
 /* ./lib_mvcur.c */
 
+#undef _nc_msec_cost
+int    _nc_msec_cost(
+               const char *const cap, 
+               int     affcnt)
+               { return(*(int *)0); }
+
 #undef _nc_mvcur_resume
 void   _nc_mvcur_resume(void)
                { /* void */ }
@@ -1256,14 +1182,6 @@ int      mvcur(
                int     xnew)
                { return(*(int *)0); }
 
-#undef _nc_mvcur_scrolln
-int    _nc_mvcur_scrolln(
-               int     n, 
-               int     top, 
-               int     bot, 
-               int     maxy)
-               { return(*(int *)0); }
-
 /* ./lib_mvwin.c */
 
 #undef mvwin
@@ -1328,141 +1246,34 @@ WINDOW *_nc_makenew(
                int     flags)
                { return(*(WINDOW **)0); }
 
-/* ./lib_options.c */
+/* ./lib_overlay.c */
 
-#undef has_ic
-int    has_ic(void)
+#undef overlay
+int    overlay(
+               const WINDOW *win1, 
+               WINDOW  *win2)
                { return(*(int *)0); }
 
-#undef has_il
-int    has_il(void)
+#undef overwrite
+int    overwrite(
+               const WINDOW *win1, 
+               WINDOW  *win2)
                { return(*(int *)0); }
 
-#undef idlok
-int    idlok(
-               WINDOW  *win, 
-               bool    flag)
+#undef copywin
+int    copywin(
+               const WINDOW *src, 
+               WINDOW  *dst, 
+               int     sminrow, 
+               int     smincol, 
+               int     dminrow, 
+               int     dmincol, 
+               int     dmaxrow, 
+               int     dmaxcol, 
+               int     over)
                { return(*(int *)0); }
 
-#undef idcok
-void   idcok(
-               WINDOW  *win, 
-               bool    flag)
-               { /* void */ }
-
-#undef clearok
-int    clearok(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef immedok
-void   immedok(
-               WINDOW  *win, 
-               bool    flag)
-               { /* void */ }
-
-#undef leaveok
-int    leaveok(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef scrollok
-int    scrollok(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef halfdelay
-int    halfdelay(
-               int     t)
-               { return(*(int *)0); }
-
-#undef nodelay
-int    nodelay(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef notimeout
-int    notimeout(
-               WINDOW  *win, 
-               bool    f)
-               { return(*(int *)0); }
-
-#undef wtimeout
-int    wtimeout(
-               WINDOW  *win, 
-               int     delay)
-               { return(*(int *)0); }
-
-#undef _nc_keypad
-int    _nc_keypad(
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef keypad
-int    keypad(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef meta
-int    meta(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-#undef curs_set
-int    curs_set(
-               int     vis)
-               { return(*(int *)0); }
-
-#if 0
-
-#include <keys.tries>
-
-#endif
-
-#undef typeahead
-int    typeahead(
-               int     fd)
-               { return(*(int *)0); }
-
-#undef has_key
-int    has_key(
-               int     keycode)
-               { return(*(int *)0); }
-
-/* ./lib_overlay.c */
-
-#undef overlay
-int    overlay(
-               const WINDOW *win1, 
-               WINDOW  *win2)
-               { return(*(int *)0); }
-
-#undef overwrite
-int    overwrite(
-               const WINDOW *win1, 
-               WINDOW  *win2)
-               { return(*(int *)0); }
-
-#undef copywin
-int    copywin(
-               const WINDOW *src, 
-               WINDOW  *dst, 
-               int     sminrow, 
-               int     smincol, 
-               int     dminrow, 
-               int     dmincol, 
-               int     dmaxrow, 
-               int     dmaxcol, 
-               int     over)
-               { return(*(int *)0); }
-
-/* ./lib_pad.c */
+/* ./lib_pad.c */
 
 #undef newpad
 WINDOW *newpad(
@@ -1504,7 +1315,7 @@ int       pnoutrefresh(
 #undef pechochar
 int    pechochar(
                WINDOW  *pad, 
-               chtype  ch)
+               const chtype ch)
                { return(*(int *)0); }
 
 /* ./lib_print.c */
@@ -1554,55 +1365,7 @@ int      vwprintw(
                va_list argp)
                { return(*(int *)0); }
 
-/* ./lib_raw.c */
-
-#undef raw
-int    raw(void)
-               { return(*(int *)0); }
-
-#undef cbreak
-int    cbreak(void)
-               { return(*(int *)0); }
-
-#undef echo
-int    echo(void)
-               { return(*(int *)0); }
-
-#undef nl
-int    nl(void)
-               { return(*(int *)0); }
-
-#undef qiflush
-int    qiflush(void)
-               { return(*(int *)0); }
-
-#undef noraw
-int    noraw(void)
-               { return(*(int *)0); }
-
-#undef nocbreak
-int    nocbreak(void)
-               { return(*(int *)0); }
-
-#undef noecho
-int    noecho(void)
-               { return(*(int *)0); }
-
-#undef nonl
-int    nonl(void)
-               { return(*(int *)0); }
-
-#undef noqiflush
-int    noqiflush(void)
-               { return(*(int *)0); }
-
-#undef intrflush
-int    intrflush(
-               WINDOW  *win, 
-               bool    flag)
-               { return(*(int *)0); }
-
-/* ./lib_refresh.c */
+/* ./lib_redrawln.c */
 
 #undef wredrawln
 int    wredrawln(
@@ -1611,6 +1374,8 @@ int       wredrawln(
                int     num)
                { return(*(int *)0); }
 
+/* ./lib_refresh.c */
+
 #undef wrefresh
 int    wrefresh(
                WINDOW  *win)
@@ -1638,16 +1403,6 @@ int      restartterm(
                int     *errret)
                { return(*(int *)0); }
 
-#undef set_curterm
-TERMINAL *set_curterm(
-               TERMINAL *term)
-               { return(*(TERMINAL **)0); }
-
-#undef del_curterm
-int    del_curterm(
-               TERMINAL *term)
-               { return(*(int *)0); }
-
 /* ./lib_scanw.c */
 
 #undef vwscanw
@@ -1730,7 +1485,8 @@ void      _nc_scroll_window(
                WINDOW  *win, 
                int const n, 
                short const top, 
-               short const bottom)
+               short const bottom, 
+               chtype  blank)
                { /* void */ }
 
 #undef wscrl
@@ -1766,11 +1522,6 @@ void     delscreen(
                SCREEN  *sp)
                { /* void */ }
 
-#undef rippedoff
-ripoff_t rippedoff[5];
-#undef rsp
-ripoff_t *rsp;
-
 #undef _nc_setupscreen
 int    _nc_setupscreen(
                short   slines, 
@@ -1794,46 +1545,70 @@ int     ripoffline(
                int     p2))
                { return(*(int *)0); }
 
-/* ./lib_setup.c */
+/* ./lib_slk.c */
 
-#include <sys/ioctl.h>
+#undef _nc_slk_format
+int    _nc_slk_format;
 
-#undef use_env
-void   use_env(
-               bool    f)
-               { /* void */ }
+#undef _nc_slk_initialize
+int    _nc_slk_initialize(
+               WINDOW  *stwin, 
+               int     cols)
+               { return(*(int *)0); }
 
-#undef LINES
-int    LINES;
-#undef COLS
-int    COLS;
-#undef TABSIZE
-int    TABSIZE;
+#undef slk_restore
+int    slk_restore(void)
+               { return(*(int *)0); }
 
-#undef _nc_get_screensize
-void   _nc_get_screensize(void)
-               { /* void */ }
+/* ./lib_slkatrof.c */
 
-#undef ttytype
-char   ttytype[256 ];
+#undef slk_attroff
+int    slk_attroff(
+               const attr_t attr)
+               { return(*(int *)0); }
 
-#undef setupterm
-int    setupterm(
-               const char *tname, 
-               int     Filedes, 
-               int     *errret)
+/* ./lib_slkatron.c */
+
+#undef slk_attron
+int    slk_attron(
+               const attr_t attr)
                { return(*(int *)0); }
 
-/* ./lib_slk.c */
+/* ./lib_slkatrset.c */
 
-#undef _nc_slk_format
-int    _nc_slk_format;
+#undef slk_attrset
+int    slk_attrset(
+               const attr_t attr)
+               { return(*(int *)0); }
+
+/* ./lib_slkattr.c */
+
+#undef slk_attr
+attr_t slk_attr(void)
+               { return(*(attr_t *)0); }
+
+/* ./lib_slkclear.c */
+
+#undef slk_clear
+int    slk_clear(void)
+               { return(*(int *)0); }
+
+/* ./lib_slkinit.c */
+
+#undef slk_init
+int    slk_init(
+               int     format)
+               { return(*(int *)0); }
+
+/* ./lib_slklab.c */
 
 #undef slk_label
 char   *slk_label(
                int     n)
                { return(*(char **)0); }
 
+/* ./lib_slkrefr.c */
+
 #undef slk_noutrefresh
 int    slk_noutrefresh(void)
                { return(*(int *)0); }
@@ -1842,9 +1617,7 @@ int       slk_noutrefresh(void)
 int    slk_refresh(void)
                { return(*(int *)0); }
 
-#undef slk_restore
-int    slk_restore(void)
-               { return(*(int *)0); }
+/* ./lib_slkset.c */
 
 #undef slk_set
 int    slk_set(
@@ -1853,121 +1626,23 @@ int    slk_set(
                int     format)
                { return(*(int *)0); }
 
+/* ./lib_slktouch.c */
+
 #undef slk_touch
 int    slk_touch(void)
                { return(*(int *)0); }
 
-#undef slk_clear
-int    slk_clear(void)
-               { return(*(int *)0); }
+/* ./lib_touch.c */
 
-#undef _nc_slk_initialize
-int    _nc_slk_initialize(
-               WINDOW  *stwin, 
-               int     cols)
+#undef is_linetouched
+int    is_linetouched(
+               WINDOW  *win, 
+               int     line)
                { return(*(int *)0); }
 
-#undef slk_init
-int    slk_init(
-               int     format)
-               { return(*(int *)0); }
-
-#undef slk_attrset
-int    slk_attrset(
-               const attr_t attr)
-               { return(*(int *)0); }
-
-#undef slk_attron
-int    slk_attron(
-               const attr_t attr)
-               { return(*(int *)0); }
-
-#undef slk_attroff
-int    slk_attroff(
-               const attr_t attr)
-               { return(*(int *)0); }
-
-#undef slk_attr
-attr_t slk_attr(void)
-               { return(*(attr_t *)0); }
-
-/* ./lib_termcap.c */
-
-#include <termcap.h>
-#include <tic.h>
-
-#undef PC
-char   PC;
-#undef UP
-char   *UP;
-#undef BC
-char   *BC;
-#undef ospeed
-short  ospeed;
-
-#undef tgetent
-int    tgetent(
-               char    *bufp, 
-               const char *name)
-               { return(*(int *)0); }
-
-#if 0
-
-#include <capdefaults.c>
-
-#endif
-
-#undef tgetflag
-int    tgetflag(
-               const char *id)
-               { return(*(int *)0); }
-
-#undef tgetnum
-int    tgetnum(
-               const char *id)
-               { return(*(int *)0); }
-
-#undef tgetstr
-char   *tgetstr(
-               const char *id, 
-               char    **area)
-               { return(*(char **)0); }
-
-#undef tgoto
-char   *tgoto(
-               const char *string, 
-               int     x, 
-               int     y)
-               { return(*(char **)0); }
-
-/* ./lib_ti.c */
-
-#undef tigetflag
-int    tigetflag(
-               const char *str)
-               { return(*(int *)0); }
-
-#undef tigetnum
-int    tigetnum(
-               const char *str)
-               { return(*(int *)0); }
-
-#undef tigetstr
-char   *tigetstr(
-               const char *str)
-               { return(*(char **)0); }
-
-/* ./lib_touch.c */
-
-#undef is_linetouched
-int    is_linetouched(
-               WINDOW  *win, 
-               int     line)
-               { return(*(int *)0); }
-
-#undef is_wintouched
-int    is_wintouched(
-               WINDOW  *win)
+#undef is_wintouched
+int    is_wintouched(
+               WINDOW  *win)
                { return(*(int *)0); }
 
 #undef wtouchln
@@ -1978,90 +1653,33 @@ int     wtouchln(
                int     changed)
                { return(*(int *)0); }
 
-/* ./lib_tparm.c */
-
-typedef union {
-       unsigned int    num;
-       char           *str;
-} stack_frame;
+/* ./lib_traceatr.c */
 
-#undef tparm
-char   *tparm(
-               const char *string
-               ...)
+#undef _traceattr2
+char   *_traceattr2(
+               int     bufnum
+               attr_t  newmode)
                { return(*(char **)0); }
 
-/* ./lib_tputs.c */
-
-#undef delay_output
-int    delay_output(
-               int     ms)
-               { return(*(int *)0); }
-
-#undef _nc_outch
-int    _nc_outch(
-               int     ch)
-               { return(*(int *)0); }
-
-#undef putp
-int    putp(
-               const char *string)
-               { return(*(int *)0); }
-
-#undef tputs
-int    tputs(
-               const char *string, 
-               int     affcnt, 
-               int     (*outc)(
-               int     p1))
-               { return(*(int *)0); }
-
-/* ./lib_trace.c */
-
-#include <fcntl.h>
-
-#undef _nc_tracing
-unsigned _nc_tracing;
-#undef _nc_tputs_trace
-const char *_nc_tputs_trace = {0};
-#undef _nc_outchars
-long   _nc_outchars;
-#undef _nc_optimize_enable
-int    _nc_optimize_enable;
-
-#undef trace
-void   trace(
-               const unsigned int tracelevel)
-               { /* void */ }
-
-#undef _nc_visbuf
-const char *_nc_visbuf(
-               const char *buf)
-               { return(*(const char **)0); }
-
-#undef _tracef
-void   _tracef(
-               const char *fmt, 
-               ...)
-               { /* void */ }
-
-/* ./lib_traceatr.c */
-
 #undef _traceattr
 char   *_traceattr(
                attr_t  newmode)
                { return(*(char **)0); }
 
-#undef _tracechtype
-char   *_tracechtype(
+#undef _nc_retrace_attr_t
+attr_t _nc_retrace_attr_t(
+               attr_t  code)
+               { return(*(attr_t *)0); }
+
+#undef _tracechtype2
+char   *_tracechtype2(
+               int     bufnum, 
                chtype  ch)
                { return(*(char **)0); }
 
-/* ./lib_tracechr.c */
-
-#undef _tracechar
-char   *_tracechar(
-               const unsigned char ch)
+#undef _tracechtype
+char   *_tracechtype(
+               chtype  ch)
                { return(*(char **)0); }
 
 /* ./lib_tracedmp.c */
@@ -2082,30 +1700,20 @@ char    *_tracemouse(
 /* ./lib_tstp.c */
 
 #include <signal.h>
-
-typedef struct sigaction sigaction_t;
+#include <SigAction.h>
 
 #undef _nc_signal_handler
 void   _nc_signal_handler(
                bool    enable)
                { /* void */ }
 
-/* ./lib_twait.c */
+/* ./lib_ungetch.c */
 
-#undef _nc_timed_wait
-int    _nc_timed_wait(
-               int     mode, 
-               int     milliseconds, 
-               int     *timeleft)
+#undef ungetch
+int    ungetch(
+               int     ch)
                { return(*(int *)0); }
 
-/* ./lib_unctrl.c */
-
-#undef unctrl
-char   *unctrl(
-                chtype uch)
-               { return(*(char **)0); }
-
 /* ./lib_vidattr.c */
 
 #undef vidputs
@@ -2121,8 +1729,33 @@ int      vidattr(
                { return(*(int *)0); }
 
 #undef termattrs
-attr_t termattrs(void)
-               { return(*(attr_t *)0); }
+chtype termattrs(void)
+               { return(*(chtype *)0); }
+
+/* ./lib_vline.c */
+
+#undef wvline
+int    wvline(
+               WINDOW  *win, 
+               chtype  ch, 
+               int     n)
+               { return(*(int *)0); }
+
+/* ./lib_wattroff.c */
+
+#undef wattr_off
+int    wattr_off(
+               WINDOW  *win, 
+               const attr_t at)
+               { return(*(int *)0); }
+
+/* ./lib_wattron.c */
+
+#undef wattr_on
+int    wattr_on(
+               WINDOW  *win, 
+               const attr_t at)
+               { return(*(int *)0); }
 
 /* ./lib_window.c */
 
@@ -2164,75 +1797,25 @@ WINDOW  *dupwin(
                WINDOW  *win)
                { return(*(WINDOW **)0); }
 
-/* ./names.c */
-
-#undef boolnames
-char   *const boolnames[] = {0};
-#undef boolfnames
-char   *const boolfnames[] = {0};
-#undef numnames
-char   *const numnames[] = {0};
-#undef numfnames
-char   *const numfnames[] = {0};
-#undef strnames
-char   *const strnames[] = {0};
-#undef strfnames
-char   *const strfnames[] = {0};
+/* ./nc_panel.c */
 
-/* ./codes.c */
-#undef boolcodes
-char   *const boolcodes[] = {0};
-#undef numcodes
-char   *const numcodes[] = {0};
-#undef strcodes
-char   *const strcodes[] = {0};
+#undef _nc_panelhook
+struct panelhook *_nc_panelhook(void)
+               { return(*(struct panelhook **)0); }
 
-/* ./read_entry.c */
-#undef cur_term
-TERMINAL *cur_term;
+/* ./safe_sprintf.c */
 
-#undef _nc_tic_dir
-char   *_nc_tic_dir(
-               char    *path)
+#undef _nc_printf_string
+char   *_nc_printf_string(
+               const char *fmt, 
+               va_list ap)
                { return(*(char **)0); }
 
-#undef _nc_read_file_entry
-int    _nc_read_file_entry(
-               const char *const filename, 
-               TERMTYPE *ptr)
-               { return(*(int *)0); }
-
-#undef _nc_read_entry
-int    _nc_read_entry(
-               const char *const tn, 
-               char    *const filename, 
-               TERMTYPE *const tp)
-               { return(*(int *)0); }
-
-#undef _nc_first_name
-char   *_nc_first_name(
-               const char *const sp)
-               { return(*(char **)0); }
-
-#undef _nc_name_match
-int    _nc_name_match(
-               const char *const namelst, 
-               const char *const name, 
-               const char *const delim)
-               { return(*(int *)0); }
-
-/* ./read_termcap.c */
+/* ./write_entry.c */
 
+#include <tic.h>
 #include <term_entry.h>
 
-#undef _nc_read_termcap_entry
-int    _nc_read_termcap_entry(
-               const char *const tn, 
-               TERMTYPE *const tp)
-               { return(*(int *)0); }
-
-/* ./write_entry.c */
-
 #undef _nc_set_writedir
 void   _nc_set_writedir(
                char    *dir)
@@ -2259,6 +1842,169 @@ void    _nc_sigaction(void)
 void   _nc_vsscanf(void)
                { /* void */ }
 
+/* ./define_key.c */
+
+#undef define_key
+int    define_key(
+               char    *str, 
+               int     keycode)
+               { return(*(int *)0); }
+
+/* ./expanded.c */
+
+#undef _nc_toggle_attr_on
+void   _nc_toggle_attr_on(
+               attr_t  *S, 
+               attr_t  at)
+               { /* void */ }
+
+#undef _nc_toggle_attr_off
+void   _nc_toggle_attr_off(
+               attr_t  *S, 
+               attr_t  at)
+               { /* void */ }
+
+#undef _nc_can_clear_with
+int    _nc_can_clear_with(
+               chtype  ch)
+               { return(*(int *)0); }
+
+#undef _nc_DelCharCost
+int    _nc_DelCharCost(
+               int     count)
+               { return(*(int *)0); }
+
+#undef _nc_InsCharCost
+int    _nc_InsCharCost(
+               int     count)
+               { return(*(int *)0); }
+
+#undef _nc_UpdateAttrs
+void   _nc_UpdateAttrs(
+               chtype  c)
+               { /* void */ }
+
+/* ./keyok.c */
+
+#undef keyok
+int    keyok(
+               int     c, 
+               bool    flag)
+               { return(*(int *)0); }
+
+/* ./lib_adabind.c */
+
+#undef _nc_ada_getmaxyx
+int    _nc_ada_getmaxyx(
+               const WINDOW *win, 
+               int     *y, 
+               int     *x)
+               { return(*(int *)0); }
+
+#undef _nc_ada_getbegyx
+int    _nc_ada_getbegyx(
+               const WINDOW *win, 
+               int     *y, 
+               int     *x)
+               { return(*(int *)0); }
+
+#undef _nc_ada_getyx
+int    _nc_ada_getyx(
+               const WINDOW *win, 
+               int     *y, 
+               int     *x)
+               { return(*(int *)0); }
+
+#undef _nc_ada_getparyx
+int    _nc_ada_getparyx(
+               const WINDOW *win, 
+               int     *y, 
+               int     *x)
+               { return(*(int *)0); }
+
+#undef _nc_ada_isscroll
+int    _nc_ada_isscroll(
+               const WINDOW *win)
+               { return(*(int *)0); }
+
+#undef _nc_ada_coord_transform
+int    _nc_ada_coord_transform(
+               const WINDOW *win, 
+               int     *Y, 
+               int     *X, 
+               int     dir)
+               { return(*(int *)0); }
+
+#undef _nc_ada_mouse_event
+void   _nc_ada_mouse_event(
+               mmask_t m, 
+               int     *b, 
+               int     *s)
+               { /* void */ }
+
+#undef _nc_ada_mouse_mask
+int    _nc_ada_mouse_mask(
+               int     button, 
+               int     state, 
+               mmask_t *mask)
+               { return(*(int *)0); }
+
+#undef _nc_ada_vcheck
+int    _nc_ada_vcheck(
+               int     major, 
+               int     minor)
+               { return(*(int *)0); }
+
+/* ./lib_dft_fgbg.c */
+
+#undef use_default_colors
+int    use_default_colors(void)
+               { return(*(int *)0); }
+
+/* ./lib_freeall.c */
+
+#undef _nc_free_termtype
+void   _nc_free_termtype(
+               struct termtype *p, 
+               int     base)
+               { /* void */ }
+
+#undef _nc_freeall
+void   _nc_freeall(void)
+               { /* void */ }
+
+#undef _nc_free_and_exit
+void   _nc_free_and_exit(
+               int     code)
+               { /* void */ }
+
+/* ./resizeterm.c */
+
+#undef resizeterm
+int    resizeterm(
+               int     ToLines, 
+               int     ToCols)
+               { return(*(int *)0); }
+
+/* ./softscroll.c */
+
+#undef _nc_setup_scroll
+void   _nc_setup_scroll(void)
+               { /* void */ }
+
+#undef _nc_perform_scroll
+void   _nc_perform_scroll(void)
+               { /* void */ }
+
+/* ./wresize.c */
+
+#undef wresize
+int    wresize(
+               WINDOW  *win, 
+               int     ToLines, 
+               int     ToCols)
+               { return(*(int *)0); }
+
 /* ./alloc_entry.c */
 
 #undef _nc_init_entry
@@ -2286,21 +2032,30 @@ void    _nc_merge_entry(
 
 #undef _nc_captoinfo
 char   *_nc_captoinfo(
-                char   *const cap, 
-                char   *s, 
+                const char *cap, 
+                const char *s, 
                int const parametrized)
                { return(*(char **)0); }
 
 #undef _nc_infotocap
 char   *_nc_infotocap(
-                char   *const cap, 
-                char   *str, 
+                const char *cap, 
+                const char *str, 
                int const parametrized)
                { return(*(char **)0); }
 
+/* ./codes.c */
+
+#undef boolcodes
+char   *const boolcodes[] = {0};
+#undef numcodes
+char   *const numcodes[] = {0};
+#undef strcodes
+char   *const strcodes[] = {0};
+
 /* ./comp_captab.c */
 
-#include <hashsize.h>
+#include <ncurses_cfg.h>
 
 #undef _nc_info_hash_table
 const struct name_table_entry *const _nc_info_hash_table[991] = {0};
@@ -2320,6 +2075,10 @@ const struct name_table_entry *_nc_get_table(
 
 #undef _nc_suppress_warnings
 bool   _nc_suppress_warnings;
+#undef _nc_curr_line
+int    _nc_curr_line;
+#undef _nc_curr_col
+int    _nc_curr_col;
 
 #undef _nc_set_source
 void   _nc_set_source(
@@ -2354,8 +2113,18 @@ void     _nc_syserr_abort(
                ...)
                { /* void */ }
 
+/* ./comp_expand.c */
+
+#undef _nc_tic_expand
+char   *_nc_tic_expand(
+               const char *srcp, 
+               bool    tic_format)
+               { return(*(char **)0); }
+
 /* ./comp_hash.c */
 
+#include <hashsize.h>
+
 #undef _nc_find_entry
 struct name_table_entry const *_nc_find_entry(
                const char *string, 
@@ -2405,10 +2174,6 @@ int      _nc_resolve_uses(void)
 
 #undef _nc_syntax
 int    _nc_syntax;
-#undef _nc_curr_line
-int    _nc_curr_line;
-#undef _nc_curr_col
-int    _nc_curr_col;
 #undef _nc_curr_file_pos
 long   _nc_curr_file_pos;
 #undef _nc_comment_start
@@ -2422,9 +2187,14 @@ long     _nc_start_line;
 int    _nc_get_token(void)
                { return(*(int *)0); }
 
+#undef _nc_trans_string
+char   _nc_trans_string(
+               char    *ptr)
+               { return(*(char *)0); }
+
 #undef _nc_push_token
 void   _nc_push_token(
-               int     class)
+               int     tokclass)
                { /* void */ }
 
 #undef _nc_panic_mode
@@ -2438,123 +2208,558 @@ void  _nc_reset_input(
                char    *buf)
                { /* void */ }
 
-/* ./parse_entry.c */
+/* ./fallback.c */
 
-#undef _nc_curr_token
-struct token _nc_curr_token;
+#undef _nc_fallback
+const TERMTYPE *_nc_fallback(
+               const char *name)
+               { return(*(const TERMTYPE **)0); }
 
-#undef _nc_parse_entry
-int    _nc_parse_entry(
-               struct entry *entryp, 
-               int     literal, 
-               bool    silent)
-               { return(*(int *)0); }
+/* ./lib_cur_term.c */
 
-#undef _nc_capcmp
-int    _nc_capcmp(
-               const char *s, 
-               const char *t)
+#undef cur_term
+TERMINAL *cur_term;
+
+#undef _nc_get_curterm
+int    _nc_get_curterm(
+               struct termios *buf)
                { return(*(int *)0); }
 
-typedef struct {const char *from; const char *to;} assoc;
+#undef _nc_set_curterm
+int    _nc_set_curterm(
+               struct termios *buf)
+               { return(*(int *)0); }
 
-/* ./lib_dft_fgbg.c */
+#undef set_curterm
+TERMINAL *set_curterm(
+               TERMINAL *term)
+               { return(*(TERMINAL **)0); }
 
-#undef use_default_colors
-int    use_default_colors(void)
+#undef del_curterm
+int    del_curterm(
+               TERMINAL *term)
                { return(*(int *)0); }
 
-/* ./lib_freeall.c */
+/* ./lib_kernel.c */
 
-#undef _nc_free_termtype
-void   _nc_free_termtype(
-               struct termtype *p, 
-               int     base)
-               { /* void */ }
+#undef napms
+int    napms(
+               int     ms)
+               { return(*(int *)0); }
 
-#undef _nc_freeall
-void   _nc_freeall(void)
-               { /* void */ }
+#undef reset_prog_mode
+int    reset_prog_mode(void)
+               { return(*(int *)0); }
 
-#undef _nc_free_and_exit
-void   _nc_free_and_exit(
-               int     code)
-               { /* void */ }
+#undef reset_shell_mode
+int    reset_shell_mode(void)
+               { return(*(int *)0); }
 
-/* ./resizeterm.c */
+#undef erasechar
+char   erasechar(void)
+               { return(*(char *)0); }
 
-#undef resizeterm
-int    resizeterm(
-               int     ToLines, 
-               int     ToCols)
+#undef killchar
+char   killchar(void)
+               { return(*(char *)0); }
+
+#undef flushinp
+int    flushinp(void)
                { return(*(int *)0); }
 
-/* ./wresize.c */
+#undef savetty
+int    savetty(void)
+               { return(*(int *)0); }
 
-#undef wresize
-int    wresize(
-               WINDOW  *win, 
-               int     ToLines, 
-               int     ToCols)
+#undef resetty
+int    resetty(void)
                { return(*(int *)0); }
 
-/* ./lib_adabind.c */
+/* ./lib_keyname.c */
 
-#undef _nc_ada_getmaxyx
-int    _nc_ada_getmaxyx(
+#include <stdlib.h>
+#include <string.h>
+#include <curses.h>
+
+struct kn {
+       const char *name;
+       int code;
+};
+
+#undef key_names
+const struct kn key_names[] = {0};
+
+#undef keyname
+const char *keyname(
+               int     c)
+               { return(*(const char **)0); }
+
+/* ./lib_options.c */
+
+#undef has_ic
+int    has_ic(void)
+               { return(*(int *)0); }
+
+#undef has_il
+int    has_il(void)
+               { return(*(int *)0); }
+
+#undef idlok
+int    idlok(
                WINDOW  *win, 
-               int     *y, 
-               int     *x)
+               bool    flag)
                { return(*(int *)0); }
 
-#undef _nc_ada_getbegyx
-int    _nc_ada_getbegyx(
+#undef idcok
+void   idcok(
                WINDOW  *win, 
-               int     *y, 
-               int     *x)
+               bool    flag)
+               { /* void */ }
+
+#undef clearok
+int    clearok(
+               WINDOW  *win, 
+               bool    flag)
                { return(*(int *)0); }
 
-#undef _nc_ada_getyx
-int    _nc_ada_getyx(
+#undef immedok
+void   immedok(
                WINDOW  *win, 
-               int     *y, 
-               int     *x)
+               bool    flag)
+               { /* void */ }
+
+#undef leaveok
+int    leaveok(
+               WINDOW  *win, 
+               bool    flag)
                { return(*(int *)0); }
 
-#undef _nc_ada_getparyx
-int    _nc_ada_getparyx(
+#undef scrollok
+int    scrollok(
                WINDOW  *win, 
-               int     *y, 
-               int     *x)
+               bool    flag)
                { return(*(int *)0); }
 
-#undef _nc_ada_isscroll
-int    _nc_ada_isscroll(
-               WINDOW  *win)
+#undef halfdelay
+int    halfdelay(
+               int     t)
                { return(*(int *)0); }
 
-#undef _nc_ada_coord_transform
-int    _nc_ada_coord_transform(
+#undef nodelay
+int    nodelay(
                WINDOW  *win, 
-               int     *Y, 
-               int     *X, 
-               int     dir)
+               bool    flag)
                { return(*(int *)0); }
 
-#undef _nc_ada_mouse_event
-void   _nc_ada_mouse_event(
-               mmask_t m, 
-               int     *b, 
-               int     *s)
+#undef notimeout
+int    notimeout(
+               WINDOW  *win, 
+               bool    f)
+               { return(*(int *)0); }
+
+#undef wtimeout
+int    wtimeout(
+               WINDOW  *win, 
+               int     delay)
+               { return(*(int *)0); }
+
+#undef keypad
+int    keypad(
+               WINDOW  *win, 
+               bool    flag)
+               { return(*(int *)0); }
+
+#undef meta
+int    meta(
+               WINDOW  *win, 
+               bool    flag)
+               { return(*(int *)0); }
+
+#undef curs_set
+int    curs_set(
+               int     vis)
+               { return(*(int *)0); }
+
+#undef typeahead
+int    typeahead(
+               int     fd)
+               { return(*(int *)0); }
+
+#undef has_key
+int    has_key(
+               int     keycode)
+               { return(*(int *)0); }
+
+#if 0
+
+#include <keys.tries>
+
+#endif
+
+#undef _nc_keypad
+int    _nc_keypad(
+               bool    flag)
+               { return(*(int *)0); }
+
+/* ./lib_raw.c */
+
+#undef raw
+int    raw(void)
+               { return(*(int *)0); }
+
+#undef cbreak
+int    cbreak(void)
+               { return(*(int *)0); }
+
+#undef echo
+int    echo(void)
+               { return(*(int *)0); }
+
+#undef nl
+int    nl(void)
+               { return(*(int *)0); }
+
+#undef qiflush
+int    qiflush(void)
+               { return(*(int *)0); }
+
+#undef noraw
+int    noraw(void)
+               { return(*(int *)0); }
+
+#undef nocbreak
+int    nocbreak(void)
+               { return(*(int *)0); }
+
+#undef noecho
+int    noecho(void)
+               { return(*(int *)0); }
+
+#undef nonl
+int    nonl(void)
+               { return(*(int *)0); }
+
+#undef noqiflush
+int    noqiflush(void)
+               { return(*(int *)0); }
+
+#undef intrflush
+int    intrflush(
+               WINDOW  *win, 
+               bool    flag)
+               { return(*(int *)0); }
+
+/* ./lib_termcap.c */
+
+#include <termcap.h>
+
+#undef PC
+char   PC;
+#undef UP
+char   *UP;
+#undef BC
+char   *BC;
+#undef ospeed
+short  ospeed;
+
+#undef tgetent
+int    tgetent(
+               char    *bufp, 
+               const char *name)
+               { return(*(int *)0); }
+
+#if 0
+
+#include <capdefaults.c>
+
+#endif
+
+#undef tgetflag
+int    tgetflag(
+               const char *id)
+               { return(*(int *)0); }
+
+#undef tgetnum
+int    tgetnum(
+               const char *id)
+               { return(*(int *)0); }
+
+#undef tgetstr
+char   *tgetstr(
+               const char *id, 
+               char    **area)
+               { return(*(char **)0); }
+
+#undef tgoto
+char   *tgoto(
+               const char *string, 
+               int     x, 
+               int     y)
+               { return(*(char **)0); }
+
+/* ./lib_ti.c */
+
+#undef tigetflag
+int    tigetflag(
+               const char *str)
+               { return(*(int *)0); }
+
+#undef tigetnum
+int    tigetnum(
+               const char *str)
+               { return(*(int *)0); }
+
+#undef tigetstr
+char   *tigetstr(
+               const char *str)
+               { return(*(char **)0); }
+
+/* ./lib_tparm.c */
+
+typedef union {
+       unsigned int    num;
+       char           *str;
+} stack_frame;
+
+#undef tparm
+char   *tparm(
+               const char *string, 
+               ...)
+               { return(*(char **)0); }
+
+/* ./lib_tputs.c */
+
+#undef _nc_nulls_sent
+int    _nc_nulls_sent;
+
+#undef delay_output
+int    delay_output(
+               int     ms)
+               { return(*(int *)0); }
+
+#undef _nc_outch
+int    _nc_outch(
+               int     ch)
+               { return(*(int *)0); }
+
+#undef putp
+int    putp(
+               const char *string)
+               { return(*(int *)0); }
+
+#undef tputs
+int    tputs(
+               const char *string, 
+               int     affcnt, 
+               int     (*outc)(
+               int     p1))
+               { return(*(int *)0); }
+
+/* ./lib_trace.c */
+
+#include <fcntl.h>
+
+#undef _nc_tracing
+unsigned _nc_tracing;
+#undef _nc_tputs_trace
+const char *_nc_tputs_trace = {0};
+#undef _nc_outchars
+long   _nc_outchars;
+#undef _nc_optimize_enable
+int    _nc_optimize_enable;
+
+#undef trace
+void   trace(
+               const unsigned int tracelevel)
                { /* void */ }
 
-#undef _nc_ada_mouse_mask
-int    _nc_ada_mouse_mask(
-               int     button, 
-               int     state, 
-               mmask_t *mask)
+#undef _nc_visbuf2
+const char *_nc_visbuf2(
+               int     bufnum, 
+               const char *buf)
+               { return(*(const char **)0); }
+
+#undef _nc_visbuf
+const char *_nc_visbuf(
+               const char *buf)
+               { return(*(const char **)0); }
+
+#undef _tracef
+void   _tracef(
+               const char *fmt, 
+               ...)
+               { /* void */ }
+
+#undef _nc_retrace_int
+int    _nc_retrace_int(
+               int     code)
+               { return(*(int *)0); }
+
+#undef _nc_retrace_ptr
+char   *_nc_retrace_ptr(
+               char    *code)
+               { return(*(char **)0); }
+
+#undef _nc_retrace_win
+WINDOW *_nc_retrace_win(
+               WINDOW  *code)
+               { return(*(WINDOW **)0); }
+
+/* ./lib_tracechr.c */
+
+#undef _tracechar
+char   *_tracechar(
+               const unsigned char ch)
+               { return(*(char **)0); }
+
+/* ./lib_twait.c */
+
+#undef _nc_timed_wait
+int    _nc_timed_wait(
+               int     mode, 
+               int     milliseconds, 
+               int     *timeleft)
                { return(*(int *)0); }
 
-#undef _nc_ada_unregister_mouse
-void   _nc_ada_unregister_mouse(void)
+/* ./name_match.c */
+
+#undef _nc_first_name
+char   *_nc_first_name(
+               const char *const sp)
+               { return(*(char **)0); }
+
+#undef _nc_name_match
+int    _nc_name_match(
+               const char *const namelst, 
+               const char *const name, 
+               const char *const delim)
+               { return(*(int *)0); }
+
+/* ./names.c */
+
+#undef boolnames
+char   *const boolnames[] = {0};
+#undef boolfnames
+char   *const boolfnames[] = {0};
+#undef numnames
+char   *const numnames[] = {0};
+#undef numfnames
+char   *const numfnames[] = {0};
+#undef strnames
+char   *const strnames[] = {0};
+#undef strfnames
+char   *const strfnames[] = {0};
+
+/* ./parse_entry.c */
+#undef _nc_curr_token
+struct token _nc_curr_token;
+
+#undef _nc_parse_entry
+int    _nc_parse_entry(
+               struct entry *entryp, 
+               int     literal, 
+               bool    silent)
+               { return(*(int *)0); }
+
+#undef _nc_capcmp
+int    _nc_capcmp(
+               const char *s, 
+               const char *t)
+               { return(*(int *)0); }
+
+typedef struct {const char *from; const char *to;} assoc;
+
+/* ./read_entry.c */
+
+#undef _nc_tic_dir
+const char *_nc_tic_dir(
+               const char *path)
+               { return(*(const char **)0); }
+
+#undef _nc_read_file_entry
+int    _nc_read_file_entry(
+               const char *const filename, 
+               TERMTYPE *ptr)
+               { return(*(int *)0); }
+
+#undef _nc_read_entry
+int    _nc_read_entry(
+               const char *const tn, 
+               char    *const filename, 
+               TERMTYPE *const tp)
+               { return(*(int *)0); }
+
+/* ./read_termcap.c */
+
+#undef _nc_read_termcap_entry
+int    _nc_read_termcap_entry(
+               const char *const tn, 
+               TERMTYPE *const tp)
+               { return(*(int *)0); }
+
+/* ./lib_setup.c */
+
+#include <sys/ioctl.h>
+
+#undef use_env
+void   use_env(
+               bool    f)
                { /* void */ }
+
+#undef LINES
+int    LINES;
+#undef COLS
+int    COLS;
+#undef TABSIZE
+int    TABSIZE;
+
+#undef _nc_update_screensize
+void   _nc_update_screensize(void)
+               { /* void */ }
+
+#undef ttytype
+char   ttytype[256 ];
+
+#undef setupterm
+int    setupterm(
+               const char *tname, 
+               int     Filedes, 
+               int     *errret)
+               { return(*(int *)0); }
+
+/* ./trace_buf.c */
+
+#undef _nc_trace_buf
+char   *_nc_trace_buf(
+               int     bufnum, 
+               size_t  want)
+               { return(*(char **)0); }
+
+/* ./tries.c */
+
+#undef _nc_add_to_try
+void   _nc_add_to_try(
+               struct tries **tree, 
+               char    *str, 
+               unsigned short code)
+               { /* void */ }
+
+#undef _nc_expand_try
+char   *_nc_expand_try(
+               struct tries *tree, 
+               unsigned short code, 
+               size_t  len)
+               { return(*(char **)0); }
+
+#undef _nc_remove_key
+int    _nc_remove_key(
+               struct tries **tree, 
+               unsigned short code)
+               { return(*(int *)0); }
+
+/* ./unctrl.c */
+
+#undef unctrl
+char   *unctrl(
+                chtype ch)
+               { return(*(char **)0); }