aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-02-28 23:48:13 +0000
committerXin LI <delphij@FreeBSD.org>2014-02-28 23:48:13 +0000
commit06bfebdedb0d353f1771adb65731f64461d9bd01 (patch)
treeea0afb272a63d2a9f612979fa0b8095f0db61ec4 /lib/ncurses
parent82cac3982b380d5ba1f8cb3b7a5c5030b41ef422 (diff)
parenta0044ffc69cfe39a3b0b2d208e0952254555afc6 (diff)
downloadsrc-06bfebdedb0d353f1771adb65731f64461d9bd01.tar.gz
src-06bfebdedb0d353f1771adb65731f64461d9bd01.zip
MFV r262617: ncurses 5.9.
Notes
Notes: svn path=/head/; revision=262629
Diffstat (limited to 'lib/ncurses')
-rw-r--r--lib/ncurses/form/Makefile1
-rw-r--r--lib/ncurses/ncurses/Makefile132
-rw-r--r--lib/ncurses/ncurses/ncurses_cfg.h205
3 files changed, 245 insertions, 93 deletions
diff --git a/lib/ncurses/form/Makefile b/lib/ncurses/form/Makefile
index aa1224220737..4abac432481b 100644
--- a/lib/ncurses/form/Makefile
+++ b/lib/ncurses/form/Makefile
@@ -84,6 +84,7 @@ MAN= \
form_post.3 \
form_requestname.3 \
form_userptr.3 \
+ form_variables.3 \
form_win.3
CLEANFILES+= ${MAN:M*.3}
diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile
index 869fb2e79f44..3b52b6ac67a9 100644
--- a/lib/ncurses/ncurses/Makefile
+++ b/lib/ncurses/ncurses/Makefile
@@ -389,9 +389,9 @@ build-tools: make_hash make_keys
make_keys: make_keys.c names.c ncurses_def.h ${HEADERS}
${CC} -o $@ ${CFLAGS} ${NCURSES_DIR}/ncurses/tinfo/make_keys.c
-make_hash: comp_hash.c hashsize.h ncurses_def.h ${HEADERS}
+make_hash: make_hash.c hashsize.h ncurses_def.h ${HEADERS}
${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \
- ${NCURSES_DIR}/ncurses/tinfo/comp_hash.c
+ ${NCURSES_DIR}/ncurses/tinfo/make_hash.c
# ./configure generated
MKterm.h.awk: MKterm.h.awk.in
@@ -415,6 +415,10 @@ termcap.h: termcap.h.in
-e "/@NCURSES_CONST@/s%%${NCURSES_CONST}%" \
-e "/@NCURSES_OSPEED@/s%%${NCURSES_OSPEED}%"
+ncurses_dll.h: ncurses_dll.h.in
+ sed <${NCURSES_DIR}/include/ncurses_dll.h.in >$@ \
+ -e "s%@NCURSES_WRAP_PREFIX@%_nc_%g"
+
curses.head: curses.h.in
sed <${NCURSES_DIR}/include/curses.h.in >$@ \
-e "/@BROKEN_LINKER@/s%%${BROKEN_LINKER}%" \
@@ -439,6 +443,9 @@ curses.head: curses.h.in
-e "/@NCURSES_WINT_T@/s%%${NCURSES_WINT_T}%" \
-e "/@NEED_WCHAR_H@/s%%${NEED_WCHAR_H}%" \
-e "/@USE_CXX_BOOL@/s%%${USE_CXX_BOOL}%" \
+ -e "s%@NCURSES_SP_FUNCS@%0%g" \
+ -e "s%@NCURSES_INTEROP_FUNCS@%0%g" \
+ -e "s%@NCURSES_CCHARW_MAX@%5%g" \
-e "s%@cf_cv_1UL@%${ONEUL}%g" \
-e "s%@cf_cv_builtin_bool@%${BUILTIN_BOOL}%g" \
-e "s%@cf_cv_enable_lp64@%${ENABLE_LP64}%g" \
@@ -453,6 +460,7 @@ curses.head: curses.h.in
unctrl.h: unctrl.h.in
sed <${NCURSES_DIR}/include/$@.in >$@ \
+ -e "s%@NCURSES_SP_FUNCS@%0%g" \
-e "/@NCURSES_MAJOR@/s%%${NCURSES_MAJOR}%" \
-e "/@NCURSES_MINOR@/s%%${NCURSES_MINOR}%"
@@ -506,6 +514,7 @@ MAN= \
curs_scr_dump.3 \
curs_scroll.3 \
curs_slk.3 \
+ curs_sp_funcs.3 \
curs_termattrs.3 \
curs_termcap.3 \
curs_terminfo.3 \
@@ -513,6 +522,7 @@ MAN= \
curs_touch.3 \
curs_trace.3 \
curs_util.3 \
+ curs_variables.3 \
curs_window.3 \
default_colors.3 \
define_key.3 \
@@ -522,6 +532,7 @@ MAN= \
legacy_coding.3 \
ncurses.3 \
resizeterm.3 \
+ term_variables.3 \
wresize.3
MAN+= \
@@ -821,6 +832,123 @@ MLINKS= ncurses.3 curses.3 \
curs_slk.3 slk_restore.3 \
curs_slk.3 slk_set.3 \
curs_slk.3 slk_touch.3 \
+ curs_sp_funcs.3 sp_funcs.3 \
+ curs_sp_funcs.3 assume_default_colors_sp.3 \
+ curs_sp_funcs.3 baudrate_sp.3 \
+ curs_sp_funcs.3 beep_sp.3 \
+ curs_sp_funcs.3 can_change_color_sp.3 \
+ curs_sp_funcs.3 cbreak_sp.3 \
+ curs_sp_funcs.3 ceiling_panel.3 \
+ curs_sp_funcs.3 color_content_sp.3 \
+ curs_sp_funcs.3 curs_set_sp.3 \
+ curs_sp_funcs.3 def_prog_mode_sp.3 \
+ curs_sp_funcs.3 def_shell_mode_sp.3 \
+ curs_sp_funcs.3 define_key_sp.3 \
+ curs_sp_funcs.3 del_curterm_sp.3 \
+ curs_sp_funcs.3 delay_output_sp.3 \
+ curs_sp_funcs.3 doupdate_sp.3 \
+ curs_sp_funcs.3 echo_sp.3 \
+ curs_sp_funcs.3 endwin_sp.3 \
+ curs_sp_funcs.3 erasechar_sp.3 \
+ curs_sp_funcs.3 filter_sp.3 \
+ curs_sp_funcs.3 flash_sp.3 \
+ curs_sp_funcs.3 flushinp_sp.3 \
+ curs_sp_funcs.3 get_escdelay_sp.3 \
+ curs_sp_funcs.3 getmouse_sp.3 \
+ curs_sp_funcs.3 getwin_sp.3 \
+ curs_sp_funcs.3 ground_panel.3 \
+ curs_sp_funcs.3 halfdelay_sp.3 \
+ curs_sp_funcs.3 has_colors_sp.3 \
+ curs_sp_funcs.3 has_ic_sp.3 \
+ curs_sp_funcs.3 has_il_sp.3 \
+ curs_sp_funcs.3 has_key_sp.3 \
+ curs_sp_funcs.3 has_mouse_sp.3 \
+ curs_sp_funcs.3 init_color_sp.3 \
+ curs_sp_funcs.3 init_pair_sp.3 \
+ curs_sp_funcs.3 intrflush_sp.3 \
+ curs_sp_funcs.3 is_term_resized_sp.3 \
+ curs_sp_funcs.3 isendwin_sp.3 \
+ curs_sp_funcs.3 key_defined_sp.3 \
+ curs_sp_funcs.3 keybound_sp.3 \
+ curs_sp_funcs.3 keyname_sp.3 \
+ curs_sp_funcs.3 keyok_sp.3 \
+ curs_sp_funcs.3 killchar_sp.3 \
+ curs_sp_funcs.3 mcprint_sp.3 \
+ curs_sp_funcs.3 mouseinterval_sp.3 \
+ curs_sp_funcs.3 mousemask_sp.3 \
+ curs_sp_funcs.3 mvcur_sp.3 \
+ curs_sp_funcs.3 napms_sp.3 \
+ curs_sp_funcs.3 new_form_sp.3 \
+ curs_sp_funcs.3 new_menu_sp.3 \
+ curs_sp_funcs.3 new_prescr.3 \
+ curs_sp_funcs.3 newpad_sp.3 \
+ curs_sp_funcs.3 newterm_sp.3 \
+ curs_sp_funcs.3 newwin_sp.3 \
+ curs_sp_funcs.3 nl_sp.3 \
+ curs_sp_funcs.3 nocbreak_sp.3 \
+ curs_sp_funcs.3 noecho_sp.3 \
+ curs_sp_funcs.3 nofilter_sp.3 \
+ curs_sp_funcs.3 nonl_sp.3 \
+ curs_sp_funcs.3 noqiflush_sp.3 \
+ curs_sp_funcs.3 noraw_sp.3 \
+ curs_sp_funcs.3 pair_content_sp.3 \
+ curs_sp_funcs.3 putp_sp.3 \
+ curs_sp_funcs.3 qiflush_sp.3 \
+ curs_sp_funcs.3 raw_sp.3 \
+ curs_sp_funcs.3 reset_prog_mode_sp.3 \
+ curs_sp_funcs.3 reset_shell_mode_sp.3 \
+ curs_sp_funcs.3 resetty_sp.3 \
+ curs_sp_funcs.3 resize_term_sp.3 \
+ curs_sp_funcs.3 resizeterm_sp.3 \
+ curs_sp_funcs.3 restartterm_sp.3 \
+ curs_sp_funcs.3 ripoffline_sp.3 \
+ curs_sp_funcs.3 savetty_sp.3 \
+ curs_sp_funcs.3 scr_init_sp.3 \
+ curs_sp_funcs.3 scr_restore_sp.3 \
+ curs_sp_funcs.3 scr_set_sp.3 \
+ curs_sp_funcs.3 set_curterm_sp.3 \
+ curs_sp_funcs.3 set_escdelay_sp.3 \
+ curs_sp_funcs.3 set_tabsize_sp.3 \
+ curs_sp_funcs.3 slk_attr_set_sp.3 \
+ curs_sp_funcs.3 slk_attr_sp.3 \
+ curs_sp_funcs.3 slk_attroff_sp.3 \
+ curs_sp_funcs.3 slk_attron_sp.3 \
+ curs_sp_funcs.3 slk_attrset_sp.3 \
+ curs_sp_funcs.3 slk_clear_sp.3 \
+ curs_sp_funcs.3 slk_color_sp.3 \
+ curs_sp_funcs.3 slk_init_sp.3 \
+ curs_sp_funcs.3 slk_label_sp.3 \
+ curs_sp_funcs.3 slk_noutrefresh_sp.3 \
+ curs_sp_funcs.3 slk_refresh_sp.3 \
+ curs_sp_funcs.3 slk_restore_sp.3 \
+ curs_sp_funcs.3 slk_set_sp.3 \
+ curs_sp_funcs.3 slk_touch_sp.3 \
+ curs_sp_funcs.3 start_color_sp.3 \
+ curs_sp_funcs.3 term_attrs_sp.3 \
+ curs_sp_funcs.3 termattrs_sp.3 \
+ curs_sp_funcs.3 termname_sp.3 \
+ curs_sp_funcs.3 tgetent_sp.3 \
+ curs_sp_funcs.3 tgetflag_sp.3 \
+ curs_sp_funcs.3 tgetnum_sp.3 \
+ curs_sp_funcs.3 tgetstr_sp.3 \
+ curs_sp_funcs.3 tigetflag_sp.3 \
+ curs_sp_funcs.3 tigetnum_sp.3 \
+ curs_sp_funcs.3 tigetstr_sp.3 \
+ curs_sp_funcs.3 tputs_sp.3 \
+ curs_sp_funcs.3 typeahead_sp.3 \
+ curs_sp_funcs.3 unctrl_sp.3 \
+ curs_sp_funcs.3 unget_wch_sp.3 \
+ curs_sp_funcs.3 ungetch_sp.3 \
+ curs_sp_funcs.3 ungetmouse_sp.3 \
+ curs_sp_funcs.3 update_panels_sp.3 \
+ curs_sp_funcs.3 use_default_colors_sp.3 \
+ curs_sp_funcs.3 use_env_sp.3 \
+ curs_sp_funcs.3 use_legacy_coding_sp.3 \
+ curs_sp_funcs.3 vid_attr_sp.3 \
+ curs_sp_funcs.3 vid_puts_sp.3 \
+ curs_sp_funcs.3 vidattr_sp.3 \
+ curs_sp_funcs.3 vidputs_sp.3 \
+ curs_sp_funcs.3 wunctrl_sp.3 \
curs_termattrs.3 baudrate.3 \
curs_termattrs.3 erasechar.3 \
curs_termattrs.3 erasewchar.3 \
diff --git a/lib/ncurses/ncurses/ncurses_cfg.h b/lib/ncurses/ncurses/ncurses_cfg.h
index 42570c96e4f0..c6533b2bba53 100644
--- a/lib/ncurses/ncurses/ncurses_cfg.h
+++ b/lib/ncurses/ncurses/ncurses_cfg.h
@@ -49,135 +49,158 @@
#ifndef NC_CONFIG_H
#define NC_CONFIG_H
-#ifdef __cplusplus
+#define SYSTEM_NAME "FreeBSD"
+#define CC_HAS_PROTOS 1
+#if 0
#include <stdlib.h>
#endif
+#define HAVE_LONG_FILE_NAMES 1
+#define MIXEDCASE_FILENAMES 1
+#define USE_SYSMOUSE 1
+#define HAVE_BIG_CORE 1
+#define USE_TERMCAP 1
+#define TERMPATH "/etc/termcap:/usr/share/misc/termcap"
+#define USE_GETCAP 1
+#define HAVE_REMOVE 1
+#define HAVE_UNLINK 1
+#define HAVE_LINK 1
+#define HAVE_SYMLINK 1
+#define USE_LINKS 1
#define BSD_TPUTS 1
-#define CC_HAS_PROTOS 1
-#define CPP_HAS_STATIC_CAST 1
-#define ETIP_NEEDS_MATH_H 1
-#define GCC_NORETURN __attribute__((noreturn))
-#define GCC_PRINTF 1
+#define HAVE_LANGINFO_CODESET 1
+#define HAVE_FSEEKO 1
+#define HAVE_CURSES_VERSION 1
+#define HAVE_HAS_KEY 1
+#define HAVE_RESIZETERM 1
+#define HAVE_RESIZE_TERM 1
+#define HAVE_TERM_ENTRY_H 1
+#define HAVE_USE_DEFAULT_COLORS 1
+#define HAVE_WRESIZE 1
+#define NCURSES_EXT_FUNCS 1
+#define NCURSES_NO_PADDING 1
+#define STDC_HEADERS 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_UNISTD_H 1
+#define SIZEOF_SIGNED_CHAR 1
+#define USE_SIGWINCH 1
+#define USE_ASSUMED_COLOR 1
+#define USE_HASHMAP 1
+#define USE_COLORFGBG 1
+#define NCURSES_WRAP_PREFIX "_nc_"
#define GCC_SCANF 1
+#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
+#define GCC_PRINTF 1
+#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#define GCC_UNUSED __attribute__((unused))
-#define HAVE_BIG_CORE 1
-#define HAVE_BSD_CGETENT 1
-#define HAVE_CURSES_VERSION 1
+#define GCC_NORETURN __attribute__((noreturn))
+#define NDEBUG 1
+#define HAVE_NC_ALLOC_H 1
+#define HAVE_GETTIMEOFDAY 1
+#define STDC_HEADERS 1
#define HAVE_DIRENT_H 1
-#define HAVE_ERRNO 1
+#define TIME_WITH_SYS_TIME 1
+#define HAVE_REGEX_H_FUNCS 1
#define HAVE_FCNTL_H 1
-#define HAVE_FORM_H 1
-#define HAVE_FSEEKO 1
+#define HAVE_GETOPT_H 1
+#define HAVE_LIMITS_H 1
+#define HAVE_LOCALE_H 1
+#define HAVE_MATH_H 1
+#define HAVE_POLL_H 1
+#define HAVE_SYS_IOCTL_H 1
+#define HAVE_SYS_PARAM_H 1
+#define HAVE_SYS_POLL_H 1
+#define HAVE_SYS_SELECT_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_TIMES_H 1
+#define HAVE_TTYENT_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_WCTYPE_H 1
+#define HAVE_SYS_TIME_SELECT 1
+#define SIG_ATOMIC_T volatile sig_atomic_t
+#define TYPEOF_CHTYPE int
+#define HAVE_ERRNO 1
#define HAVE_GETCWD 1
#define HAVE_GETEGID 1
#define HAVE_GETEUID 1
-#define HAVE_GETOPT_H 1
-#define HAVE_GETTIMEOFDAY 1
#define HAVE_GETTTYNAM 1
-#define HAVE_HAS_KEY 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_IOSTREAM 1
-#define HAVE_ISASCII 1
#define HAVE_ISSETUGID 1
-#define HAVE_LANGINFO_CODESET 1
-#define HAVE_LIBFORM 1
-#define HAVE_LIBMENU 1
-#define HAVE_LIBPANEL 1
-#define HAVE_LIMITS_H 1
-#define HAVE_LINK 1
-#define HAVE_LOCALE_H 1
-#define HAVE_LONG_FILE_NAMES 1
-#define HAVE_MEMORY_H 1
-#define HAVE_MENU_H 1
-#define HAVE_MKSTEMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_NC_ALLOC_H 1
-#define HAVE_PANEL_H 1
#define HAVE_POLL 1
-#define HAVE_POLL_H 1
-#define HAVE_REGEX_H_FUNCS 1
-#define HAVE_REMOVE 1
#define HAVE_REMOVE 1
-#define HAVE_RESIZETERM 1
-#define HAVE_RESIZE_TERM 1
#define HAVE_SELECT 1
#define HAVE_SETBUF 1
#define HAVE_SETBUFFER 1
#define HAVE_SETVBUF 1
#define HAVE_SIGACTION 1
#define HAVE_SIGVEC 1
-#define HAVE_SIZECHANGE 1
-#define HAVE_SLK_COLOR 1
-#define HAVE_STDINT_H 1
-#define HAVE_STDLIB_H 1
#define HAVE_STRDUP 1
-#define HAVE_STRINGS_H 1
-#define HAVE_STRING_H 1
#define HAVE_STRSTR 1
-#define HAVE_SYMLINK 1
-#define HAVE_SYS_IOCTL_H 1
-#define HAVE_SYS_PARAM_H 1
-#define HAVE_SYS_POLL_H 1
-#define HAVE_SYS_SELECT_H 1
-#define HAVE_SYS_STAT_H 1
-#define HAVE_SYS_TIMES_H 1
-#define HAVE_SYS_TIME_H 1
-#define HAVE_SYS_TIME_SELECT 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_TCGETATTR 1
#define HAVE_TCGETPGRP 1
-#define HAVE_TERMIOS_H 1
#define HAVE_TIMES 1
-#define HAVE_TTYENT_H 1
-#define HAVE_TYPEINFO 1
-#define HAVE_UNISTD_H 1
-#define HAVE_UNISTD_H 1
-#define HAVE_UNISTD_H 1
-#define HAVE_UNLINK 1
-#define HAVE_USE_DEFAULT_COLORS 1
#define HAVE_VSNPRINTF 1
+#define HAVE_BSD_CGETENT 1
+#define HAVE_ISASCII 1
+#define HAVE_NANOSLEEP 1
+#define HAVE_TERMIOS_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_TCGETATTR 1
#define HAVE_VSSCANF 1
-#define HAVE_WCTYPE_H 1
-#define HAVE_WRESIZE 1
+#define HAVE_MKSTEMP 1
+#define RETSIGTYPE void
+#define HAVE_SIZECHANGE 1
+#define HAVE_WORKING_POLL 1
+#define HAVE_VA_COPY 1
+#define HAVE___VA_COPY 1
+#define HAVE_UNISTD_H 1
+#define HAVE_FORK 1
+#define HAVE_VFORK 1
+#define HAVE_WORKING_VFORK 1
+#define HAVE_WORKING_FORK 1
+#define USE_OPENPTY_HEADER <libutil.h>
+#define USE_XTERM_PTY 1
+#define HAVE_IOSTREAM 1
+#define HAVE_TYPEINFO 1
#define IOSTREAM_NAMESPACE 1
-#define MIXEDCASE_FILENAMES 1
-#define NCURSES_EXT_FUNCS 1
-#define NCURSES_NO_PADDING 1
+#define ETIP_NEEDS_MATH_H 1
+#define HAVE_SLK_COLOR 1
+#define HAVE_PANEL_H 1
+#define HAVE_LIBPANEL 1
+#define HAVE_MENU_H 1
+#define HAVE_LIBMENU 1
+#define HAVE_FORM_H 1
+#define HAVE_LIBFORM 1
#define NCURSES_PATHSEP ':'
-#define NCURSES_VERSION_STRING "5.7.20081102"
-#define NDEBUG 1
-#define RETSIGTYPE void
-#define SIG_ATOMIC_T volatile sig_atomic_t
-#define SIZEOF_SIGNED_CHAR 1
-#define STDC_HEADERS 1
-#define SYSTEM_NAME "FreeBSD"
-#define TERMPATH "/etc/termcap:/usr/share/misc/termcap"
-#define TIME_WITH_SYS_TIME 1
-#define TYPEOF_CHTYPE int
-#define USE_ASSUMED_COLOR 1
-#define USE_COLORFGBG 1
-#define USE_GETCAP 1
-#define USE_HASHMAP 1
-#define USE_LINKS 1
-#define USE_SIGWINCH 1
-#define USE_SYSMOUSE 1
-#define USE_TERMCAP 1
+#define NCURSES_VERSION_STRING "5.9.20110404"
+
+/*
+ * Begin FreeBSD-specific changes
+ */
+/* Support ENABLE_WIDEC */
#ifdef ENABLE_WIDEC
#define USE_WIDEC_SUPPORT 1
+#define HAVE_PUTWC 1
#define HAVE_BTOWC 1
+#define HAVE_WCTOB 1
+#define HAVE_MBTOWC 1
+#define HAVE_WCTOMB 1
#define HAVE_MBLEN 1
#define HAVE_MBRLEN 1
#define HAVE_MBRTOWC 1
-#define HAVE_MBSRTOWCS 1
-#define HAVE_MBSTOWCS 1
-#define HAVE_MBTOWC 1
-#define HAVE_PUTWC 1
#define HAVE_WCSRTOMBS 1
+#define HAVE_MBSRTOWCS 1
#define HAVE_WCSTOMBS 1
-#define HAVE_WCTOB 1
-#define HAVE_WCTOMB 1
+#define HAVE_MBSTOWCS 1
#define NEED_WCHAR_H 1
#endif
+/*
+ * End FreeBSD-specific changes
+ */
#include <ncurses_def.h>