]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/llib-lncursesw
ncurses 6.1 - patch 20190323
[ncurses.git] / ncurses / llib-lncursesw
index 217ae1b522db9f9213f0364743f98426848ffc7b..61db5d49ef13c8d6edac3f051b0c34e238a141e8 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2001-2013,2015 Free Software Foundation, Inc.              *
+ * Copyright (c) 2001-2018,2019 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            *
@@ -34,7 +34,6 @@
 /* ./tty/hardscroll.c */
 
 #include <curses.priv.h>
-
 #undef _nc_oldnums
 int    *_nc_oldnums;
 
@@ -219,7 +218,7 @@ int wchgat(
                WINDOW  *win, 
                int     n, 
                attr_t  attr, 
-               short   color
+               short   pair_arg
                const void *opts)
                { return(*(int *)0); }
 
@@ -277,6 +276,26 @@ int        start_color_sp(
 int    start_color(void)
                { return(*(int *)0); }
 
+#undef _nc_change_pair
+void   _nc_change_pair(
+               SCREEN  *sp, 
+               int     pair)
+               { /* void */ }
+
+#undef _nc_reserve_pairs
+void   _nc_reserve_pairs(
+               SCREEN  *sp, 
+               int     want)
+               { /* void */ }
+
+#undef _nc_init_pair
+int    _nc_init_pair(
+               SCREEN  *sp, 
+               int     pair, 
+               int     f, 
+               int     b)
+               { return(*(int *)0); }
+
 #undef init_pair_sp
 int    init_pair_sp(
                SCREEN  *sp, 
@@ -292,6 +311,15 @@ int        init_pair(
                short   b)
                { return(*(int *)0); }
 
+#undef _nc_init_color
+int    _nc_init_color(
+               SCREEN  *sp, 
+               int     color, 
+               int     r, 
+               int     g, 
+               int     b)
+               { return(*(int *)0); }
+
 #undef init_color_sp
 int    init_color_sp(
                SCREEN  *sp, 
@@ -344,6 +372,14 @@ int        color_content(
                short   *b)
                { return(*(int *)0); }
 
+#undef _nc_pair_content
+int    _nc_pair_content(
+               SCREEN  *sp, 
+               int     pair, 
+               int     *f, 
+               int     *b)
+               { return(*(int *)0); }
+
 #undef pair_content_sp
 int    pair_content_sp(
                SCREEN  *sp, 
@@ -376,12 +412,85 @@ void      _nc_do_color(
                NCURSES_OUTC outc)
                { /* void */ }
 
+#undef init_extended_pair_sp
+int    init_extended_pair_sp(
+               SCREEN  *sp, 
+               int     pair, 
+               int     f, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef init_extended_color_sp
+int    init_extended_color_sp(
+               SCREEN  *sp, 
+               int     color, 
+               int     r, 
+               int     g, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef extended_color_content_sp
+int    extended_color_content_sp(
+               SCREEN  *sp, 
+               int     color, 
+               int     *r, 
+               int     *g, 
+               int     *b)
+               { return(*(int *)0); }
+
+#undef extended_pair_content_sp
+int    extended_pair_content_sp(
+               SCREEN  *sp, 
+               int     pair, 
+               int     *f, 
+               int     *b)
+               { return(*(int *)0); }
+
+#undef reset_color_pairs_sp
+void   reset_color_pairs_sp(
+               SCREEN  *sp)
+               { /* void */ }
+
+#undef init_extended_pair
+int    init_extended_pair(
+               int     pair, 
+               int     f, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef init_extended_color
+int    init_extended_color(
+               int     color, 
+               int     r, 
+               int     g, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef extended_color_content
+int    extended_color_content(
+               int     color, 
+               int     *r, 
+               int     *g, 
+               int     *b)
+               { return(*(int *)0); }
+
+#undef extended_pair_content
+int    extended_pair_content(
+               int     pair, 
+               int     *f, 
+               int     *b)
+               { return(*(int *)0); }
+
+#undef reset_color_pairs
+void   reset_color_pairs(void)
+               { /* void */ }
+
 /* ./base/lib_colorset.c */
 
 #undef wcolor_set
 int    wcolor_set(
                WINDOW  *win, 
-               short   color_pair_number
+               short   pair_arg
                void    *opts)
                { return(*(int *)0); }
 
@@ -1072,20 +1181,6 @@ int      (vline)(
                int     z)
                { return(*(int *)0); }
 
-#undef vw_printw
-int    (vw_printw)(
-               WINDOW  *a1, 
-               const char *a2, 
-               va_list z)
-               { return(*(int *)0); }
-
-#undef vw_scanw
-int    (vw_scanw)(
-               WINDOW  *a1, 
-               const char *a2, 
-               va_list z)
-               { return(*(int *)0); }
-
 #undef waddchstr
 int    (waddchstr)(
                WINDOW  *a1, 
@@ -1904,13 +1999,6 @@ int      leaveok(
 
 /* ./base/lib_mouse.c */
 
-typedef struct {
-    int nerror; 
-    int nparam; 
-    int params[9];
-    int final; 
-} SGR_DATA;
-
 #undef getmouse_sp
 int    getmouse_sp(
                SCREEN  *sp, 
@@ -2323,6 +2411,13 @@ int      vwprintw(
                va_list argp)
                { return(*(int *)0); }
 
+#undef vw_printw
+int    vw_printw(
+               WINDOW  *win, 
+               const char *fmt, 
+               va_list argp)
+               { return(*(int *)0); }
+
 /* ./base/lib_redrawln.c */
 
 #undef wredrawln
@@ -2370,6 +2465,13 @@ int      vwscanw(
                va_list argp)
                { return(*(int *)0); }
 
+#undef vw_scanw
+int    vw_scanw(
+               WINDOW  *win, 
+               const char *fmt, 
+               va_list argp)
+               { return(*(int *)0); }
+
 #undef scanw
 int    scanw(
                const char *fmt, 
@@ -2402,28 +2504,6 @@ int      mvwscanw(
 
 /* ./base/lib_screen.c */
 
-typedef enum {
-    pINT 
-    ,pSHORT 
-    ,pBOOL 
-    ,pATTR 
-    ,pCHAR 
-    ,pSIZE 
-    ,pCCHAR 
-} PARAM_TYPE;
-
-typedef struct {
-    const char name[11];
-    attr_t attr;
-} SCR_ATTRS;
-
-typedef struct {
-    const char name[17];
-    PARAM_TYPE type;
-    size_t size;
-    size_t offset;
-} SCR_PARAMS;
-
 #undef getwin_sp
 WINDOW *getwin_sp(
                SCREEN  *sp, 
@@ -2607,14 +2687,14 @@ int     slk_restore(void)
 int    slk_attr_set_sp(
                SCREEN  *sp, 
                const attr_t attr, 
-               short   color_pair_number
+               short   pair_arg
                void    *opts)
                { return(*(int *)0); }
 
 #undef slk_attr_set
 int    slk_attr_set(
                const attr_t attr, 
-               short   color_pair_number
+               short   pair_arg
                void    *opts)
                { return(*(int *)0); }
 
@@ -2684,12 +2764,23 @@ int     slk_clear(void)
 #undef slk_color_sp
 int    slk_color_sp(
                SCREEN  *sp, 
-               short   color_pair_number)
+               short   pair_arg)
                { return(*(int *)0); }
 
 #undef slk_color
 int    slk_color(
-               short   color_pair_number)
+               short   pair_arg)
+               { return(*(int *)0); }
+
+#undef extended_slk_color_sp
+int    extended_slk_color_sp(
+               SCREEN  *sp, 
+               int     pair_arg)
+               { return(*(int *)0); }
+
+#undef extended_slk_color
+int    extended_slk_color(
+               int     pair_arg)
                { return(*(int *)0); }
 
 /* ./base/lib_slkinit.c */
@@ -3048,10 +3139,6 @@ void     _nc_do_xmc_glitch(
 
 /* ./trace/varargs.c */
 
-typedef enum {
-    atUnknown = 0, atInteger, atFloat, atPoint, atString
-} ARGTYPE;
-
 #undef _nc_varargs
 char   *_nc_varargs(
                const char *fmt, 
@@ -3134,7 +3221,7 @@ int       setcchar(
                cchar_t *wcval, 
                const wchar_t *wch, 
                const attr_t attrs, 
-               short   color_pair
+               short   pair_arg
                const void *opts)
                { return(*(int *)0); }
 
@@ -3143,7 +3230,7 @@ int       getcchar(
                const cchar_t *wcval, 
                wchar_t *wch, 
                attr_t  *attrs, 
-               short   *color_pair
+               short   *pair_arg
                void    *opts)
                { return(*(int *)0); }
 
@@ -3288,7 +3375,7 @@ int       unget_wch(
 int    vid_puts_sp(
                SCREEN  *sp, 
                attr_t  newmode, 
-               short   pair, 
+               short   pair_arg
                void    *opts, 
                NCURSES_OUTC_sp outc)
                { return(*(int *)0); }
@@ -3296,7 +3383,7 @@ int       vid_puts_sp(
 #undef vid_puts
 int    vid_puts(
                attr_t  newmode, 
-               short   pair, 
+               short   pair_arg
                void    *opts, 
                NCURSES_OUTC outc)
                { return(*(int *)0); }
@@ -3305,14 +3392,14 @@ int     vid_puts(
 int    vid_attr_sp(
                SCREEN  *sp, 
                attr_t  newmode, 
-               short   pair, 
+               short   pair_arg
                void    *opts)
                { return(*(int *)0); }
 
 #undef vid_attr
 int    vid_attr(
                attr_t  newmode, 
-               short   pair, 
+               short   pair_arg
                void    *opts)
                { return(*(int *)0); }
 
@@ -3455,6 +3542,72 @@ int      mcprint(
                int     len)
                { return(*(int *)0); }
 
+/* ./base/new_pair.c */
+
+#undef _nc_free_ordered_pairs
+void   _nc_free_ordered_pairs(
+               SCREEN  *sp)
+               { /* void */ }
+
+#undef _nc_reset_color_pair
+void   _nc_reset_color_pair(
+               SCREEN  *sp, 
+               int     pair, 
+               colorpair_t *next)
+               { /* void */ }
+
+#undef _nc_set_color_pair
+void   _nc_set_color_pair(
+               SCREEN  *sp, 
+               int     pair, 
+               int     mode)
+               { /* void */ }
+
+#undef _nc_copy_pairs
+void   _nc_copy_pairs(
+               SCREEN  *sp, 
+               colorpair_t *target, 
+               colorpair_t *source, 
+               int     length)
+               { /* void */ }
+
+#undef alloc_pair_sp
+int    alloc_pair_sp(
+               SCREEN  *sp, 
+               int     fg, 
+               int     bg)
+               { return(*(int *)0); }
+
+#undef find_pair_sp
+int    find_pair_sp(
+               SCREEN  *sp, 
+               int     fg, 
+               int     bg)
+               { return(*(int *)0); }
+
+#undef free_pair_sp
+int    free_pair_sp(
+               SCREEN  *sp, 
+               int     pair)
+               { return(*(int *)0); }
+
+#undef alloc_pair
+int    alloc_pair(
+               int     f, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef find_pair
+int    find_pair(
+               int     f, 
+               int     b)
+               { return(*(int *)0); }
+
+#undef free_pair
+int    free_pair(
+               int     pair)
+               { return(*(int *)0); }
+
 /* ./base/resizeterm.c */
 
 #undef is_term_resized_sp
@@ -3585,8 +3738,8 @@ int       _nc_add_to_try(
 
 #undef _nc_align_termtype
 void   _nc_align_termtype(
-               TERMTYPE *to, 
-               TERMTYPE *from)
+               TERMTYPE2 *to, 
+               TERMTYPE2 *from)
                { /* void */ }
 
 #undef _nc_copy_termtype
@@ -3595,6 +3748,18 @@ void     _nc_copy_termtype(
                const TERMTYPE *src)
                { /* void */ }
 
+#undef _nc_copy_termtype2
+void   _nc_copy_termtype2(
+               TERMTYPE2 *dst, 
+               const TERMTYPE2 *src)
+               { /* void */ }
+
+#undef _nc_export_termtype2
+void   _nc_export_termtype2(
+               TERMTYPE *dst, 
+               const TERMTYPE2 *src)
+               { /* void */ }
+
 /* ./codes.c */
 
 #undef boolcodes
@@ -3687,6 +3852,21 @@ struct name_table_entry const *_nc_find_type_entry(
                NCURSES_BOOL termcap)
                { return(*(struct name_table_entry const **)0); }
 
+#undef _nc_find_user_entry
+struct user_table_entry const *_nc_find_user_entry(
+               const char *string)
+               { return(*(struct user_table_entry const **)0); }
+
+/* ./comp_userdefs.c */
+
+#undef _nc_get_userdefs_table
+const struct user_table_entry *_nc_get_userdefs_table(void)
+               { return(*(const struct user_table_entry **)0); }
+
+#undef _nc_get_hash_user
+const HashData *_nc_get_hash_user(void)
+               { return(*(const HashData **)0); }
+
 /* ./tinfo/db_iterator.c */
 
 #undef _nc_tic_dir
@@ -3733,7 +3913,7 @@ ENTRY     *_nc_tail;
 #undef _nc_free_entry
 void   _nc_free_entry(
                ENTRY   *headp, 
-               TERMTYPE *tterm)
+               TERMTYPE2 *tterm)
                { /* void */ }
 
 #undef _nc_free_entries
@@ -3741,18 +3921,17 @@ void    _nc_free_entries(
                ENTRY   *headp)
                { /* void */ }
 
-#undef _nc_delink_entry
-ENTRY  *_nc_delink_entry(
-               ENTRY   *headp, 
-               TERMTYPE *tterm)
-               { return(*(ENTRY **)0); }
-
 #undef _nc_leaks_tinfo
 void   _nc_leaks_tinfo(void)
                { /* void */ }
 
 /* ./fallback.c */
 
+#undef _nc_fallback2
+const TERMTYPE2 *_nc_fallback2(
+               const char *name)
+               { return(*(const TERMTYPE2 **)0); }
+
 #undef _nc_fallback
 const TERMTYPE *_nc_fallback(
                const char *name)
@@ -3765,6 +3944,11 @@ void     _nc_free_termtype(
                TERMTYPE *ptr)
                { /* void */ }
 
+#undef _nc_free_termtype2
+void   _nc_free_termtype2(
+               TERMTYPE2 *ptr)
+               { /* void */ }
+
 #undef _nc_user_definable
 NCURSES_BOOL _nc_user_definable;
 
@@ -3816,8 +4000,8 @@ void      _nc_init_acs(void)
 /* ./tinfo/lib_baudrate.c */
 
 struct speed {
-    short s
-    int sp
+    int given_speed
+    int actual_speed
 };
 
 #undef _nc_baudrate
@@ -4210,7 +4394,7 @@ void      _nc_update_screensize(
 #undef _nc_setup_tinfo
 int    _nc_setup_tinfo(
                const char *const tn, 
-               TERMTYPE *const tp)
+               TERMTYPE2 *const tp)
                { return(*(int *)0); }
 
 #undef _nc_tinfo_cmdch
@@ -4557,6 +4741,13 @@ WINDOW   *_nc_retrace_win(
                WINDOW  *code)
                { return(*(WINDOW **)0); }
 
+#undef _nc_fmt_funcptr
+char   *_nc_fmt_funcptr(
+               char    *target, 
+               const char *source, 
+               size_t  size)
+               { return(*(char **)0); }
+
 /* ./trace/lib_traceatr.c */
 
 #undef _traceattr2
@@ -4615,11 +4806,6 @@ char     *_tracecchar_t(
 
 /* ./trace/lib_tracebits.c */
 
-typedef struct {
-    unsigned int val;
-    const char name[8];
-} BITNAMES;
-
 #undef _nc_trace_ttymode
 char   *_nc_trace_ttymode(
                struct termios *tty)
@@ -4778,12 +4964,12 @@ void    _nc_set_buffer(
 
 #undef _nc_init_termtype
 void   _nc_init_termtype(
-               TERMTYPE *const tp)
+               TERMTYPE2 *const tp)
                { /* void */ }
 
 #undef _nc_read_termtype
 int    _nc_read_termtype(
-               TERMTYPE *ptr, 
+               TERMTYPE2 *ptr, 
                char    *buffer, 
                int     limit)
                { return(*(int *)0); }
@@ -4791,7 +4977,14 @@ int      _nc_read_termtype(
 #undef _nc_read_file_entry
 int    _nc_read_file_entry(
                const char *const filename, 
-               TERMTYPE *ptr)
+               TERMTYPE2 *ptr)
+               { return(*(int *)0); }
+
+#undef _nc_read_entry2
+int    _nc_read_entry2(
+               const char *const name, 
+               char    *const filename, 
+               TERMTYPE2 *const tp)
                { return(*(int *)0); }
 
 #undef _nc_read_entry
@@ -4803,9 +4996,11 @@ int      _nc_read_entry(
 
 /* ./tinfo/read_termcap.c */
 
-#undef _nc_read_termcap
-void   _nc_read_termcap(void)
-               { /* void */ }
+#undef _nc_read_termcap_entry
+int    _nc_read_termcap_entry(
+               const char *const tn, 
+               TERMTYPE2 *const tp)
+               { return(*(int *)0); }
 
 /* ./tinfo/strings.c */
 
@@ -4887,7 +5082,7 @@ int       _nc_remove_string(
 
 #undef _nc_trim_sgr0
 char   *_nc_trim_sgr0(
-               TERMTYPE *tp)
+               TERMTYPE2 *tp)
                { return(*(char **)0); }
 
 /* ./unctrl.c */
@@ -4961,7 +5156,7 @@ const char *_nc_viscbuf(
 
 #undef _nc_init_entry
 void   _nc_init_entry(
-               TERMTYPE *const tp)
+               ENTRY   *const tp)
                { /* void */ }
 
 #undef _nc_copy_entry
@@ -4982,8 +5177,8 @@ void      _nc_wrap_entry(
 
 #undef _nc_merge_entry
 void   _nc_merge_entry(
-               TERMTYPE *const to
-               TERMTYPE *const from)
+               ENTRY   *const target
+               ENTRY   *const source)
                { /* void */ }
 
 /* ./tinfo/captoinfo.c */
@@ -5015,11 +5210,8 @@ char     *_nc_tic_expand(
 
 #undef _nc_check_termtype2
 void   (*_nc_check_termtype2)(
-               TERMTYPE *p1, 
+               TERMTYPE2 *p1, 
                NCURSES_BOOL p2);
-#undef _nc_check_termtype
-void   (*_nc_check_termtype)(
-               TERMTYPE *p1);
 
 #undef _nc_entry_match
 NCURSES_BOOL _nc_entry_match(
@@ -5043,11 +5235,6 @@ int      _nc_resolve_uses2(
                NCURSES_BOOL literal)
                { return(*(int *)0); }
 
-#undef _nc_resolve_uses
-int    _nc_resolve_uses(
-               NCURSES_BOOL fullresolve)
-               { return(*(int *)0); }
-
 /* ./tinfo/comp_scan.c */
 
 #undef _nc_syntax
@@ -5098,7 +5285,7 @@ void      _nc_panic_mode(
 
 #undef _nc_parse_entry
 int    _nc_parse_entry(
-               struct entry *entryp, 
+               ENTRY   *entryp, 
                int     literal, 
                NCURSES_BOOL silent)
                { return(*(int *)0); }
@@ -5109,11 +5296,6 @@ int      _nc_capcmp(
                const char *t)
                { return(*(int *)0); }
 
-typedef struct {
-    const char from[3];
-    const char to[6];
-} assoc;
-
 /* ./tinfo/write_entry.c */
 
 #undef _nc_set_writedir
@@ -5123,9 +5305,17 @@ void     _nc_set_writedir(
 
 #undef _nc_write_entry
 void   _nc_write_entry(
-               TERMTYPE *const tp)
+               TERMTYPE2 *const tp)
                { /* void */ }
 
+#undef _nc_write_object
+int    _nc_write_object(
+               TERMTYPE2 *tp, 
+               char    *buffer, 
+               unsigned *offset, 
+               unsigned limit)
+               { return(*(int *)0); }
+
 #undef _nc_tic_written
 int    _nc_tic_written(void)
                { return(*(int *)0); }