aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/include
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/include')
-rw-r--r--contrib/ncurses/include/Caps78
-rw-r--r--contrib/ncurses/include/MKterm.h.awk.in100
-rw-r--r--contrib/ncurses/include/Makefile.in6
-rw-r--r--contrib/ncurses/include/curses.h.in814
-rw-r--r--contrib/ncurses/include/headers3
-rw-r--r--contrib/ncurses/include/nc_panel.h6
-rw-r--r--contrib/ncurses/include/ncurses_defs5
-rw-r--r--contrib/ncurses/include/ncurses_dll.h41
-rw-r--r--contrib/ncurses/include/term_entry.h53
-rw-r--r--contrib/ncurses/include/termcap.h.in37
-rw-r--r--contrib/ncurses/include/tic.h92
-rw-r--r--contrib/ncurses/include/unctrl.h.in12
12 files changed, 626 insertions, 621 deletions
diff --git a/contrib/ncurses/include/Caps b/contrib/ncurses/include/Caps
index 62054fe8d085..0e485082a0e6 100644
--- a/contrib/ncurses/include/Caps
+++ b/contrib/ncurses/include/Caps
@@ -29,7 +29,7 @@
# Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995
# and: Eric S. Raymond <esr@snark.thyrsus.com>
#
-# $Id: Caps,v 1.28 2000/10/01 02:07:36 tom Exp $
+# $Id: Caps,v 1.31 2001/05/05 21:01:27 tom Exp $
#
# This is the master termcap/terminfo capability table.
#
@@ -594,11 +594,11 @@ key_f62 kf62 str Fq ----E F62 function key
key_f63 kf63 str Fr ----E F63 function key
clr_bol el1 str cb ----- Clear to beginning of line
clear_margins mgc str MC ----- clear right and left soft margins
-set_left_margin smgl str ML ----- set left soft margin at current column
+set_left_margin smgl str ML ----- set left soft margin at current column. See smgl. (ML is not in BSD termcap).
set_right_margin smgr str MR ----- set right soft margin at current column
label_format fln str Lf ----- label format
set_clock sclk str SC ----- set clock, #1 hrs #2 mins #3 secs
-display_clock dclk str DK ----- display clock at (#1,#2)
+display_clock dclk str DK ----- display clock
remove_clock rmclk str RC ----- remove clock
create_window cwin str CW ----- define a window #1 from #2,#3 to #4,#5
goto_window wingo str WG ----- go to window #1
@@ -637,7 +637,7 @@ change_char_pitch cpi str ZA ----- Change number of characters per inch to #1
change_line_pitch lpi str ZB ----- Change number of lines per inch to #1
change_res_horz chr str ZC ----- Change horizontal resolution to #1
change_res_vert cvr str ZD ----- Change vertical resolution to #1
-define_char defc str ZE ----- Define a character
+define_char defc str ZE ----- Define a character #1, #2 dots wide, descender #3
enter_doublewide_mode swidm str ZF ----- Enter double-wide mode
enter_draft_quality sdrfq str ZG ----- Enter draft-quality mode
enter_italics_mode sitm str ZH ----- Enter italic mode
@@ -670,15 +670,15 @@ parm_right_micro mcuf str Zh ----- Like parm_right_cursor in micro mode
parm_up_micro mcuu str Zi ----- Like parm_up_cursor in micro mode
select_char_set scs str Zj ----- Select character set, #1
set_bottom_margin smgb str Zk ----- Set bottom margin at current line
-set_bottom_margin_parm smgbp str Zl ----- Set bottom margin at line #1 or #2 lines from bottom
-set_left_margin_parm smglp str Zm ----- Set left (right) margin at column #1 (#2)
+set_bottom_margin_parm smgbp str Zl ----- Set bottom margin at line #1 or (if smgtp is not given) #2 lines from bottom
+set_left_margin_parm smglp str Zm ----- Set left (right) margin at column #1
set_right_margin_parm smgrp str Zn ----- Set right margin at column #1
set_top_margin smgt str Zo ----- Set top margin at current line
-set_top_margin_parm smgtp str Zp ----- Set top (bottom) margin at row #1 (#2)
+set_top_margin_parm smgtp str Zp ----- Set top (bottom) margin at row #1
start_bit_image sbim str Zq ----- Start printing bit image graphics
-start_char_set_def scsd str Zr ----- Start character set definition
+start_char_set_def scsd str Zr ----- Start character set definition #1, with #2 characters in the set
stop_bit_image rbim str Zs ----- Stop printing bit image graphics
-stop_char_set_def rcsd str Zt ----- End definition of character set
+stop_char_set_def rcsd str Zt ----- End definition of character set #1
subscript_characters subcs str Zu ----- List of subscriptable characters
superscript_characters supcs str Zv ----- List of superscriptable characters
these_cause_cr docr str Zw ----- Printing any of these characters causes CR
@@ -697,7 +697,7 @@ zero_motion zerom str Zx ----- No motion for subsequent character
#%lw25 lw6 lw2 lw18.
#%\fBVariable Cap- TCap Description\fR
#%\fBString name Code\fR
-char_set_names csnm str Zy ----- List of character set names
+char_set_names csnm str Zy ----- Produce #1'th item from list of character set names
key_mouse kmous str Km ----- Mouse event has occurred
mouse_info minfo str Mi ----- Mouse status information
req_mouse_pos reqmp str RQ ----- Request mouse position
@@ -711,7 +711,7 @@ set0_des_seq s0ds str s0 ----- Shift to code set 0 (EUC set 0, ASCII)
set1_des_seq s1ds str s1 ----- Shift to code set 1
set2_des_seq s2ds str s2 ----- Shift to code set 2
set3_des_seq s3ds str s3 ----- Shift to code set 3
-set_lr_margin smglr str ML ----- Set both left and right margins to #1, #2
+set_lr_margin smglr str ML ----- Set both left and right margins to #1, #2. (ML is not in BSD termcap).
set_tb_margin smgtb str MT ----- Sets both top and bottom margins to #1, #2
bit_image_repeat birep str Xy ----- Repeat bit image cell #1 #2 times
bit_image_newline binel str Zz ----- Move to next row of the bit image
@@ -1122,62 +1122,10 @@ box_chars_1 box1 str bx ----K box characters primary set
#key_sf8 ksf8 str S8 ----K special function key 8
#key_sf9 ksf9 str S9 ----K special function key 9
#key_sf10 ksf10 str SA ----K special function key 10
+# AIX version 3 documents different codes for F11, F12 and does not mention
+# F13-F64. AIX version 4 uses the same naming for F0-F63 as above.
#key_f11 kf11 str k< ----- function key 11
#key_f12 kf12 str k> ----- function key 12
-# The key_f13 through key_f64 capabilities aren't described in
-# the IBM manual pages, so the cap name strings are guesses. The terminfo
-# names are almost certainly right, the termcap ones certainly wrong.
-#key_f13 kf13 str k+ ----- function key 13
-#key_f14 kf14 str k+ ----- function key 14
-#key_f15 kf15 str k+ ----- function key 15
-#key_f16 kf16 str k+ ----- function key 16
-#key_f17 kf17 str k+ ----- function key 17
-#key_f18 kf18 str k+ ----- function key 18
-#key_f19 kf19 str k+ ----- function key 19
-#key_f20 kf20 str k+ ----- function key 20
-#key_f21 kf21 str k+ ----- function key 21
-#key_f22 kf22 str k+ ----- function key 22
-#key_f23 kf23 str k+ ----- function key 23
-#key_f24 kf24 str k+ ----- function key 24
-#key_f25 kf25 str k+ ----- function key 25
-#key_f26 kf26 str k+ ----- function key 26
-#key_f27 kf26 str k+ ----- function key 26
-#key_f28 kf28 str k+ ----- function key 28
-#key_f29 kf29 str k+ ----- function key 29
-#key_f30 kf30 str k+ ----- function key 30
-#key_f31 kf31 str k+ ----- function key 31
-#key_f32 kf31 str k+ ----- function key 32
-#key_f33 kf33 str k+ ----- function key 33
-#key_f34 kf34 str k+ ----- function key 34
-#key_f35 kf35 str k+ ----- function key 35
-#key_f36 kf36 str k+ ----- function key 36
-#key_f37 kf37 str k+ ----- function key 37
-#key_f38 kf38 str k+ ----- function key 38
-#key_f39 kf39 str k+ ----- function key 39
-#key_f40 kf40 str k+ ----- function key 40
-#key_f41 kf41 str k+ ----- function key 41
-#key_f42 kf42 str k+ ----- function key 42
-#key_f43 kf43 str k+ ----- function key 43
-#key_f44 kf44 str k+ ----- function key 44
-#key_f45 kf45 str k+ ----- function key 45
-#key_f46 kf46 str k+ ----- function key 46
-#key_f47 kf47 str k+ ----- function key 47
-#key_f48 kf48 str k+ ----- function key 48
-#key_f49 kf49 str k+ ----- function key 49
-#key_f50 kf50 str k+ ----- function key 50
-#key_f51 kf51 str k+ ----- function key 51
-#key_f52 kf52 str k+ ----- function key 52
-#key_f53 kf53 str k+ ----- function key 53
-#key_f54 kf54 str k+ ----- function key 54
-#key_f55 kf55 str k+ ----- function key 55
-#key_f56 kf56 str k+ ----- function key 56
-#key_f57 kf57 str k+ ----- function key 57
-#key_f58 kf58 str k+ ----- function key 58
-#key_f59 kf59 str k+ ----- function key 59
-#key_f60 kf60 str k+ ----- function key 60
-#key_f61 kf61 str k+ ----- function key 61
-#key_f62 kf62 str k+ ----- function key 62
-#key_f63 kf63 str k+ ----- function key 63
# Undocumented capabilities end here.
#key_action kact str kJ ----K sent by action key
# The IBM docs say these capabilities are for table-drawing, and are
diff --git a/contrib/ncurses/include/MKterm.h.awk.in b/contrib/ncurses/include/MKterm.h.awk.in
index e839cf4ac6a0..efca636fb32e 100644
--- a/contrib/ncurses/include/MKterm.h.awk.in
+++ b/contrib/ncurses/include/MKterm.h.awk.in
@@ -33,18 +33,20 @@ BEGIN {
print "/* and: Eric S. Raymond <esr@snark.thyrsus.com> */"
print "/****************************************************************************/"
print ""
- print "/* $Id: MKterm.h.awk.in,v 1.37 2000/03/12 02:40:07 tom Exp $ */"
+ print "/* $Id: MKterm.h.awk.in,v 1.39 2001/03/24 21:53:32 tom Exp $ */"
print ""
print "/*"
print "** term.h -- Definition of struct term"
print "*/"
print ""
- print "#ifndef _NCU_TERM_H"
- print "#define _NCU_TERM_H 1"
+ print "#ifndef NCURSES_TERM_H_incl"
+ print "#define NCURSES_TERM_H_incl 1"
print ""
print "#undef NCURSES_VERSION"
print "#define NCURSES_VERSION \"@NCURSES_MAJOR@.@NCURSES_MINOR@\""
print ""
+ print "#include <ncurses_dll.h>"
+ print ""
print "#ifdef __cplusplus"
print "extern \"C\" {"
print "#endif"
@@ -232,7 +234,7 @@ END {
print " int _baudrate; /* used to compute padding */"
print "} TERMINAL;"
print ""
- print "extern TERMINAL *cur_term;"
+ print "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
print ""
print "#if BROKEN_LINKER"
print "#define boolnames _nc_boolnames()"
@@ -245,71 +247,71 @@ END {
print "#define strcodes _nc_strcodes()"
print "#define strfnames _nc_strfnames()"
print ""
- print "extern NCURSES_CONST char * const *_nc_boolnames(void);"
- print "extern NCURSES_CONST char * const *_nc_boolcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_boolfnames(void);"
- print "extern NCURSES_CONST char * const *_nc_numnames(void);"
- print "extern NCURSES_CONST char * const *_nc_numcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_numfnames(void);"
- print "extern NCURSES_CONST char * const *_nc_strnames(void);"
- print "extern NCURSES_CONST char * const *_nc_strcodes(void);"
- print "extern NCURSES_CONST char * const *_nc_strfnames(void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_boolfnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_numfnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strnames (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strcodes (void);"
+ print "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strfnames (void);"
print ""
print "#else"
print ""
- print "extern NCURSES_CONST char *const boolnames[];"
- print "extern NCURSES_CONST char *const boolcodes[];"
- print "extern NCURSES_CONST char *const boolfnames[];"
- print "extern NCURSES_CONST char *const numnames[];"
- print "extern NCURSES_CONST char *const numcodes[];"
- print "extern NCURSES_CONST char *const numfnames[];"
- print "extern NCURSES_CONST char *const strnames[];"
- print "extern NCURSES_CONST char *const strcodes[];"
- print "extern NCURSES_CONST char *const strfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) numfnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strnames[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strcodes[];"
+ print "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) strfnames[];"
print ""
print "#endif"
print ""
print "/* internals */"
- print "extern int _nc_set_tty_mode(TTY *buf);"
- print "extern int _nc_get_tty_mode(TTY *buf);"
- print "extern int _nc_read_entry(const char * const, char * const, TERMTYPE *const);"
- print "extern int _nc_read_file_entry(const char *const, TERMTYPE *);"
- print "extern char *_nc_first_name(const char *const);"
- print "extern int _nc_name_match(const char *const, const char *const, const char *const);"
- print "extern int _nc_read_termcap_entry(const char *const, TERMTYPE *const);"
- print "extern const TERMTYPE *_nc_fallback(const char *);"
+ print "extern NCURSES_EXPORT(int) _nc_set_tty_mode (TTY *buf);"
+ print "extern NCURSES_EXPORT(int) _nc_get_tty_mode (TTY *buf);"
+ print "extern NCURSES_EXPORT(int) _nc_read_entry (const char * const, char * const, TERMTYPE *const);"
+ print "extern NCURSES_EXPORT(int) _nc_read_file_entry (const char *const, TERMTYPE *);"
+ print "extern NCURSES_EXPORT(char *) _nc_first_name (const char *const);"
+ print "extern NCURSES_EXPORT(int) _nc_name_match (const char *const, const char *const, const char *const);"
+ print "extern NCURSES_EXPORT(int) _nc_read_termcap_entry (const char *const, TERMTYPE *const);"
+ print "extern NCURSES_EXPORT(const TERMTYPE *) _nc_fallback (const char *);"
print ""
print "/* entry points */"
- print "extern TERMINAL *set_curterm(TERMINAL *);"
- print "extern int del_curterm(TERMINAL *);"
+ print "extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *);"
+ print "extern NCURSES_EXPORT(int) del_curterm (TERMINAL *);"
print ""
print "/* miscellaneous entry points */"
- print "extern int restartterm(NCURSES_CONST char *, int, int *);"
- print "extern int setupterm(NCURSES_CONST char *,int,int *);"
+ print "extern NCURSES_EXPORT(int) restartterm (NCURSES_CONST char *, int, int *);"
+ print "extern NCURSES_EXPORT(int) setupterm (NCURSES_CONST char *,int,int *);"
print ""
print "/* terminfo entry points, also declared in curses.h */"
print "#if !defined(__NCURSES_H)"
- print "extern char *tigetstr(NCURSES_CONST char *);"
- print "extern char *tparm(NCURSES_CONST char *, ...);"
- print "extern char ttytype[];"
- print "extern int putp(const char *);"
- print "extern int tigetflag(NCURSES_CONST char *);"
- print "extern int tigetnum(NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...);"
+ print "extern NCURSES_EXPORT_VAR(char) ttytype[];"
+ print "extern NCURSES_EXPORT(int) putp (const char *);"
+ print "extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);"
print "#endif /* __NCURSES_H */"
print ""
print "/* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */"
- print "#if !defined(_NCU_TERMCAP_H)"
- print "extern char *tgetstr(NCURSES_CONST char *, char **);"
- print "extern char *tgoto(const char *, int, int);"
- print "extern int tgetent(char *, const char *);"
- print "extern int tgetflag(NCURSES_CONST char *);"
- print "extern int tgetnum(NCURSES_CONST char *);"
- print "extern int tputs(const char *, int, int (*)(int));"
- print "#endif /* _NCU_TERMCAP_H */"
+ print "#if !defined(NCURSES_TERMCAP_H_incl)"
+ print "extern NCURSES_EXPORT(char *) tgetstr (NCURSES_CONST char *, char **);"
+ print "extern NCURSES_EXPORT(char *) tgoto (const char *, int, int);"
+ print "extern NCURSES_EXPORT(int) tgetent (char *, const char *);"
+ print "extern NCURSES_EXPORT(int) tgetflag (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tgetnum (NCURSES_CONST char *);"
+ print "extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));"
+ print "#endif /* NCURSES_TERMCAP_H_incl */"
print ""
print "#ifdef __cplusplus"
print "}"
print "#endif"
print ""
- print "#endif /* _NCU_TERM_H */"
+ print "#endif /* NCURSES_TERM_H_incl */"
}
diff --git a/contrib/ncurses/include/Makefile.in b/contrib/ncurses/include/Makefile.in
index 49190916d681..32f14217c897 100644
--- a/contrib/ncurses/include/Makefile.in
+++ b/contrib/ncurses/include/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.26 2000/09/02 17:53:40 tom Exp $
+# $Id: Makefile.in,v 1.27 2001/03/24 19:53:31 tom Exp $
##############################################################################
-# Copyright (c) 1998 Free Software Foundation, Inc. #
+# Copyright (c) 1998,2000,2001 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"), #
@@ -96,7 +96,7 @@ tags:
@MAKE_UPPER_TAGS@ etags *.[ch]
mostlyclean ::
- -rm -f core tags TAGS *~ *.ln *.atac trace
+ -rm -f core tags TAGS *~ *.i *.ln *.atac trace
clean :: mostlyclean
-rm -f $(AUTO_SRC)
diff --git a/contrib/ncurses/include/curses.h.in b/contrib/ncurses/include/curses.h.in
index 5b9e19be266d..b73d44f22c90 100644
--- a/contrib/ncurses/include/curses.h.in
+++ b/contrib/ncurses/include/curses.h.in
@@ -31,7 +31,7 @@
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
****************************************************************************/
-/* $Id: curses.h.in,v 1.96 2000/09/16 16:11:01 tom Exp $ */
+/* $Id: curses.h.in,v 1.97 2000/12/10 02:00:24 tom Exp $ */
#ifndef __NCURSES_H
#define __NCURSES_H
@@ -54,6 +54,8 @@
#undef NCURSES_VERSION
#define NCURSES_VERSION "@NCURSES_MAJOR@.@NCURSES_MINOR@"
+#include <ncurses_dll.h>
+
#ifdef NCURSES_NOMACROS
#define NCURSES_ATTR_T attr_t
#endif
@@ -123,8 +125,8 @@ extern "C" {
#define WA_VERTICAL A_VERTICAL
/* colors */
-extern int COLORS;
-extern int COLOR_PAIRS;
+extern NCURSES_EXPORT_VAR(int) COLORS;
+extern NCURSES_EXPORT_VAR(int) COLOR_PAIRS;
#define COLOR_BLACK 0
#define COLOR_RED 1
@@ -137,7 +139,7 @@ extern int COLOR_PAIRS;
/* line graphics */
-extern chtype acs_map[];
+extern NCURSES_EXPORT_VAR(chtype) acs_map[];
/* VT100 symbols begin here */
#define ACS_ULCORNER (acs_map['l']) /* upper left corner */
@@ -304,33 +306,33 @@ struct _win_st
NCURSES_SIZE_T _yoffset; /* real begy is _begy + _yoffset */
};
-extern WINDOW *stdscr;
-extern WINDOW *curscr;
-extern WINDOW *newscr;
+extern NCURSES_EXPORT_VAR(WINDOW *) stdscr;
+extern NCURSES_EXPORT_VAR(WINDOW *) curscr;
+extern NCURSES_EXPORT_VAR(WINDOW *) newscr;
-extern int LINES;
-extern int COLS;
-extern int TABSIZE;
+extern NCURSES_EXPORT_VAR(int) LINES;
+extern NCURSES_EXPORT_VAR(int) COLS;
+extern NCURSES_EXPORT_VAR(int) TABSIZE;
/*
* This global was an undocumented feature under AIX curses.
*/
-extern int ESCDELAY; /* ESC expire time in milliseconds */
+extern NCURSES_EXPORT_VAR(int) ESCDELAY; /* ESC expire time in milliseconds */
-extern char ttytype[]; /* needed for backward compatibility */
+extern NCURSES_EXPORT_VAR(char) ttytype[]; /* needed for backward compatibility */
/*
* These functions are extensions - not in XSI Curses.
*/
-extern char *keybound (int, int);
-extern const char *curses_version (void);
-extern int assume_default_colors (int, int);
-extern int define_key (char *, int);
-extern int keyok (int, bool);
-extern int resizeterm (int, int);
-extern int use_default_colors (void);
-extern int use_extended_names (bool);
-extern int wresize (WINDOW *, int, int);
+extern NCURSES_EXPORT(char *) keybound (int, int);
+extern NCURSES_EXPORT(const char *) curses_version (void);
+extern NCURSES_EXPORT(int) assume_default_colors (int, int);
+extern NCURSES_EXPORT(int) define_key (char *, int);
+extern NCURSES_EXPORT(int) keyok (int, bool);
+extern NCURSES_EXPORT(int) resizeterm (int, int);
+extern NCURSES_EXPORT(int) use_default_colors (void);
+extern NCURSES_EXPORT(int) use_extended_names (bool);
+extern NCURSES_EXPORT(int) wresize (WINDOW *, int, int);
/*
* GCC (and some other compilers) define '__attribute__'; we're using this
@@ -384,478 +386,478 @@ extern int wresize (WINDOW *, int, int);
* requirements.
*/
-extern int addch(const chtype); /* generated */
-extern int addchnstr(const chtype *, int); /* generated */
-extern int addchstr(const chtype *); /* generated */
-extern int addnstr(const char *, int); /* generated */
-extern int addstr(const char *); /* generated */
+extern NCURSES_EXPORT(int) addch (const chtype); /* generated */
+extern NCURSES_EXPORT(int) addchnstr (const chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) addchstr (const chtype *); /* generated */
+extern NCURSES_EXPORT(int) addnstr (const char *, int); /* generated */
+extern NCURSES_EXPORT(int) addstr (const char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int addnwstr(const wchar_t *, int); /* missing */
-extern int addwstr(const wchar_t *); /* missing */
-extern int add_wch(const cchar_t *); /* missing */
-extern int add_wchnstr(const cchar_t *, int); /* missing */
-extern int add_wchstr(const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) addnwstr (const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) addwstr (const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) add_wch (const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) add_wchnstr (const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) add_wchstr (const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int attroff(NCURSES_ATTR_T); /* generated */
-extern int attron(NCURSES_ATTR_T); /* generated */
-extern int attrset(NCURSES_ATTR_T); /* generated */
-extern int attr_get(attr_t *, short *, void *); /* generated */
-extern int attr_off(attr_t, void *); /* generated */
-extern int attr_on(attr_t, void *); /* generated */
-extern int attr_set(attr_t, short, void *); /* generated */
-extern int baudrate(void); /* implemented */
-extern int beep(void); /* implemented */
-extern int bkgd(chtype); /* generated */
-extern void bkgdset(chtype); /* generated */
+extern NCURSES_EXPORT(int) attroff (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attron (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attrset (NCURSES_ATTR_T); /* generated */
+extern NCURSES_EXPORT(int) attr_get (attr_t *, short *, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_off (attr_t, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_on (attr_t, void *); /* generated */
+extern NCURSES_EXPORT(int) attr_set (attr_t, short, void *); /* generated */
+extern NCURSES_EXPORT(int) baudrate (void); /* implemented */
+extern NCURSES_EXPORT(int) beep (void); /* implemented */
+extern NCURSES_EXPORT(int) bkgd (chtype); /* generated */
+extern NCURSES_EXPORT(void) bkgdset (chtype); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern void bkgrndset(const cchar_t *); /* missing */
-extern int bkgrnd(const cchar_t *); /* missing */
+extern NCURSES_EXPORT(void) bkgrndset (const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) bkgrnd (const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int border(chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */
+extern NCURSES_EXPORT(int) border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int border_set(const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* missing */
+extern NCURSES_EXPORT(int) border_set (const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int box(WINDOW *, chtype, chtype); /* generated */
+extern NCURSES_EXPORT(int) box (WINDOW *, chtype, chtype); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int box_set(WINDOW *, const cchar_t *, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) box_set (WINDOW *, const cchar_t *, const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern bool can_change_color(void); /* implemented */
-extern int cbreak(void); /* implemented */
-extern int chgat(int, attr_t, short, const void *); /* generated */
-extern int clear(void); /* generated */
-extern int clearok(WINDOW *,bool); /* implemented */
-extern int clrtobot(void); /* generated */
-extern int clrtoeol(void); /* generated */
-extern int color_content(short,short*,short*,short*); /* implemented */
-extern int color_set(short,void*); /* generated */
-extern int COLOR_PAIR(int); /* generated */
-extern int copywin(const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */
-extern int curs_set(int); /* implemented */
-extern int def_prog_mode(void); /* implemented */
-extern int def_shell_mode(void); /* implemented */
-extern int delay_output(int); /* implemented */
-extern int delch(void); /* generated */
-extern void delscreen(SCREEN *); /* implemented */
-extern int delwin(WINDOW *); /* implemented */
-extern int deleteln(void); /* generated */
-extern WINDOW *derwin(WINDOW *,int,int,int,int); /* implemented */
-extern int doupdate(void); /* implemented */
-extern WINDOW *dupwin(WINDOW *); /* implemented */
-extern int echo(void); /* implemented */
-extern int echochar(const chtype); /* generated */
-extern int erase(void); /* generated */
+extern NCURSES_EXPORT(bool) can_change_color (void); /* implemented */
+extern NCURSES_EXPORT(int) cbreak (void); /* implemented */
+extern NCURSES_EXPORT(int) chgat (int, attr_t, short, const void *); /* generated */
+extern NCURSES_EXPORT(int) clear (void); /* generated */
+extern NCURSES_EXPORT(int) clearok (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) clrtobot (void); /* generated */
+extern NCURSES_EXPORT(int) clrtoeol (void); /* generated */
+extern NCURSES_EXPORT(int) color_content (short,short*,short*,short*); /* implemented */
+extern NCURSES_EXPORT(int) color_set (short,void*); /* generated */
+extern NCURSES_EXPORT(int) COLOR_PAIR (int); /* generated */
+extern NCURSES_EXPORT(int) copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) curs_set (int); /* implemented */
+extern NCURSES_EXPORT(int) def_prog_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) def_shell_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) delay_output (int); /* implemented */
+extern NCURSES_EXPORT(int) delch (void); /* generated */
+extern NCURSES_EXPORT(void) delscreen (SCREEN *); /* implemented */
+extern NCURSES_EXPORT(int) delwin (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) deleteln (void); /* generated */
+extern NCURSES_EXPORT(WINDOW *) derwin (WINDOW *,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) doupdate (void); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) dupwin (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) echo (void); /* implemented */
+extern NCURSES_EXPORT(int) echochar (const chtype); /* generated */
+extern NCURSES_EXPORT(int) erase (void); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int echo_wchar(const cchar_t *); /* missing */
-extern int erasewchar(wchar_t*); /* missing */
+extern NCURSES_EXPORT(int) echo_wchar (const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) erasewchar (wchar_t*); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int endwin(void); /* implemented */
-extern char erasechar(void); /* implemented */
-extern void filter(void); /* implemented */
-extern int flash(void); /* implemented */
-extern int flushinp(void); /* implemented */
-extern chtype getbkgd(WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) endwin (void); /* implemented */
+extern NCURSES_EXPORT(char) erasechar (void); /* implemented */
+extern NCURSES_EXPORT(void) filter (void); /* implemented */
+extern NCURSES_EXPORT(int) flash (void); /* implemented */
+extern NCURSES_EXPORT(int) flushinp (void); /* implemented */
+extern NCURSES_EXPORT(chtype) getbkgd (WINDOW *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int getbkgrnd(cchar_t *); /* missing */
-extern int getcchar(const cchar_t *, wchar_t*, attr_t*, short*, void*); /* missing */
+extern NCURSES_EXPORT(int) getbkgrnd (cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) getcchar (const cchar_t *, wchar_t*, attr_t*, short*, void*); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int getch(void); /* generated */
-extern int getnstr(char *, int); /* generated */
+extern NCURSES_EXPORT(int) getch (void); /* generated */
+extern NCURSES_EXPORT(int) getnstr (char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int getn_wstr(wint_t *, int); /* missing */
+extern NCURSES_EXPORT(int) getn_wstr (wint_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int getstr(char *); /* generated */
+extern NCURSES_EXPORT(int) getstr (char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int get_wch(wint_t *); /* missing */
+extern NCURSES_EXPORT(int) get_wch (wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern WINDOW *getwin(FILE *); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) getwin (FILE *); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int get_wstr(wint_t *); /* missing */
+extern NCURSES_EXPORT(int) get_wstr (wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int halfdelay(int); /* implemented */
-extern bool has_colors(void); /* implemented */
-extern bool has_ic(void); /* implemented */
-extern bool has_il(void); /* implemented */
-extern int hline(chtype, int); /* generated */
+extern NCURSES_EXPORT(int) halfdelay (int); /* implemented */
+extern NCURSES_EXPORT(bool) has_colors (void); /* implemented */
+extern NCURSES_EXPORT(bool) has_ic (void); /* implemented */
+extern NCURSES_EXPORT(bool) has_il (void); /* implemented */
+extern NCURSES_EXPORT(int) hline (chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int hline_set(const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) hline_set (const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern void idcok(WINDOW *, bool); /* implemented */
-extern int idlok(WINDOW *, bool); /* implemented */
-extern void immedok(WINDOW *, bool); /* implemented */
-extern chtype inch(void); /* generated */
-extern int inchnstr(chtype *, int); /* generated */
-extern int inchstr(chtype *); /* generated */
-extern WINDOW *initscr(void); /* implemented */
-extern int init_color(short,short,short,short); /* implemented */
-extern int init_pair(short,short,short); /* implemented */
-extern int innstr(char *, int); /* generated */
+extern NCURSES_EXPORT(void) idcok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(int) idlok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(void) immedok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(chtype) inch (void); /* generated */
+extern NCURSES_EXPORT(int) inchnstr (chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) inchstr (chtype *); /* generated */
+extern NCURSES_EXPORT(WINDOW *) initscr (void); /* implemented */
+extern NCURSES_EXPORT(int) init_color (short,short,short,short); /* implemented */
+extern NCURSES_EXPORT(int) init_pair (short,short,short); /* implemented */
+extern NCURSES_EXPORT(int) innstr (char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int innwstr(wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) innwstr (wchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int insch(chtype); /* generated */
-extern int insdelln(int); /* generated */
-extern int insertln(void); /* generated */
-extern int insnstr(const char *, int); /* generated */
-extern int insstr(const char *); /* generated */
-extern int instr(char *); /* generated */
+extern NCURSES_EXPORT(int) insch (chtype); /* generated */
+extern NCURSES_EXPORT(int) insdelln (int); /* generated */
+extern NCURSES_EXPORT(int) insertln (void); /* generated */
+extern NCURSES_EXPORT(int) insnstr (const char *, int); /* generated */
+extern NCURSES_EXPORT(int) insstr (const char *); /* generated */
+extern NCURSES_EXPORT(int) instr (char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int ins_nwstr(const wchar_t *, int); /* missing */
-extern int ins_wch(const cchar_t *); /* missing */
-extern int ins_wstr(const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) ins_nwstr (const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) ins_wch (const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) ins_wstr (const wchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int intrflush(WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) intrflush (WINDOW *,bool); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int inwstr(wchar_t *); /* missing */
-extern int in_wch(NCURSES_CONST cchar_t *); /* missing */
-extern int in_wchstr(NCURSES_CONST cchar_t *); /* missing */
-extern int in_wchnstr(NCURSES_CONST cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) inwstr (wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) in_wch (NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) in_wchstr (NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) in_wchnstr (NCURSES_CONST cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern bool isendwin(void); /* implemented */
-extern bool is_linetouched(WINDOW *,int); /* implemented */
-extern bool is_wintouched(WINDOW *); /* implemented */
-extern NCURSES_CONST char *keyname(int); /* implemented */
+extern NCURSES_EXPORT(bool) isendwin (void); /* implemented */
+extern NCURSES_EXPORT(bool) is_linetouched (WINDOW *,int); /* implemented */
+extern NCURSES_EXPORT(bool) is_wintouched (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern char *key_name(wchar_t); /* missing */
+extern NCURSES_EXPORT(char *) key_name (wchar_t); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int keypad(WINDOW *,bool); /* implemented */
-extern char killchar(void); /* implemented */
+extern NCURSES_EXPORT(int) keypad (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(char) killchar (void); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int killwchar(wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) killwchar (wchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int leaveok(WINDOW *,bool); /* implemented */
-extern char *longname(void); /* implemented */
-extern int meta(WINDOW *,bool); /* implemented */
-extern int move(int, int); /* generated */
-extern int mvaddch(int, int, const chtype); /* generated */
-extern int mvaddchnstr(int, int, const chtype *, int); /* generated */
-extern int mvaddchstr(int, int, const chtype *); /* generated */
-extern int mvaddnstr(int, int, const char *, int); /* generated */
-extern int mvaddstr(int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) leaveok (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(char *) longname (void); /* implemented */
+extern NCURSES_EXPORT(int) meta (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) move (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddch (int, int, const chtype); /* generated */
+extern NCURSES_EXPORT(int) mvaddchnstr (int, int, const chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddchstr (int, int, const chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvaddnstr (int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvaddstr (int, int, const char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvaddnwstr(int, int, const wchar_t *, int); /* missing */
-extern int mvaddwstr(int, int, const wchar_t *); /* missing */
-extern int mvadd_wch(int, int, const cchar_t *); /* missing */
-extern int mvadd_wchnstr(int, int, const cchar_t *, int);/* missing */
-extern int mvadd_wchstr(int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvaddnwstr (int, int, const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvaddwstr (int, int, const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvadd_wch (int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvadd_wchnstr (int, int, const cchar_t *, int);/* missing */
+extern NCURSES_EXPORT(int) mvadd_wchstr (int, int, const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvchgat(int, int, int, attr_t, short, const void *); /* generated */
-extern int mvcur(int,int,int,int); /* implemented */
-extern int mvdelch(int, int); /* generated */
-extern int mvderwin(WINDOW *, int, int); /* implemented */
-extern int mvgetch(int, int); /* generated */
-extern int mvgetnstr(int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvchgat (int, int, int, attr_t, short, const void *); /* generated */
+extern NCURSES_EXPORT(int) mvcur (int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) mvdelch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvderwin (WINDOW *, int, int); /* implemented */
+extern NCURSES_EXPORT(int) mvgetch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvgetnstr (int, int, char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvgetn_wstr(int, int, wint_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvgetn_wstr (int, int, wint_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvgetstr(int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvgetstr (int, int, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvget_wch(int, int, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) mvget_wch (int, int, wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvget_wstr(int, int, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) mvget_wstr (int, int, wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvhline(int, int, chtype, int); /* generated */
+extern NCURSES_EXPORT(int) mvhline (int, int, chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvhline_set(int, int, const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvhline_set (int, int, const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern chtype mvinch(int, int); /* generated */
-extern int mvinchnstr(int, int, chtype *, int); /* generated */
-extern int mvinchstr(int, int, chtype *); /* generated */
-extern int mvinnstr(int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(chtype) mvinch (int, int); /* generated */
+extern NCURSES_EXPORT(int) mvinchnstr (int, int, chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) mvinchstr (int, int, chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvinnstr (int, int, char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvinnwstr(int, int, wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvinnwstr (int, int, wchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvinsch(int, int, chtype); /* generated */
-extern int mvinsnstr(int, int, const char *, int); /* generated */
-extern int mvinsstr(int, int, const char *); /* generated */
-extern int mvinstr(int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvinsch (int, int, chtype); /* generated */
+extern NCURSES_EXPORT(int) mvinsnstr (int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvinsstr (int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) mvinstr (int, int, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvins_nwstr(int, int, const wchar_t *, int); /* missing */
-extern int mvins_wch(int, int, const cchar_t *); /* missing */
-extern int mvins_wstr(int, int, const wchar_t *); /* missing */
-extern int mvinwstr(int, int, wchar_t *); /* missing */
-extern int mvin_wch(int, int, NCURSES_CONST cchar_t *); /* missing */
-extern int mvin_wchstr(int, int, NCURSES_CONST cchar_t *); /* missing */
-extern int mvin_wchnstr(int, int, NCURSES_CONST cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvins_nwstr (int, int, const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvins_wch (int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvins_wstr (int, int, const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvinwstr (int, int, wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvin_wch (int, int, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvin_wchstr (int, int, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvin_wchnstr (int, int, NCURSES_CONST cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvprintw(int,int, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) mvprintw (int,int, NCURSES_CONST char *,...) /* implemented */
GCC_PRINTFLIKE(3,4);
-extern int mvscanw(int,int, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) mvscanw (int,int, NCURSES_CONST char *,...) /* implemented */
GCC_SCANFLIKE(3,4);
-extern int mvvline(int, int, chtype, int); /* generated */
+extern NCURSES_EXPORT(int) mvvline (int, int, chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvvline_set(int, int, const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvvline_set (int, int, const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwaddch(WINDOW *, int, int, const chtype); /* generated */
-extern int mvwaddchnstr(WINDOW *, int, int, const chtype *, int);/* generated */
-extern int mvwaddchstr(WINDOW *, int, int, const chtype *); /* generated */
-extern int mvwaddnstr(WINDOW *, int, int, const char *, int); /* generated */
-extern int mvwaddstr(WINDOW *, int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) mvwaddch (WINDOW *, int, int, const chtype); /* generated */
+extern NCURSES_EXPORT(int) mvwaddchnstr (WINDOW *, int, int, const chtype *, int);/* generated */
+extern NCURSES_EXPORT(int) mvwaddchstr (WINDOW *, int, int, const chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvwaddnstr (WINDOW *, int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvwaddstr (WINDOW *, int, int, const char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwaddnwstr(WINDOW *, int, int, const wchar_t *, int);/* missing */
-extern int mvwaddwstr(WINDOW *, int, int, const wchar_t *); /* missing */
-extern int mvwadd_wch(WINDOW *, int, int, const cchar_t *); /* missing */
-extern int mvwadd_wchnstr(WINDOW *, int, int, const cchar_t *, int); /* missing */
-extern int mvwadd_wchstr(WINDOW *, int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwaddnwstr (WINDOW *, int, int, const wchar_t *, int);/* missing */
+extern NCURSES_EXPORT(int) mvwaddwstr (WINDOW *, int, int, const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwadd_wch (WINDOW *, int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwadd_wchnstr (WINDOW *, int, int, const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvwadd_wchstr (WINDOW *, int, int, const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwchgat(WINDOW *, int, int, int, attr_t, short, const void *);/* generated */
-extern int mvwdelch(WINDOW *, int, int); /* generated */
-extern int mvwgetch(WINDOW *, int, int); /* generated */
-extern int mvwgetnstr(WINDOW *, int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *);/* generated */
+extern NCURSES_EXPORT(int) mvwdelch (WINDOW *, int, int); /* generated */
+extern NCURSES_EXPORT(int) mvwgetch (WINDOW *, int, int); /* generated */
+extern NCURSES_EXPORT(int) mvwgetnstr (WINDOW *, int, int, char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwgetn_wstr(WINDOW *, int, int, wint_t *, int);/* missing */
+extern NCURSES_EXPORT(int) mvwgetn_wstr (WINDOW *, int, int, wint_t *, int);/* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwgetstr(WINDOW *, int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvwgetstr (WINDOW *, int, int, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwget_wch(WINDOW *, int, int, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwget_wch (WINDOW *, int, int, wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwget_wstr(WINDOW *, int, int, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwget_wstr (WINDOW *, int, int, wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwhline(WINDOW *, int, int, chtype, int); /* generated */
+extern NCURSES_EXPORT(int) mvwhline (WINDOW *, int, int, chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwhline_set(WINDOW *, int, int, const cchar_t *, int);/* missing */
+extern NCURSES_EXPORT(int) mvwhline_set (WINDOW *, int, int, const cchar_t *, int);/* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwin(WINDOW *,int,int); /* implemented */
-extern chtype mvwinch(WINDOW *, int, int); /* generated */
-extern int mvwinchnstr(WINDOW *, int, int, chtype *, int); /* generated */
-extern int mvwinchstr(WINDOW *, int, int, chtype *); /* generated */
-extern int mvwinnstr(WINDOW *, int, int, char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvwin (WINDOW *,int,int); /* implemented */
+extern NCURSES_EXPORT(chtype) mvwinch (WINDOW *, int, int); /* generated */
+extern NCURSES_EXPORT(int) mvwinchnstr (WINDOW *, int, int, chtype *, int); /* generated */
+extern NCURSES_EXPORT(int) mvwinchstr (WINDOW *, int, int, chtype *); /* generated */
+extern NCURSES_EXPORT(int) mvwinnstr (WINDOW *, int, int, char *, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwinnwstr(WINDOW *, int, int, wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) mvwinnwstr (WINDOW *, int, int, wchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwinsch(WINDOW *, int, int, chtype); /* generated */
-extern int mvwinsnstr(WINDOW *, int, int, const char *, int); /* generated */
-extern int mvwinsstr(WINDOW *, int, int, const char *); /* generated */
-extern int mvwinstr(WINDOW *, int, int, char *); /* generated */
+extern NCURSES_EXPORT(int) mvwinsch (WINDOW *, int, int, chtype); /* generated */
+extern NCURSES_EXPORT(int) mvwinsnstr (WINDOW *, int, int, const char *, int); /* generated */
+extern NCURSES_EXPORT(int) mvwinsstr (WINDOW *, int, int, const char *); /* generated */
+extern NCURSES_EXPORT(int) mvwinstr (WINDOW *, int, int, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwins_nwstr(WINDOW *, int,int, const wchar_t *,int); /* missing */
-extern int mvwins_wch(WINDOW *, int, int, const cchar_t *); /* missing */
-extern int mvwins_wstr(WINDOW *, int, int, const wchar_t *); /* missing */
-extern int mvwinwstr(WINDOW *, int, int, wchar_t *); /* missing */
-extern int mvwin_wch(WINDOW *, int, int, NCURSES_CONST cchar_t *); /* missing */
-extern int mvwin_wchnstr(WINDOW *, int,int, NCURSES_CONST cchar_t *,int); /* missing */
-extern int mvwin_wchstr(WINDOW *, int, int, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwins_nwstr (WINDOW *, int,int, const wchar_t *,int); /* missing */
+extern NCURSES_EXPORT(int) mvwins_wch (WINDOW *, int, int, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwins_wstr (WINDOW *, int, int, const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwinwstr (WINDOW *, int, int, wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwin_wch (WINDOW *, int, int, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) mvwin_wchnstr (WINDOW *, int,int, NCURSES_CONST cchar_t *,int); /* missing */
+extern NCURSES_EXPORT(int) mvwin_wchstr (WINDOW *, int, int, NCURSES_CONST cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int mvwprintw(WINDOW*,int,int, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) mvwprintw (WINDOW*,int,int, NCURSES_CONST char *,...) /* implemented */
GCC_PRINTFLIKE(4,5);
-extern int mvwscanw(WINDOW *,int,int, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) mvwscanw (WINDOW *,int,int, NCURSES_CONST char *,...) /* implemented */
GCC_SCANFLIKE(4,5);
-extern int mvwvline(WINDOW *,int, int, chtype, int); /* generated */
+extern NCURSES_EXPORT(int) mvwvline (WINDOW *,int, int, chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int mvwvline_set(WINDOW *, int,int, const cchar_t *,int); /* missing */
+extern NCURSES_EXPORT(int) mvwvline_set (WINDOW *, int,int, const cchar_t *,int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int napms(int); /* implemented */
-extern WINDOW *newpad(int,int); /* implemented */
-extern SCREEN *newterm(NCURSES_CONST char *,FILE *,FILE *); /* implemented */
-extern WINDOW *newwin(int,int,int,int); /* implemented */
-extern int nl(void); /* implemented */
-extern int nocbreak(void); /* implemented */
-extern int nodelay(WINDOW *,bool); /* implemented */
-extern int noecho(void); /* implemented */
-extern int nonl(void); /* implemented */
-extern void noqiflush(void); /* implemented */
-extern int noraw(void); /* implemented */
-extern int notimeout(WINDOW *,bool); /* implemented */
-extern int overlay(const WINDOW*,WINDOW *); /* implemented */
-extern int overwrite(const WINDOW*,WINDOW *); /* implemented */
-extern int pair_content(short,short*,short*); /* implemented */
-extern int PAIR_NUMBER(int); /* generated */
-extern int pechochar(WINDOW *, const chtype); /* implemented */
+extern NCURSES_EXPORT(int) napms (int); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) newpad (int,int); /* implemented */
+extern NCURSES_EXPORT(SCREEN *) newterm (NCURSES_CONST char *,FILE *,FILE *); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) newwin (int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) nl (void); /* implemented */
+extern NCURSES_EXPORT(int) nocbreak (void); /* implemented */
+extern NCURSES_EXPORT(int) nodelay (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) noecho (void); /* implemented */
+extern NCURSES_EXPORT(int) nonl (void); /* implemented */
+extern NCURSES_EXPORT(void) noqiflush (void); /* implemented */
+extern NCURSES_EXPORT(int) noraw (void); /* implemented */
+extern NCURSES_EXPORT(int) notimeout (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) overlay (const WINDOW*,WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) overwrite (const WINDOW*,WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) pair_content (short,short*,short*); /* implemented */
+extern NCURSES_EXPORT(int) PAIR_NUMBER (int); /* generated */
+extern NCURSES_EXPORT(int) pechochar (WINDOW *, const chtype); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int pecho_wchar(WINDOW *, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) pecho_wchar (WINDOW *, const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int pnoutrefresh(WINDOW*,int,int,int,int,int,int);/* implemented */
-extern int prefresh(WINDOW *,int,int,int,int,int,int); /* implemented */
-extern int printw(NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) pnoutrefresh (WINDOW*,int,int,int,int,int,int);/* implemented */
+extern NCURSES_EXPORT(int) prefresh (WINDOW *,int,int,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) printw (NCURSES_CONST char *,...) /* implemented */
GCC_PRINTFLIKE(1,2);
-extern int putp(const char *); /* implemented */
-extern int putwin(WINDOW *, FILE *); /* implemented */
-extern void qiflush(void); /* implemented */
-extern int raw(void); /* implemented */
-extern int redrawwin(WINDOW *); /* generated */
-extern int refresh(void); /* generated */
-extern int resetty(void); /* implemented */
-extern int reset_prog_mode(void); /* implemented */
-extern int reset_shell_mode(void); /* implemented */
-extern int ripoffline(int, int (*init)(WINDOW *, int)); /* implemented */
-extern int savetty(void); /* implemented */
-extern int scanw(NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) putp (const char *); /* implemented */
+extern NCURSES_EXPORT(int) putwin (WINDOW *, FILE *); /* implemented */
+extern NCURSES_EXPORT(void) qiflush (void); /* implemented */
+extern NCURSES_EXPORT(int) raw (void); /* implemented */
+extern NCURSES_EXPORT(int) redrawwin (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) refresh (void); /* generated */
+extern NCURSES_EXPORT(int) resetty (void); /* implemented */
+extern NCURSES_EXPORT(int) reset_prog_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) reset_shell_mode (void); /* implemented */
+extern NCURSES_EXPORT(int) ripoffline (int, int (*init)(WINDOW *, int)); /* implemented */
+extern NCURSES_EXPORT(int) savetty (void); /* implemented */
+extern NCURSES_EXPORT(int) scanw (NCURSES_CONST char *,...) /* implemented */
GCC_SCANFLIKE(1,2);
-extern int scr_dump(const char *); /* implemented */
-extern int scr_init(const char *); /* implemented */
-extern int scrl(int); /* generated */
-extern int scroll(WINDOW *); /* generated */
-extern int scrollok(WINDOW *,bool); /* implemented */
-extern int scr_restore(const char *); /* implemented */
-extern int scr_set(const char *); /* implemented */
+extern NCURSES_EXPORT(int) scr_dump (const char *); /* implemented */
+extern NCURSES_EXPORT(int) scr_init (const char *); /* implemented */
+extern NCURSES_EXPORT(int) scrl (int); /* generated */
+extern NCURSES_EXPORT(int) scroll (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) scrollok (WINDOW *,bool); /* implemented */
+extern NCURSES_EXPORT(int) scr_restore (const char *); /* implemented */
+extern NCURSES_EXPORT(int) scr_set (const char *); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int setcchar(cchar_t *, const wchar_t *, const attr_t, short, const void *); /* missing */
+extern NCURSES_EXPORT(int) setcchar (cchar_t *, const wchar_t *, const attr_t, short, const void *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int setscrreg(int,int); /* generated */
-extern SCREEN *set_term(SCREEN *); /* implemented */
-extern int slk_attroff(const chtype); /* implemented */
-extern int slk_attr_off(const attr_t, void *); /* generated:WIDEC */
-extern int slk_attron(const chtype); /* implemented */
-extern int slk_attr_on(attr_t,void*); /* generated:WIDEC */
-extern int slk_attrset(const chtype); /* implemented */
-extern attr_t slk_attr(void); /* implemented */
-extern int slk_attr_set(const attr_t,short,void*); /* implemented */
-extern int slk_clear(void); /* implemented */
-extern int slk_color(short); /* implemented */
-extern int slk_init(int); /* implemented */
-extern char *slk_label(int); /* implemented */
-extern int slk_noutrefresh(void); /* implemented */
-extern int slk_refresh(void); /* implemented */
-extern int slk_restore(void); /* implemented */
-extern int slk_set(int,const char *,int); /* implemented */
-extern int slk_touch(void); /* implemented */
+extern NCURSES_EXPORT(int) setscrreg (int,int); /* generated */
+extern NCURSES_EXPORT(SCREEN *) set_term (SCREEN *); /* implemented */
+extern NCURSES_EXPORT(int) slk_attroff (const chtype); /* implemented */
+extern NCURSES_EXPORT(int) slk_attr_off (const attr_t, void *); /* generated:WIDEC */
+extern NCURSES_EXPORT(int) slk_attron (const chtype); /* implemented */
+extern NCURSES_EXPORT(int) slk_attr_on (attr_t,void*); /* generated:WIDEC */
+extern NCURSES_EXPORT(int) slk_attrset (const chtype); /* implemented */
+extern NCURSES_EXPORT(attr_t) slk_attr (void); /* implemented */
+extern NCURSES_EXPORT(int) slk_attr_set (const attr_t,short,void*); /* implemented */
+extern NCURSES_EXPORT(int) slk_clear (void); /* implemented */
+extern NCURSES_EXPORT(int) slk_color (short); /* implemented */
+extern NCURSES_EXPORT(int) slk_init (int); /* implemented */
+extern NCURSES_EXPORT(char *) slk_label (int); /* implemented */
+extern NCURSES_EXPORT(int) slk_noutrefresh (void); /* implemented */
+extern NCURSES_EXPORT(int) slk_refresh (void); /* implemented */
+extern NCURSES_EXPORT(int) slk_restore (void); /* implemented */
+extern NCURSES_EXPORT(int) slk_set (int,const char *,int); /* implemented */
+extern NCURSES_EXPORT(int) slk_touch (void); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int slk_wset(int, const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) slk_wset (int, const wchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int standout(void); /* generated */
-extern int standend(void); /* generated */
-extern int start_color(void); /* implemented */
-extern WINDOW *subpad(WINDOW *, int, int, int, int); /* implemented */
-extern WINDOW *subwin(WINDOW *,int,int,int,int); /* implemented */
-extern int syncok(WINDOW *, bool); /* implemented */
-extern chtype termattrs(void); /* implemented */
-extern attr_t term_attrs(void); /* missing */
-extern char *termname(void); /* implemented */
-extern int tigetflag(NCURSES_CONST char *); /* implemented */
-extern int tigetnum(NCURSES_CONST char *); /* implemented */
-extern char *tigetstr(NCURSES_CONST char *); /* implemented */
-extern void timeout(int); /* generated */
-extern int touchline(WINDOW *, int, int); /* generated */
-extern int touchwin(WINDOW *); /* generated */
-extern char *tparm(NCURSES_CONST char *, ...); /* implemented */
-extern int typeahead(int); /* implemented */
-extern int ungetch(int); /* implemented */
+extern NCURSES_EXPORT(int) standout (void); /* generated */
+extern NCURSES_EXPORT(int) standend (void); /* generated */
+extern NCURSES_EXPORT(int) start_color (void); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) subpad (WINDOW *, int, int, int, int); /* implemented */
+extern NCURSES_EXPORT(WINDOW *) subwin (WINDOW *,int,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) syncok (WINDOW *, bool); /* implemented */
+extern NCURSES_EXPORT(chtype) termattrs (void); /* implemented */
+extern NCURSES_EXPORT(attr_t) term_attrs (void); /* missing */
+extern NCURSES_EXPORT(char *) termname (void); /* implemented */
+extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *); /* implemented */
+extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *); /* implemented */
+extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */
+extern NCURSES_EXPORT(void) timeout (int); /* generated */
+extern NCURSES_EXPORT(int) touchline (WINDOW *, int, int); /* generated */
+extern NCURSES_EXPORT(int) touchwin (WINDOW *); /* generated */
+extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); /* implemented */
+extern NCURSES_EXPORT(int) typeahead (int); /* implemented */
+extern NCURSES_EXPORT(int) ungetch (int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int unget_wch(const wchar_t); /* missing */
+extern NCURSES_EXPORT(int) unget_wch (const wchar_t); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int untouchwin(WINDOW *); /* generated */
-extern void use_env(bool); /* implemented */
-extern int vidattr(chtype); /* implemented */
-extern int vid_attr(attr_t, short, void *); /* generated:WIDEC */
-extern int vidputs(chtype, int (*)(int)); /* implemented */
+extern NCURSES_EXPORT(int) untouchwin (WINDOW *); /* generated */
+extern NCURSES_EXPORT(void) use_env (bool); /* implemented */
+extern NCURSES_EXPORT(int) vidattr (chtype); /* implemented */
+extern NCURSES_EXPORT(int) vid_attr (attr_t, short, void *); /* generated:WIDEC */
+extern NCURSES_EXPORT(int) vidputs (chtype, int (*)(int)); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int vid_puts(attr_t, short, void *, int (*)(int)); /* missing */
+extern NCURSES_EXPORT(int) vid_puts (attr_t, short, void *, int (*)(int)); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int vline(chtype, int); /* generated */
+extern NCURSES_EXPORT(int) vline (chtype, int); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int vline_set(const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) vline_set (const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int vwprintw(WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
-extern int vw_printw(WINDOW *, NCURSES_CONST char *,va_list); /* generated */
-extern int vwscanw(WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
-extern int vw_scanw(WINDOW *, NCURSES_CONST char *,va_list); /* generated */
-extern int waddch(WINDOW *, const chtype); /* implemented */
-extern int waddchnstr(WINDOW *,const chtype *const,int); /* implemented */
-extern int waddchstr(WINDOW *,const chtype *); /* generated */
-extern int waddnstr(WINDOW *,const char *const,int); /* implemented */
-extern int waddstr(WINDOW *,const char *); /* generated */
+extern NCURSES_EXPORT(int) vwprintw (WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
+extern NCURSES_EXPORT(int) vw_printw (WINDOW *, NCURSES_CONST char *,va_list); /* generated */
+extern NCURSES_EXPORT(int) vwscanw (WINDOW *, NCURSES_CONST char *,va_list); /* implemented */
+extern NCURSES_EXPORT(int) vw_scanw (WINDOW *, NCURSES_CONST char *,va_list); /* generated */
+extern NCURSES_EXPORT(int) waddch (WINDOW *, const chtype); /* implemented */
+extern NCURSES_EXPORT(int) waddchnstr (WINDOW *,const chtype *const,int); /* implemented */
+extern NCURSES_EXPORT(int) waddchstr (WINDOW *,const chtype *); /* generated */
+extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *const,int); /* implemented */
+extern NCURSES_EXPORT(int) waddstr (WINDOW *,const char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int waddwstr(WINDOW *,const wchar_t *); /* missing */
-extern int waddnwstr(WINDOW *,const wchar_t *,int); /* missing */
-extern int wadd_wch(WINDOW *,const cchar_t *); /* missing */
-extern int wadd_wchnstr(WINDOW *,const cchar_t *,int); /* missing */
-extern int wadd_wchstr(WINDOW *,const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) waddwstr (WINDOW *,const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) waddnwstr (WINDOW *,const wchar_t *,int); /* missing */
+extern NCURSES_EXPORT(int) wadd_wch (WINDOW *,const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wadd_wchnstr (WINDOW *,const cchar_t *,int); /* missing */
+extern NCURSES_EXPORT(int) wadd_wchstr (WINDOW *,const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wattron(WINDOW *, int); /* generated */
-extern int wattroff(WINDOW *, int); /* generated */
-extern int wattrset(WINDOW *, int); /* generated */
-extern int wattr_get(WINDOW *, attr_t *, short *, void *); /* generated */
-extern int wattr_on(WINDOW *, NCURSES_CONST attr_t, void *); /* implemented */
-extern int wattr_off(WINDOW *, NCURSES_CONST attr_t, void *); /* implemented */
-extern int wattr_set(WINDOW *, attr_t, short, void *); /* generated */
-extern int wbkgd(WINDOW *,const chtype); /* implemented */
-extern void wbkgdset(WINDOW *,chtype); /* implemented */
+extern NCURSES_EXPORT(int) wattron (WINDOW *, int); /* generated */
+extern NCURSES_EXPORT(int) wattroff (WINDOW *, int); /* generated */
+extern NCURSES_EXPORT(int) wattrset (WINDOW *, int); /* generated */
+extern NCURSES_EXPORT(int) wattr_get (WINDOW *, attr_t *, short *, void *); /* generated */
+extern NCURSES_EXPORT(int) wattr_on (WINDOW *, NCURSES_CONST attr_t, void *); /* implemented */
+extern NCURSES_EXPORT(int) wattr_off (WINDOW *, NCURSES_CONST attr_t, void *); /* implemented */
+extern NCURSES_EXPORT(int) wattr_set (WINDOW *, attr_t, short, void *); /* generated */
+extern NCURSES_EXPORT(int) wbkgd (WINDOW *,const chtype); /* implemented */
+extern NCURSES_EXPORT(void) wbkgdset (WINDOW *,chtype); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern void wbkgrndset(WINDOW *,const cchar_t *); /* missing */
-extern int wbkgrnd(WINDOW *,const cchar_t *); /* missing */
+extern NCURSES_EXPORT(void) wbkgrndset (WINDOW *,const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wbkgrnd (WINDOW *,const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wborder(WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* implemented */
+extern NCURSES_EXPORT(int) wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wborder_set(WINDOW *,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* missing */
+extern NCURSES_EXPORT(int) wborder_set (WINDOW *,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*,const cchar_t*); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wchgat(WINDOW *, int, attr_t, short, const void *);/* implemented */
-extern int wclear(WINDOW *); /* implemented */
-extern int wclrtobot(WINDOW *); /* implemented */
-extern int wclrtoeol(WINDOW *); /* implemented */
-extern int wcolor_set(WINDOW*,short,void*); /* implemented */
-extern void wcursyncup(WINDOW *); /* implemented */
-extern int wdelch(WINDOW *); /* implemented */
-extern int wdeleteln(WINDOW *); /* generated */
-extern int wechochar(WINDOW *, const chtype); /* implemented */
+extern NCURSES_EXPORT(int) wchgat (WINDOW *, int, attr_t, short, const void *);/* implemented */
+extern NCURSES_EXPORT(int) wclear (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wclrtobot (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wclrtoeol (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wcolor_set (WINDOW*,short,void*); /* implemented */
+extern NCURSES_EXPORT(void) wcursyncup (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wdelch (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wdeleteln (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) wechochar (WINDOW *, const chtype); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wecho_wchar(WINDOW *, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wecho_wchar (WINDOW *, const cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int werase(WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) werase (WINDOW *); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wgetbkgrnd(WINDOW *, cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wgetbkgrnd (WINDOW *, cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wgetch(WINDOW *); /* implemented */
-extern int wgetnstr(WINDOW *,char *,int); /* implemented */
+extern NCURSES_EXPORT(int) wgetch (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wgetnstr (WINDOW *,char *,int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wgetn_wstr(WINDOW *,wint_t *, int); /* missing */
+extern NCURSES_EXPORT(int) wgetn_wstr (WINDOW *,wint_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wgetstr(WINDOW *, char *); /* generated */
+extern NCURSES_EXPORT(int) wgetstr (WINDOW *, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wget_wch(WINDOW *, wint_t *); /* missing */
-extern int wget_wstr(WINDOW *, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) wget_wch (WINDOW *, wint_t *); /* missing */
+extern NCURSES_EXPORT(int) wget_wstr (WINDOW *, wint_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int whline(WINDOW *, chtype, int); /* implemented */
+extern NCURSES_EXPORT(int) whline (WINDOW *, chtype, int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int whline_set(WINDOW *, const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) whline_set (WINDOW *, const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern chtype winch(WINDOW *); /* implemented */
-extern int winchnstr(WINDOW *, chtype *, int); /* implemented */
-extern int winchstr(WINDOW *, chtype *); /* generated */
-extern int winnstr(WINDOW *, char *, int); /* implemented */
+extern NCURSES_EXPORT(chtype) winch (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) winchnstr (WINDOW *, chtype *, int); /* implemented */
+extern NCURSES_EXPORT(int) winchstr (WINDOW *, chtype *); /* generated */
+extern NCURSES_EXPORT(int) winnstr (WINDOW *, char *, int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int winnwstr(WINDOW *, wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) winnwstr (WINDOW *, wchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int winsch(WINDOW *, chtype); /* implemented */
-extern int winsdelln(WINDOW *,int); /* implemented */
-extern int winsertln(WINDOW *); /* generated */
-extern int winsnstr(WINDOW *, const char *,int); /* implemented */
-extern int winsstr(WINDOW *, const char *); /* generated */
-extern int winstr(WINDOW *, char *); /* generated */
+extern NCURSES_EXPORT(int) winsch (WINDOW *, chtype); /* implemented */
+extern NCURSES_EXPORT(int) winsdelln (WINDOW *,int); /* implemented */
+extern NCURSES_EXPORT(int) winsertln (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) winsnstr (WINDOW *, const char *,int); /* implemented */
+extern NCURSES_EXPORT(int) winsstr (WINDOW *, const char *); /* generated */
+extern NCURSES_EXPORT(int) winstr (WINDOW *, char *); /* generated */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wins_nwstr(WINDOW *, const wchar_t *, int); /* missing */
-extern int wins_wch(WINDOW *, const cchar_t *); /* missing */
-extern int wins_wstr(WINDOW *, const wchar_t *); /* missing */
-extern int winwstr(WINDOW *, wchar_t *); /* missing */
-extern int win_wch(WINDOW *, NCURSES_CONST cchar_t *); /* missing */
-extern int win_wchnstr(WINDOW *, NCURSES_CONST cchar_t *, int); /* missing */
-extern int win_wchstr(WINDOW *, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wins_nwstr (WINDOW *, const wchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) wins_wch (WINDOW *, const cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) wins_wstr (WINDOW *, const wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) winwstr (WINDOW *, wchar_t *); /* missing */
+extern NCURSES_EXPORT(int) win_wch (WINDOW *, NCURSES_CONST cchar_t *); /* missing */
+extern NCURSES_EXPORT(int) win_wchnstr (WINDOW *, NCURSES_CONST cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) win_wchstr (WINDOW *, NCURSES_CONST cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wmove(WINDOW *,int,int); /* implemented */
-extern int wnoutrefresh(WINDOW *); /* implemented */
-extern int wprintw(WINDOW *, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) wmove (WINDOW *,int,int); /* implemented */
+extern NCURSES_EXPORT(int) wnoutrefresh (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wprintw (WINDOW *, NCURSES_CONST char *,...) /* implemented */
GCC_PRINTFLIKE(2,3);
-extern int wredrawln(WINDOW *,int,int); /* implemented */
-extern int wrefresh(WINDOW *); /* implemented */
-extern int wscanw(WINDOW *, NCURSES_CONST char *,...) /* implemented */
+extern NCURSES_EXPORT(int) wredrawln (WINDOW *,int,int); /* implemented */
+extern NCURSES_EXPORT(int) wrefresh (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(int) wscanw (WINDOW *, NCURSES_CONST char *,...) /* implemented */
GCC_SCANFLIKE(2,3);
-extern int wscrl(WINDOW *,int); /* implemented */
-extern int wsetscrreg(WINDOW *,int,int); /* implemented */
-extern int wstandout(WINDOW *); /* generated */
-extern int wstandend(WINDOW *); /* generated */
-extern void wsyncdown(WINDOW *); /* implemented */
-extern void wsyncup(WINDOW *); /* implemented */
-extern void wtimeout(WINDOW *,int); /* implemented */
-extern int wtouchln(WINDOW *,int,int,int); /* implemented */
+extern NCURSES_EXPORT(int) wscrl (WINDOW *,int); /* implemented */
+extern NCURSES_EXPORT(int) wsetscrreg (WINDOW *,int,int); /* implemented */
+extern NCURSES_EXPORT(int) wstandout (WINDOW *); /* generated */
+extern NCURSES_EXPORT(int) wstandend (WINDOW *); /* generated */
+extern NCURSES_EXPORT(void) wsyncdown (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(void) wsyncup (WINDOW *); /* implemented */
+extern NCURSES_EXPORT(void) wtimeout (WINDOW *,int); /* implemented */
+extern NCURSES_EXPORT(int) wtouchln (WINDOW *,int,int,int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern wchar_t *wunctrl(cchar_t *); /* missing */
+extern NCURSES_EXPORT(wchar_t *) wunctrl (cchar_t *); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern int wvline(WINDOW *,chtype,int); /* implemented */
+extern NCURSES_EXPORT(int) wvline (WINDOW *,chtype,int); /* implemented */
#ifdef _XOPEN_SOURCE_EXTENDED
-extern int wvline_set(WINDOW *, const cchar_t *, int); /* missing */
+extern NCURSES_EXPORT(int) wvline_set (WINDOW *, const cchar_t *, int); /* missing */
#endif /* _XOPEN_SOURCE_EXTENDED */
-extern bool mouse_trafo(int*, int*, bool); /* generated */
+extern NCURSES_EXPORT(bool) mouse_trafo (int*, int*, bool); /* generated */
/* attributes */
@@ -1301,32 +1303,32 @@ typedef struct
}
MEVENT;
-extern int getmouse(MEVENT *);
-extern int ungetmouse(MEVENT *);
-extern mmask_t mousemask(mmask_t, mmask_t *);
-extern bool wenclose(const WINDOW *, int, int);
-extern int mouseinterval(int);
-extern bool wmouse_trafo(const WINDOW* win,int* y, int* x, bool to_screen);
+extern NCURSES_EXPORT(int) getmouse (MEVENT *);
+extern NCURSES_EXPORT(int) ungetmouse (MEVENT *);
+extern NCURSES_EXPORT(mmask_t) mousemask (mmask_t, mmask_t *);
+extern NCURSES_EXPORT(bool) wenclose (const WINDOW *, int, int);
+extern NCURSES_EXPORT(int) mouseinterval (int);
+extern NCURSES_EXPORT(bool) wmouse_trafo (const WINDOW* win,int* y, int* x, bool to_screen);
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
/* other non-XSI functions */
-extern int mcprint(char *, int); /* direct data to printer */
-extern int has_key(int); /* do we have given key? */
+extern NCURSES_EXPORT(int) mcprint (char *, int); /* direct data to printer */
+extern NCURSES_EXPORT(int) has_key (int); /* do we have given key? */
/* Debugging : use with libncurses_g.a */
-extern void _tracef(const char *, ...) GCC_PRINTFLIKE(1,2);
-extern void _tracedump(const char *, WINDOW *);
-extern char *_traceattr(attr_t);
-extern char *_traceattr2(int, chtype);
-extern char *_nc_tracebits(void);
-extern char *_tracechar(const unsigned char);
-extern char *_tracechtype(chtype);
-extern char *_tracechtype2(int, chtype);
-extern char *_tracemouse(const MEVENT *);
-extern void trace(const unsigned int);
+extern NCURSES_EXPORT(void) _tracef (const char *, ...) GCC_PRINTFLIKE(1,2);
+extern NCURSES_EXPORT(void) _tracedump (const char *, WINDOW *);
+extern NCURSES_EXPORT(char *) _traceattr (attr_t);
+extern NCURSES_EXPORT(char *) _traceattr2 (int, chtype);
+extern NCURSES_EXPORT(char *) _nc_tracebits (void);
+extern NCURSES_EXPORT(char *) _tracechar (const unsigned char);
+extern NCURSES_EXPORT(char *) _tracechtype (chtype);
+extern NCURSES_EXPORT(char *) _tracechtype2 (int, chtype);
+extern NCURSES_EXPORT(char *) _tracemouse (const MEVENT *);
+extern NCURSES_EXPORT(void) trace (const unsigned int);
/* trace masks */
#define TRACE_DISABLE 0x0000 /* turn off tracing */
@@ -1347,8 +1349,8 @@ extern void trace(const unsigned int);
#define TRACE_MAXIMUM 0xffff /* maximum trace level */
#if defined(TRACE) || defined(NCURSES_TEST)
-extern int _nc_optimize_enable; /* enable optimizations */
-extern const char *_nc_visbuf(const char *);
+extern NCURSES_EXPORT_VAR(int) _nc_optimize_enable; /* enable optimizations */
+extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *);
#define OPTIMIZE_MVCUR 0x01 /* cursor movement optimization */
#define OPTIMIZE_HASHMAP 0x02 /* diff hashing to detect scrolls */
#define OPTIMIZE_SCROLL 0x04 /* scroll optimization */
diff --git a/contrib/ncurses/include/headers b/contrib/ncurses/include/headers
index 2a185c21627d..da3738db1e24 100644
--- a/contrib/ncurses/include/headers
+++ b/contrib/ncurses/include/headers
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright (c) 1998 Free Software Foundation, Inc. #
+# Copyright (c) 1998,2000,2001 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"), #
@@ -32,3 +32,4 @@ term.h
curses.h
unctrl.h
termcap.h
+$(srcdir)/ncurses_dll.h
diff --git a/contrib/ncurses/include/nc_panel.h b/contrib/ncurses/include/nc_panel.h
index dbb20fa184d1..bb1f6745ac0c 100644
--- a/contrib/ncurses/include/nc_panel.h
+++ b/contrib/ncurses/include/nc_panel.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc. *
+ * Copyright (c) 1998,2000 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 *
@@ -33,7 +33,7 @@
/*
- * $Id: nc_panel.h,v 1.2 1998/02/11 12:13:45 tom Exp $
+ * $Id: nc_panel.h,v 1.3 2000/12/10 02:04:35 tom Exp $
*
* nc_panel.h
*
@@ -57,7 +57,7 @@ struct panelhook {
};
/* Retrieve the panelhook of the current screen */
-extern struct panelhook* _nc_panelhook(void);
+extern NCURSES_EXPORT(struct panelhook*) _nc_panelhook (void);
#ifdef __cplusplus
}
diff --git a/contrib/ncurses/include/ncurses_defs b/contrib/ncurses/include/ncurses_defs
index e4a391f1fd67..76bfcae52f1e 100644
--- a/contrib/ncurses/include/ncurses_defs
+++ b/contrib/ncurses/include/ncurses_defs
@@ -1,4 +1,4 @@
-# $Id: ncurses_defs,v 1.4 2000/10/08 01:04:00 tom Exp $
+# $Id: ncurses_defs,v 1.7 2001/04/07 22:53:10 tom Exp $
##############################################################################
# Copyright (c) 2000 Free Software Foundation, Inc. #
# #
@@ -36,6 +36,7 @@ BSD_TPUTS
CC_HAS_INLINE_FUNCS
CC_HAS_PROTOS
CPP_HAS_PARAM_INIT
+CPP_HAS_VSCAN_FUNC
DECL_ERRNO
ETIP_NEEDS_MATH_H
GCC_NORETURN /* nothing */
@@ -146,6 +147,8 @@ USE_RCS_IDS
USE_SAFE_SPRINTF
USE_SCROLL_HINTS
USE_SIGWINCH
+USE_STDIO_VSCAN
+USE_STRSTREAM_VSCAN
USE_SYMLINKS
USE_WIDEC_SUPPORT
USE_XMC_SUPPORT
diff --git a/contrib/ncurses/include/ncurses_dll.h b/contrib/ncurses/include/ncurses_dll.h
new file mode 100644
index 000000000000..723d21e001bc
--- /dev/null
+++ b/contrib/ncurses/include/ncurses_dll.h
@@ -0,0 +1,41 @@
+/* $Id: ncurses_dll.h,v 1.1 2000/12/10 00:05:35 tom Exp $ */
+
+
+#if defined(__CYGWIN__)
+# if defined(NCURSES_DLL)
+# if defined(NCURSES_STATIC)
+# undef NCURSES_STATIC
+# endif
+# endif
+# undef NCURSES_IMPEXP
+# undef NCURSES_API
+# undef NCURSES_EXPORT(type)
+# undef NCURSES_EXPORT_VAR(type)
+# if defined(NCURSES_DLL)
+/* building a DLL */
+# define NCURSES_IMPEXP __declspec(dllexport)
+# elif defined(NCURSES_STATIC)
+/* building or linking to a static library */
+# define NCURSES_IMPEXP /* nothing */
+# else
+/* linking to the DLL */
+# define NCURSES_IMPEXP __declspec(dllimport)
+# endif
+# define NCURSES_API __cdecl
+# define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
+# define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
+#endif
+
+/* Take care of non-cygwin platforms */
+#if !defined(NCURSES_IMPEXP)
+# define NCURSES_IMPEXP /* nothing */
+#endif
+#if !defined(NCURSES_API)
+# define NCURSES_API /* nothing */
+#endif
+#if !defined(NCURSES_EXPORT)
+# define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
+#endif
+#if !defined(NCURSES_EXPORT_VAR)
+# define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
+#endif
diff --git a/contrib/ncurses/include/term_entry.h b/contrib/ncurses/include/term_entry.h
index 7d9f77b4befc..a066be9948d1 100644
--- a/contrib/ncurses/include/term_entry.h
+++ b/contrib/ncurses/include/term_entry.h
@@ -31,14 +31,14 @@
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
****************************************************************************/
-/* $Id: term_entry.h,v 1.29 2000/03/19 02:04:15 tom Exp $ */
+/* $Id: term_entry.h,v 1.32 2001/03/24 21:53:10 tom Exp $ */
/*
* term_entry.h -- interface to entry-manipulation code
*/
-#ifndef _TERM_ENTRY_H
-#define _TERM_ENTRY_H
+#ifndef NCURSES_TERM_ENTRY_H_incl
+#define NCURSES_TERM_ENTRY_H_incl 1
#ifdef __cplusplus
extern "C" {
@@ -90,7 +90,8 @@ ENTRY;
#define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
#define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)
-extern ENTRY *_nc_head, *_nc_tail;
+extern NCURSES_EXPORT_VAR(ENTRY *) _nc_head;
+extern NCURSES_EXPORT_VAR(ENTRY *) _nc_tail;
#define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next)
#define MAX_LINE 132
@@ -116,46 +117,46 @@ extern ENTRY *_nc_head, *_nc_tail;
}
/* alloc_entry.c: elementary allocation code */
-extern ENTRY *_nc_copy_entry(ENTRY *oldp);
-extern char *_nc_save_str(const char *const);
-extern void _nc_init_entry(TERMTYPE *const);
-extern void _nc_merge_entry(TERMTYPE *const, TERMTYPE *const);
-extern void _nc_wrap_entry(ENTRY *const);
+extern NCURSES_EXPORT(ENTRY *) _nc_copy_entry (ENTRY *oldp);
+extern NCURSES_EXPORT(char *) _nc_save_str (const char *const);
+extern NCURSES_EXPORT(void) _nc_init_entry (TERMTYPE *const);
+extern NCURSES_EXPORT(void) _nc_merge_entry (TERMTYPE *const, TERMTYPE *const);
+extern NCURSES_EXPORT(void) _nc_wrap_entry (ENTRY *const, bool);
/* alloc_ttype.c: elementary allocation code */
-extern void _nc_align_termtype(TERMTYPE *, TERMTYPE *);
-extern void _nc_copy_termtype(TERMTYPE *, TERMTYPE *);
+extern NCURSES_EXPORT(void) _nc_align_termtype (TERMTYPE *, TERMTYPE *);
+extern NCURSES_EXPORT(void) _nc_copy_termtype (TERMTYPE *, TERMTYPE *);
/* free_ttype.c: elementary allocation code */
-extern void _nc_free_termtype(TERMTYPE *);
+extern NCURSES_EXPORT(void) _nc_free_termtype (TERMTYPE *);
/* lib_acs.c */
-extern void _nc_init_acs(void); /* corresponds to traditional 'init_acs()' */
+extern NCURSES_EXPORT(void) _nc_init_acs (void); /* corresponds to traditional 'init_acs()' */
/* parse_entry.c: entry-parsing code */
#if NCURSES_XNAMES
-extern bool _nc_user_definable;
-extern bool _nc_disable_period;
+extern NCURSES_EXPORT_VAR(bool) _nc_user_definable;
+extern NCURSES_EXPORT_VAR(bool) _nc_disable_period;
#endif
-extern int _nc_parse_entry(ENTRY *, int, bool);
-extern int _nc_capcmp(const char *, const char *);
+extern NCURSES_EXPORT(int) _nc_parse_entry (ENTRY *, int, bool);
+extern NCURSES_EXPORT(int) _nc_capcmp (const char *, const char *);
/* write_entry.c: writing an entry to the file system */
-extern void _nc_set_writedir(char *);
-extern void _nc_write_entry(TERMTYPE *const);
+extern NCURSES_EXPORT(void) _nc_set_writedir (char *);
+extern NCURSES_EXPORT(void) _nc_write_entry (TERMTYPE *const);
/* comp_parse.c: entry list handling */
-extern void _nc_read_entry_source(FILE*, char*, int, bool, bool (*)(ENTRY*));
-extern bool _nc_entry_match(char *, char *);
-extern int _nc_resolve_uses(bool);
-extern void _nc_free_entries(ENTRY *);
-extern void (*_nc_check_termtype)(TERMTYPE *);
+extern NCURSES_EXPORT(void) _nc_read_entry_source (FILE*, char*, int, bool, bool (*)(ENTRY*));
+extern NCURSES_EXPORT(bool) _nc_entry_match (char *, char *);
+extern NCURSES_EXPORT(int) _nc_resolve_uses (bool);
+extern NCURSES_EXPORT(void) _nc_free_entries (ENTRY *);
+extern NCURSES_IMPEXP void NCURSES_API (*_nc_check_termtype)(TERMTYPE *);
/* trace_xnames.c */
-extern void _nc_trace_xnames(TERMTYPE *);
+extern NCURSES_EXPORT(void) _nc_trace_xnames (TERMTYPE *);
#ifdef __cplusplus
}
#endif
-#endif /* _TERM_ENTRY_H */
+#endif /* NCURSES_TERM_ENTRY_H_incl */
diff --git a/contrib/ncurses/include/termcap.h.in b/contrib/ncurses/include/termcap.h.in
index 21c62398e0bd..6adc31222064 100644
--- a/contrib/ncurses/include/termcap.h.in
+++ b/contrib/ncurses/include/termcap.h.in
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc. *
+ * Copyright (c) 1998,2000 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 *
@@ -31,14 +31,16 @@
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
****************************************************************************/
-/* $Id: termcap.h.in,v 1.12 2000/10/08 01:06:37 tom Exp $ */
+/* $Id: termcap.h.in,v 1.16 2001/03/24 21:53:27 tom Exp $ */
-#ifndef _NCU_TERMCAP_H
-#define _NCU_TERMCAP_H 1
+#ifndef NCURSES_TERMCAP_H_incl
+#define NCURSES_TERMCAP_H_incl 1
#undef NCURSES_VERSION
#define NCURSES_VERSION "@NCURSES_MAJOR@.@NCURSES_MINOR@"
+#include <ncurses_dll.h>
+
#ifdef __cplusplus
extern "C"
{
@@ -49,22 +51,25 @@ extern "C"
#undef NCURSES_CONST
#define NCURSES_CONST @NCURSES_CONST@
-extern char PC;
-extern char *UP;
-extern char *BC;
-extern short ospeed;
+#undef NCURSES_OSPEED
+#define NCURSES_OSPEED @NCURSES_OSPEED@
+
+extern NCURSES_EXPORT_VAR(char) PC;
+extern NCURSES_EXPORT_VAR(char *) UP;
+extern NCURSES_EXPORT_VAR(char *) BC;
+extern NCURSES_EXPORT_VAR(NCURSES_OSPEED) ospeed;
-#if !defined(_NCU_TERM_H)
-extern char *tgetstr(NCURSES_CONST char *, char **);
-extern char *tgoto(const char *, int, int);
-extern int tgetent(char *, const char *);
-extern int tgetflag(NCURSES_CONST char *);
-extern int tgetnum(NCURSES_CONST char *);
-extern int tputs(const char *, int, int (*)(int));
+#if !defined(NCURSES_TERM_H_incl)
+extern NCURSES_EXPORT(char *) tgetstr (NCURSES_CONST char *, char **);
+extern NCURSES_EXPORT(char *) tgoto (const char *, int, int);
+extern NCURSES_EXPORT(int) tgetent (char *, const char *);
+extern NCURSES_EXPORT(int) tgetflag (NCURSES_CONST char *);
+extern NCURSES_EXPORT(int) tgetnum (NCURSES_CONST char *);
+extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));
#endif
#ifdef __cplusplus
}
#endif
-#endif /* _NCU_TERMCAP_H */
+#endif /* NCURSES_TERMCAP_H_incl */
diff --git a/contrib/ncurses/include/tic.h b/contrib/ncurses/include/tic.h
index bba0c0ffbff4..ff35c0426197 100644
--- a/contrib/ncurses/include/tic.h
+++ b/contrib/ncurses/include/tic.h
@@ -32,7 +32,7 @@
****************************************************************************/
/*
- * $Id: tic.h,v 1.35 2000/09/09 19:47:16 tom Exp $
+ * $Id: tic.h,v 1.38 2001/03/11 15:12:08 tom Exp $
* tic.h - Global variables and structures for the terminfo
* compiler.
*/
@@ -116,9 +116,9 @@ extern "C" {
#define DEBUG(n, a) /*nothing*/
#endif
-extern unsigned _nc_tracing;
-extern void _nc_tracef(char *, ...) GCC_PRINTFLIKE(1,2);
-extern const char *_nc_visbuf(const char *);
+extern NCURSES_EXPORT_VAR(unsigned) _nc_tracing;
+extern NCURSES_EXPORT(void) _nc_tracef (char *, ...) GCC_PRINTFLIKE(1,2);
+extern NCURSES_EXPORT(const char *) _nc_visbuf (const char *);
/*
* These are the types of tokens returned by the scanner. The first
@@ -149,7 +149,7 @@ struct token
char *tk_valstring; /* value of capability (if a string) */
};
-extern struct token _nc_curr_token;
+extern NCURSES_EXPORT_VAR(struct token) _nc_curr_token;
/*
* List of keynames with their corresponding code.
@@ -159,7 +159,7 @@ struct kn {
int code;
};
-extern const struct kn _nc_key_names[];
+extern NCURSES_EXPORT_VAR(const struct kn) _nc_key_names[];
/*
* Offsets to string capabilities, with the corresponding functionkey
@@ -173,11 +173,11 @@ struct tinfo_fkeys {
#if BROKEN_LINKER
#define _nc_tinfo_fkeys _nc_tinfo_fkeysf()
-extern struct tinfo_fkeys *_nc_tinfo_fkeysf(void);
+extern NCURSES_EXPORT(struct tinfo_fkeys *) _nc_tinfo_fkeysf (void);
#else
-extern struct tinfo_fkeys _nc_tinfo_fkeys[];
+extern NCURSES_EXPORT_VAR(struct tinfo_fkeys) _nc_tinfo_fkeys[];
#endif
@@ -202,14 +202,16 @@ struct alias
const char *source;
};
-extern const struct name_table_entry * const _nc_info_hash_table[];
-extern const struct name_table_entry * const _nc_cap_hash_table[];
+extern NCURSES_EXPORT_VAR(int) _nc_tparm_err;
-extern const struct alias _nc_capalias_table[];
-extern const struct alias _nc_infoalias_table[];
+extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_info_hash_table[];
+extern NCURSES_EXPORT_VAR(const struct name_table_entry * const) _nc_cap_hash_table[];
-extern const struct name_table_entry *_nc_get_table(bool);
-extern const struct name_table_entry * const *_nc_get_hash_table(bool);
+extern NCURSES_EXPORT_VAR(const struct alias) _nc_capalias_table[];
+extern NCURSES_EXPORT_VAR(const struct alias) _nc_infoalias_table[];
+
+extern NCURSES_EXPORT(const struct name_table_entry *) _nc_get_table (bool);
+extern NCURSES_EXPORT(const struct name_table_entry * const *) _nc_get_hash_table (bool);
#define NOTFOUND ((struct name_table_entry *) 0)
@@ -238,59 +240,59 @@ extern const struct name_table_entry * const *_nc_get_hash_table(bool);
#endif
/* access.c */
-extern char *_nc_basename(char *);
+extern NCURSES_EXPORT(char *) _nc_basename (char *);
/* comp_hash.c: name lookup */
-struct name_table_entry const *_nc_find_entry(const char *,
- const struct name_table_entry *const *);
-struct name_table_entry const *_nc_find_type_entry(const char *,
- int,
- const struct name_table_entry *);
+extern NCURSES_EXPORT(struct name_table_entry const *) _nc_find_entry
+ (const char *, const struct name_table_entry *const *);
+extern NCURSES_EXPORT(struct name_table_entry const *) _nc_find_type_entry
+ (const char *, int, const struct name_table_entry *);
/* comp_scan.c: lexical analysis */
-extern int _nc_get_token(void);
-extern void _nc_push_token(int);
-extern void _nc_reset_input(FILE *, char *);
-extern void _nc_panic_mode(char);
-extern int _nc_curr_line;
-extern int _nc_curr_col;
-extern long _nc_curr_file_pos;
-extern long _nc_comment_start, _nc_comment_end;
-extern int _nc_syntax;
-extern long _nc_start_line;
+extern NCURSES_EXPORT(int) _nc_get_token (bool);
+extern NCURSES_EXPORT(void) _nc_panic_mode (char);
+extern NCURSES_EXPORT(void) _nc_push_token (int);
+extern NCURSES_EXPORT(void) _nc_reset_input (FILE *, char *);
+extern NCURSES_EXPORT_VAR(int) _nc_curr_col;
+extern NCURSES_EXPORT_VAR(int) _nc_curr_line;
+extern NCURSES_EXPORT_VAR(int) _nc_syntax;
+extern NCURSES_EXPORT_VAR(long) _nc_comment_end;
+extern NCURSES_EXPORT_VAR(long) _nc_comment_start;
+extern NCURSES_EXPORT_VAR(long) _nc_curr_file_pos;
+extern NCURSES_EXPORT_VAR(long) _nc_start_line;
#define SYN_TERMINFO 0
#define SYN_TERMCAP 1
/* comp_error.c: warning & abort messages */
-extern void _nc_set_source(const char *const name);
-extern void _nc_get_type(char *name);
-extern void _nc_set_type(const char *const name);
-extern void _nc_syserr_abort(const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
-extern void _nc_err_abort(const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
-extern void _nc_warning(const char *const,...) GCC_PRINTFLIKE(1,2);
-extern bool _nc_suppress_warnings;
+extern NCURSES_EXPORT(void) _nc_set_source (const char *const name);
+extern NCURSES_EXPORT(void) _nc_get_type (char *name);
+extern NCURSES_EXPORT(void) _nc_set_type (const char *const name);
+extern NCURSES_EXPORT(void) _nc_syserr_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
+extern NCURSES_EXPORT(void) _nc_err_abort (const char *const,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
+extern NCURSES_EXPORT(void) _nc_warning (const char *const,...) GCC_PRINTFLIKE(1,2);
+extern NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings;
/* comp_expand.c: expand string into readable form */
-extern char *_nc_tic_expand(const char *, bool, int);
+extern NCURSES_EXPORT(char *) _nc_tic_expand (const char *, bool, int);
/* comp_scan.c: decode string from readable form */
-extern char _nc_trans_string(char *, char *);
+extern NCURSES_EXPORT(char) _nc_trans_string (char *, char *);
/* captoinfo.c: capability conversion */
-extern char *_nc_captoinfo(const char *, const char *, int const);
-extern char *_nc_infotocap(const char *, const char *, int const);
+extern NCURSES_EXPORT(char *) _nc_captoinfo (const char *, const char *, int const);
+extern NCURSES_EXPORT(char *) _nc_infotocap (const char *, const char *, int const);
/* lib_tputs.c */
-extern int _nc_nulls_sent; /* Add one for every null sent */
+extern NCURSES_EXPORT_VAR(int) _nc_nulls_sent; /* Add one for every null sent */
/* comp_main.c: compiler main */
-extern const char *_nc_progname;
+extern const char * _nc_progname;
/* read_entry.c */
-extern const char *_nc_tic_dir(const char *);
+extern NCURSES_EXPORT(const char *) _nc_tic_dir (const char *);
/* write_entry.c */
-extern int _nc_tic_written(void);
+extern NCURSES_EXPORT(int) _nc_tic_written (void);
#ifdef __cplusplus
}
diff --git a/contrib/ncurses/include/unctrl.h.in b/contrib/ncurses/include/unctrl.h.in
index cc10079f11c7..70d74b7714b1 100644
--- a/contrib/ncurses/include/unctrl.h.in
+++ b/contrib/ncurses/include/unctrl.h.in
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc. *
+ * Copyright (c) 1998,2000 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 *
@@ -39,10 +39,10 @@
* as ^?. Printable characters are displayed as is.
*/
-/* $Id: unctrl.h.in,v 1.8 1998/02/11 12:13:45 tom Exp $ */
+/* $Id: unctrl.h.in,v 1.10 2001/03/24 21:53:25 tom Exp $ */
-#ifndef _UNCTRL_H
-#define _UNCTRL_H 1
+#ifndef NCURSES_UNCTRL_H_incl
+#define NCURSES_UNCTRL_H_incl 1
#undef NCURSES_VERSION
#define NCURSES_VERSION "@NCURSES_MAJOR@.@NCURSES_MINOR@"
@@ -54,10 +54,10 @@ extern "C" {
#include <curses.h>
#undef unctrl
-extern NCURSES_CONST char *unctrl(chtype);
+NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);
#ifdef __cplusplus
}
#endif
-#endif /* _UNCTRL_H */
+#endif /* NCURSES_UNCTRL_H_incl */