Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding files generated automatic by scripts.

  • Loading branch information...
commit 445494392159881d62bc69bf65feb0c1f5fa21b3 1 parent e6a01f5
Amit Daniel Kachhap authored
Showing with 48,256 additions and 0 deletions.
  1. +35 −0 Ada95/gen/adacurses-config
  2. +42 −0 Android.mk
  3. +52 −0 Android.mk.back
  4. +186 −0 Makefile
  5. +426 −0 edit_man.sed
  6. +768 −0 form/Makefile
  7. +37 −0 headers.sh
  8. +320 −0 include/MKterm.h.awk
  9. +167 −0 include/Makefile
  10. +1,505 −0 include/curses.h
  11. +1,231 −0 include/curses.head
  12. +54 −0 include/eti.h
  13. +403 −0 include/form.h
  14. +6 −0 include/hashsize.h
  15. +256 −0 include/menu.h
  16. +95 −0 include/mf_common.h
  17. +174 −0 include/ncurses_cfg.h
  18. +708 −0 include/ncurses_def.h
  19. +77 −0 include/panel.h
  20. +560 −0 include/parametrized.h
  21. +792 −0 include/term.h
  22. +75 −0 include/termcap.h
  23. +63 −0 include/unctrl.h
  24. +3,337 −0 man/terminfo.5
  25. +630 −0 menu/Makefile
  26. +152 −0 misc/Makefile
  27. +161 −0 misc/ncurses-config
  28. +4 −0 misc/run_tic.sed
  29. +174 −0 misc/run_tic.sh
  30. +21,803 −0 misc/terminfo.tmp
  31. +2,022 −0 ncurses/Makefile
  32. +666 −0 ncurses/codes.c
  33. +3,355 −0 ncurses/comp_captab.c
  34. +27 −0 ncurses/expanded.c
  35. +12 −0 ncurses/fallback.c
  36. +162 −0 ncurses/init_keytry.h
  37. +155 −0 ncurses/keys.list
  38. +973 −0 ncurses/lib_gen.c
  39. +405 −0 ncurses/lib_keyname.c
  40. +1,999 −0 ncurses/link_test.c
  41. BIN  ncurses/make_hash
  42. BIN  ncurses/make_keys
  43. +1,365 −0 ncurses/names.c
  44. +163 −0 ncurses/unctrl.c
  45. +492 −0 panel/Makefile
  46. BIN  progs/clear
  47. BIN  progs/infocmp
  48. +2,163 −0 progs/termsort.c
  49. BIN  progs/tic
  50. BIN  progs/toe
  51. BIN  progs/tput
  52. +4 −0 progs/transform.h
  53. BIN  progs/tset
  54. BIN  test/background
  55. BIN  test/blue
  56. BIN  test/bs
  57. BIN  test/cardfile
  58. BIN  test/chgat
  59. BIN  test/color_set
  60. BIN  test/demo_altkeys
  61. BIN  test/demo_defkey
  62. BIN  test/demo_forms
  63. BIN  test/demo_keyok
  64. BIN  test/demo_menus
  65. BIN  test/demo_panels
  66. BIN  test/demo_termcap
  67. BIN  test/ditto
  68. BIN  test/dots
  69. BIN  test/dots_mvcur
  70. BIN  test/echochar
  71. BIN  test/filter
  72. BIN  test/firework
  73. BIN  test/firstlast
  74. BIN  test/foldkeys
  75. BIN  test/gdc
  76. BIN  test/hanoi
  77. BIN  test/hashtest
  78. BIN  test/inch_wide
  79. BIN  test/inchs
  80. BIN  test/ins_wide
  81. BIN  test/inserts
  82. BIN  test/key_names
  83. BIN  test/keynames
  84. BIN  test/knight
  85. BIN  test/lrtest
  86. BIN  test/movewindow
  87. BIN  test/ncurses
  88. BIN  test/newdemo
  89. BIN  test/railroad
  90. BIN  test/rain
  91. BIN  test/redraw
  92. BIN  test/savescreen
  93. BIN  test/tclock
  94. BIN  test/test_arrays
  95. BIN  test/test_get_wstr
  96. BIN  test/test_getstr
  97. BIN  test/test_instr
  98. BIN  test/test_inwstr
  99. BIN  test/test_opaque
  100. BIN  test/testaddch
  101. BIN  test/testcurs
  102. BIN  test/testscanw
  103. BIN  test/view
  104. BIN  test/worm
  105. BIN  test/xmas
View
35 Ada95/gen/adacurses-config
@@ -0,0 +1,35 @@
+#! /bin/sh
+# $Id: adacurses-config.in,v 1.2 2007/04/07 21:06:50 tom Exp $
+#
+# This script will return the option to add to `gnatmake' for using
+# AdaCurses.
+#
+
+prefix="/usr/local"
+exec_prefix="${prefix}"
+libdir="${exec_prefix}/lib"
+
+VERSION="5.7.20081102"
+
+CFLAGS="-I$libdir/adacurses -L$libdir/adacurses"
+LIBS="-L$prefix/lib -lAdaCurses"
+
+case "x$1" in
+ x--version)
+ echo AdaCurses $VERSION
+ ;;
+ x--cflags)
+ echo $CFLAGS
+ ;;
+ x--libs)
+ echo $LIBS
+ ;;
+ x)
+ # if no parameter is given, give what gnatmake needs
+ echo $CFLAGS -largs $LIBS
+ ;;
+ *)
+ echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2
+ exit 1
+ ;;
+esac
View
42 Android.mk
@@ -0,0 +1,42 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-c-files-under, ncurses/tty)
+LOCAL_SRC_FILES += $(call all-c-files-under, ncurses/base)
+LOCAL_SRC_FILES := $(filter-out ncurses/base/sigaction.c, $(LOCAL_SRC_FILES))
+LOCAL_SRC_FILES += $(call all-c-files-under, ncurses/tinfo)
+#OCAL_SRC_FILES += $(call all-c-files-under, ncurses)
+
+#OCAL_SRC_FILES := $(filter-out ncurses/link_test.c, $(LOCAL_SRC_FILES))
+
+
+
+LOCAL_SRC_FILES += ncurses/trace/lib_trace.c \
+ ncurses/trace/varargs.c \
+ ncurses/trace/visbuf.c \
+ ncurses/codes.c \
+ ncurses/comp_captab.c \
+ ncurses/expanded.c \
+ ncurses/fallback.c \
+ ncurses/lib_gen.c \
+ ncurses/lib_keyname.c \
+ ncurses/names.c \
+ ncurses/unctrl.c \
+
+
+LOCAL_SRC_FILES := $(sort $(LOCAL_SRC_FILES))
+
+LOCAL_CFLAGS := -DHAVE_CONFIG_H -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=199506L -DNDEBUG
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH) \
+ $(LOCAL_PATH)/include \
+ $(LOCAL_PATH)/ncurses \
+ #kernel/android-2.6.32/include
+
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE := libncurses
+
+#include $(BUILD_SHARED_LIBRARY)
+include $(BUILD_STATIC_LIBRARY)
+
View
52 Android.mk.back
@@ -0,0 +1,52 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-c-files-under, ncurses/tty)
+LOCAL_SRC_FILES += $(call all-c-files-under, ncurses/base)
+
+
+ncurses/tty/hardscroll.c \
+ ncurses/tty/hashmap.c \
+ ncurses/tty/lib_mvcur.c \
+ ncurses/tty/lib_tstp.c \
+ ncurses/tty/lib_twait.c \
+ ncurses/tty/lib_vidattr.c \
+ ncurses/tty/tty_update.c \
+
+ ncurses/tty/*.c
+
+ ncurses/base/*.c
+
+
+
+ \
+ lib/doc.c \
+ lib/cache_mngr.c \
+ lib/addr.c \
+ lib/socket.c \
+ lib/fib_lookup/lookup.c \
+ lib/fib_lookup/request.c \
+ lib/msg.c \
+ lib/object.c \
+ lib/attr.c \
+ lib/utils.c \
+ lib/cache_mngt.c \
+ lib/handlers.c \
+ lib/genl/ctrl.c \
+ lib/genl/mngt.c \
+ lib/genl/family.c \
+ lib/genl/genl.c \
+ lib/route/rtnl.c \
+ lib/route/route_utils.c
+
+#LOCAL_CFLAGS :=
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+ #kernel/android-2.6.32/include
+
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE := libnl
+
+include $(BUILD_SHARED_LIBRARY)
+#include $(BUILD_STATIC_LIBRARY)
+
View
186 Makefile
@@ -0,0 +1,186 @@
+# $Id: Makefile.in,v 1.24 2005/01/29 19:30:06 tom Exp $
+##############################################################################
+# Copyright (c) 1998-2004,2005 Free Software Foundation, Inc. #
+# #
+# Permission is hereby granted, free of charge, to any person obtaining a #
+# copy of this software and associated documentation files (the "Software"), #
+# to deal in the Software without restriction, including without limitation #
+# the rights to use, copy, modify, merge, publish, distribute, distribute #
+# with modifications, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to the #
+# following conditions: #
+# #
+# The above copyright notice and this permission notice shall be included in #
+# all copies or substantial portions of the Software. #
+# #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
+# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
+# DEALINGS IN THE SOFTWARE. #
+# #
+# Except as contained in this notice, the name(s) of the above copyright #
+# holders shall not be used in advertising or otherwise to promote the sale, #
+# use or other dealings in this Software without prior written #
+# authorization. #
+##############################################################################
+#
+# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
+#
+# Master Makefile for ncurses library.
+
+SHELL = /bin/sh
+
+DESTDIR=
+CF_MFLAGS = DESTDIR="$(DESTDIR)"
+
+
+
+NCURSES_MAJOR = 5
+NCURSES_MINOR = 7
+NCURSES_PATCH = 20081102
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+bindir = ${exec_prefix}/bin
+ticdir = /usr/local/share/terminfo
+includedir = ${prefix}/include/ncurses
+libdir = ${exec_prefix}/lib
+mandir = ${prefix}/man
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+
+DIRS_TO_MAKE = lib objects obj_g
+
+all :: $(DIRS_TO_MAKE)
+
+$(DIRS_TO_MAKE) :
+ mkdir $@
+
+preinstall :
+ @ echo ''
+ @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
+ @ echo ''
+ @ echo ' extended funcs: '`test 1 != 0 && echo yes || echo no`
+ @ echo ' xterm terminfo: 'xterm-new
+ @ echo ''
+ @ echo ' bin directory: '$(bindir)
+ @ echo ' lib directory: '$(libdir)
+ @ echo ' include directory: '$(includedir)
+ @ echo ' man directory: '$(mandir)
+ @ echo ' terminfo directory: '$(ticdir)
+ @ echo ''
+ @ test "$(includedir)" = "$(prefix)/include" || \
+ echo '** Include-directory is not in a standard location'
+ @ test ! -f $(includedir)/termcap.h || \
+ fgrep NCURSES_VERSION $(includedir)/termcap.h >/dev/null || \
+ echo '** Will overwrite non-ncurses termcap.h'
+ @ test ! -f $(includedir)/curses.h || \
+ fgrep NCURSES_VERSION $(includedir)/curses.h >/dev/null || \
+ echo '** Will overwrite non-ncurses curses.h'
+
+# Put the common rules here so that we can easily construct the list of
+# directories to visit.
+all \
+clean \
+distclean \
+mostlyclean \
+realclean \
+depend \
+sources \
+tags \
+uninstall \
+install ::
+ cd man && ${MAKE} ${CF_MFLAGS} $@
+ cd include && ${MAKE} ${CF_MFLAGS} $@
+ cd ncurses && ${MAKE} ${CF_MFLAGS} $@
+ cd progs && ${MAKE} ${CF_MFLAGS} $@
+ cd panel && ${MAKE} ${CF_MFLAGS} $@
+ cd menu && ${MAKE} ${CF_MFLAGS} $@
+ cd form && ${MAKE} ${CF_MFLAGS} $@
+ cd test && ${MAKE} ${CF_MFLAGS} $@
+ cd misc && ${MAKE} ${CF_MFLAGS} $@
+
+libs \
+install.libs \
+uninstall.libs \
+install.includes \
+uninstall.includes ::
+ cd include && ${MAKE} ${CF_MFLAGS} $@
+
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.ncurses \
+uninstall.ncurses ::
+ cd ncurses && ${MAKE} ${CF_MFLAGS} $@
+
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.progs \
+uninstall.progs ::
+ cd progs && ${MAKE} ${CF_MFLAGS} $@
+
+install.includes \
+uninstall.includes \
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.panel \
+uninstall.panel ::
+ cd panel && ${MAKE} ${CF_MFLAGS} $@
+
+install.includes \
+uninstall.includes \
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.menu \
+uninstall.menu ::
+ cd menu && ${MAKE} ${CF_MFLAGS} $@
+
+install.includes \
+uninstall.includes \
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.form \
+uninstall.form ::
+ cd form && ${MAKE} ${CF_MFLAGS} $@
+
+lint \
+libs \
+lintlib \
+install.libs \
+uninstall.libs \
+install.test \
+uninstall.test ::
+ cd test && ${MAKE} ${CF_MFLAGS} $@
+
+install.libs uninstall.libs \
+install.data uninstall.data ::
+ cd misc && ${MAKE} ${CF_MFLAGS} $@
+
+install.man \
+uninstall.man ::
+ cd man && ${MAKE} ${CF_MFLAGS} $@
+
+distclean ::
+ rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
+ rm -f headers.sh headers.sed mk_shared_lib.sh
+ rm -rf ${DIRS_TO_MAKE}
View
426 edit_man.sed
@@ -0,0 +1,426 @@
+# Do the TH lines
+s/TH \<captoinfo 1M ""/TH captoinfo 1 ""/
+s/TH \<clear 1 ""/TH clear 1 ""/
+s/TH \<curs_add_wch 3X ""/TH add_wch 3NCURSES ""/
+s/TH \<curs_add_wchstr 3X ""/TH add_wchstr 3NCURSES ""/
+s/TH \<curs_addch 3X ""/TH addch 3NCURSES ""/
+s/TH \<curs_addchstr 3X ""/TH addchstr 3NCURSES ""/
+s/TH \<curs_addstr 3X ""/TH addstr 3NCURSES ""/
+s/TH \<curs_addwstr 3X ""/TH addwstr 3NCURSES ""/
+s/TH \<curs_attr 3X ""/TH attr 3NCURSES ""/
+s/TH \<curs_beep 3X ""/TH beep 3NCURSES ""/
+s/TH \<curs_bkgd 3X ""/TH bkgd 3NCURSES ""/
+s/TH \<curs_bkgrnd 3X ""/TH bkgrnd 3NCURSES ""/
+s/TH \<curs_border 3X ""/TH border 3NCURSES ""/
+s/TH \<curs_border_set 3X ""/TH border_set 3NCURSES ""/
+s/TH \<curs_clear 3X ""/TH clear 3NCURSES ""/
+s/TH \<curs_color 3X ""/TH color 3NCURSES ""/
+s/TH \<curs_delch 3X ""/TH delch 3NCURSES ""/
+s/TH \<curs_deleteln 3X ""/TH deleteln 3NCURSES ""/
+s/TH \<curs_extend 3X ""/TH extensions 3NCURSES ""/
+s/TH \<curs_get_wch 3X ""/TH get_wch 3NCURSES ""/
+s/TH \<curs_get_wstr 3X ""/TH get_wstr 3NCURSES ""/
+s/TH \<curs_getcchar 3X ""/TH getcchar 3NCURSES ""/
+s/TH \<curs_getch 3X ""/TH getch 3NCURSES ""/
+s/TH \<curs_getstr 3X ""/TH getstr 3NCURSES ""/
+s/TH \<curs_getyx 3X ""/TH getyx 3NCURSES ""/
+s/TH \<curs_in_wch 3X ""/TH in_wch 3NCURSES ""/
+s/TH \<curs_in_wchstr 3X ""/TH in_wchstr 3NCURSES ""/
+s/TH \<curs_inch 3X ""/TH inch 3NCURSES ""/
+s/TH \<curs_inchstr 3X ""/TH inchstr 3NCURSES ""/
+s/TH \<curs_initscr 3X ""/TH initscr 3NCURSES ""/
+s/TH \<curs_inopts 3X ""/TH inopts 3NCURSES ""/
+s/TH \<curs_ins_wch 3X ""/TH ins_wch 3NCURSES ""/
+s/TH \<curs_ins_wstr 3X ""/TH ins_wstr 3NCURSES ""/
+s/TH \<curs_insch 3X ""/TH insch 3NCURSES ""/
+s/TH \<curs_insstr 3X ""/TH insstr 3NCURSES ""/
+s/TH \<curs_instr 3X ""/TH instr 3NCURSES ""/
+s/TH \<curs_inwstr 3X ""/TH inwstr 3NCURSES ""/
+s/TH \<curs_kernel 3X ""/TH kernel 3NCURSES ""/
+s/TH \<curs_legacy 3X ""/TH legacy 3NCURSES ""/
+s/TH \<curs_memleaks 3X ""/TH memleaks 3NCURSES ""/
+s/TH \<curs_mouse 3X ""/TH mouse 3NCURSES ""/
+s/TH \<curs_move 3X ""/TH move 3NCURSES ""/
+s/TH \<curs_opaque 3X ""/TH opaque 3NCURSES ""/
+s/TH \<curs_outopts 3X ""/TH outopts 3NCURSES ""/
+s/TH \<curs_overlay 3X ""/TH overlay 3NCURSES ""/
+s/TH \<curs_pad 3X ""/TH pad 3NCURSES ""/
+s/TH \<curs_print 3X ""/TH print 3NCURSES ""/
+s/TH \<curs_printw 3X ""/TH printw 3NCURSES ""/
+s/TH \<curs_refresh 3X ""/TH refresh 3NCURSES ""/
+s/TH \<curs_scanw 3X ""/TH scanw 3NCURSES ""/
+s/TH \<curs_scr_dump 3X ""/TH scr_dump 3NCURSES ""/
+s/TH \<curs_scroll 3X ""/TH scroll 3NCURSES ""/
+s/TH \<curs_slk 3X ""/TH slk 3NCURSES ""/
+s/TH \<curs_termattrs 3X ""/TH termattrs 3NCURSES ""/
+s/TH \<curs_termcap 3X ""/TH termcap 3NCURSES ""/
+s/TH \<curs_terminfo 3X ""/TH terminfo 3NCURSES ""/
+s/TH \<curs_threads 3X ""/TH threads 3NCURSES ""/
+s/TH \<curs_touch 3X ""/TH touch 3NCURSES ""/
+s/TH \<curs_trace 3X ""/TH trace 3NCURSES ""/
+s/TH \<curs_util 3X ""/TH util 3NCURSES ""/
+s/TH \<curs_window 3X ""/TH window 3NCURSES ""/
+s/TH \<curses 3X ""/TH ncurses 3NCURSES ""/
+s/TH \<default_colors 3X ""/TH default_colors 3NCURSES ""/
+s/TH \<define_key 3X ""/TH define_key 3NCURSES ""/
+s/TH \<form 3X ""/TH form 3FORM ""/
+s/TH \<form_cursor 3X ""/TH cursor 3FORM ""/
+s/TH \<form_data 3X ""/TH data 3FORM ""/
+s/TH \<form_driver 3X ""/TH driver 3FORM ""/
+s/TH \<form_field 3X ""/TH field 3FORM ""/
+s/TH \<form_field_attributes 3X ""/TH field_attributes 3FORM ""/
+s/TH \<form_field_buffer 3X ""/TH field_buffer 3FORM ""/
+s/TH \<form_field_info 3X ""/TH field_info 3FORM ""/
+s/TH \<form_field_just 3X ""/TH field_just 3FORM ""/
+s/TH \<form_field_new 3X ""/TH field_new 3FORM ""/
+s/TH \<form_field_opts 3X ""/TH field_opts 3FORM ""/
+s/TH \<form_field_userptr 3X ""/TH field_userptr 3FORM ""/
+s/TH \<form_field_validation 3X ""/TH field_validation 3FORM ""/
+s/TH \<form_fieldtype 3X ""/TH fieldtype 3FORM ""/
+s/TH \<form_hook 3X ""/TH hook 3FORM ""/
+s/TH \<form_new 3X ""/TH new 3FORM ""/
+s/TH \<form_new_page 3X ""/TH new_page 3FORM ""/
+s/TH \<form_opts 3X ""/TH opts 3FORM ""/
+s/TH \<form_page 3X ""/TH page 3FORM ""/
+s/TH \<form_post 3X ""/TH post 3FORM ""/
+s/TH \<form_requestname 3X ""/TH requestname 3FORM ""/
+s/TH \<form_userptr 3X ""/TH userptr 3FORM ""/
+s/TH \<form_win 3X ""/TH win 3FORM ""/
+s/TH \<infocmp 1M ""/TH infocmp 1 ""/
+s/TH \<infotocap 1M ""/TH infotocap 1 ""/
+s/TH \<key_defined 3X ""/TH key_defined 3NCURSES ""/
+s/TH \<keybound 3X ""/TH keybound 3NCURSES ""/
+s/TH \<keyok 3X ""/TH keyok 3NCURSES ""/
+s/TH \<legacy_coding 3X ""/TH legacy_coding 3NCURSES ""/
+s/TH \<menu 3X ""/TH menu 3MENU ""/
+s/TH \<menu_attributes 3X ""/TH attributes 3MENU ""/
+s/TH \<menu_cursor 3X ""/TH cursor 3MENU ""/
+s/TH \<menu_driver 3X ""/TH driver 3MENU ""/
+s/TH \<menu_format 3X ""/TH format 3MENU ""/
+s/TH \<menu_hook 3X ""/TH hook 3MENU ""/
+s/TH \<menu_items 3X ""/TH items 3MENU ""/
+s/TH \<menu_mark 3X ""/TH mark 3MENU ""/
+s/TH \<menu_new 3X ""/TH new 3MENU ""/
+s/TH \<menu_opts 3X ""/TH opts 3MENU ""/
+s/TH \<menu_pattern 3X ""/TH pattern 3MENU ""/
+s/TH \<menu_post 3X ""/TH post 3MENU ""/
+s/TH \<menu_requestname 3X ""/TH requestname 3MENU ""/
+s/TH \<menu_spacing 3X ""/TH spacing 3MENU ""/
+s/TH \<menu_userptr 3X ""/TH userptr 3MENU ""/
+s/TH \<menu_win 3X ""/TH win 3MENU ""/
+s/TH \<mitem_current 3X ""/TH menu_current 3MENU ""/
+s/TH \<mitem_name 3X ""/TH menu_name 3MENU ""/
+s/TH \<mitem_new 3X ""/TH menu_new 3MENU ""/
+s/TH \<mitem_opts 3X ""/TH menu_opts 3MENU ""/
+s/TH \<mitem_userptr 3X ""/TH menu_userptr 3MENU ""/
+s/TH \<mitem_value 3X ""/TH menu_value 3MENU ""/
+s/TH \<mitem_visible 3X ""/TH menu_visible 3MENU ""/
+s/TH \<ncurses 3X ""/TH ncurses 3NCURSES ""/
+s/TH \<panel 3X ""/TH panel 3CURSES ""/
+s/TH \<printf 3S ""/TH printf 3 ""/
+s/TH \<putc 3S ""/TH putc 3 ""/
+s/TH \<resizeterm 3X ""/TH resizeterm 3NCURSES ""/
+s/TH \<scanf 3S ""/TH scanf 3 ""/
+s/TH \<system 3S ""/TH system 3 ""/
+s/TH \<term 5 ""/TH term 5 ""/
+s/TH \<term 7 ""/TH term 7 ""/
+s/TH \<terminfo 5 ""/TH terminfo 5 ""/
+s/TH \<terminfo \\\*N ""/TH terminfo 5 ""/
+s/TH \<tic 1M ""/TH tic 1 ""/
+s/TH \<toe 1M ""/TH toe 1 ""/
+s/TH \<tput 1 ""/TH tput 1 ""/
+s/TH \<tset 1 ""/TH tset 1 ""/
+s/TH \<vprintf 3S ""/TH vprintf 3 ""/
+s/TH \<wresize 3X ""/TH wresize 3NCURSES ""/
+s/TH \<tack 1M ""/TH tack 1 ""/
+s/TH \<getty 1 ""/TH getty 8 ""/
+s/TH \<scanf 3 ""/TH scanf 3 ""/
+s/TH \<ttys 5 ""/TH ttys 4 ""/
+s/TH \<termio 7 ""/TH termios 3 ""/
+s/TH \<system 3 ""/TH system 3 ""/
+s/TH \<regcomp 3X ""/TH regcomp 3 ""/
+s/TH \<regexec 3X ""/TH regexec 3 ""/
+# Do the embedded references
+s/\<fBcaptoinfo\\fR(1M)/fBcaptoinfo\\fR(1)/
+s/\<fBclear\\fR(1)/fBclear\\fR(1)/
+s/\<fBcurs_add_wch\\fR(3X)/fBadd_wch\\fR(3NCURSES)/
+s/\<fBcurs_add_wchstr\\fR(3X)/fBadd_wchstr\\fR(3NCURSES)/
+s/\<fBcurs_addch\\fR(3X)/fBaddch\\fR(3NCURSES)/
+s/\<fBcurs_addchstr\\fR(3X)/fBaddchstr\\fR(3NCURSES)/
+s/\<fBcurs_addstr\\fR(3X)/fBaddstr\\fR(3NCURSES)/
+s/\<fBcurs_addwstr\\fR(3X)/fBaddwstr\\fR(3NCURSES)/
+s/\<fBcurs_attr\\fR(3X)/fBattr\\fR(3NCURSES)/
+s/\<fBcurs_beep\\fR(3X)/fBbeep\\fR(3NCURSES)/
+s/\<fBcurs_bkgd\\fR(3X)/fBbkgd\\fR(3NCURSES)/
+s/\<fBcurs_bkgrnd\\fR(3X)/fBbkgrnd\\fR(3NCURSES)/
+s/\<fBcurs_border\\fR(3X)/fBborder\\fR(3NCURSES)/
+s/\<fBcurs_border_set\\fR(3X)/fBborder_set\\fR(3NCURSES)/
+s/\<fBcurs_clear\\fR(3X)/fBclear\\fR(3NCURSES)/
+s/\<fBcurs_color\\fR(3X)/fBcolor\\fR(3NCURSES)/
+s/\<fBcurs_delch\\fR(3X)/fBdelch\\fR(3NCURSES)/
+s/\<fBcurs_deleteln\\fR(3X)/fBdeleteln\\fR(3NCURSES)/
+s/\<fBcurs_extend\\fR(3X)/fBextensions\\fR(3NCURSES)/
+s/\<fBcurs_get_wch\\fR(3X)/fBget_wch\\fR(3NCURSES)/
+s/\<fBcurs_get_wstr\\fR(3X)/fBget_wstr\\fR(3NCURSES)/
+s/\<fBcurs_getcchar\\fR(3X)/fBgetcchar\\fR(3NCURSES)/
+s/\<fBcurs_getch\\fR(3X)/fBgetch\\fR(3NCURSES)/
+s/\<fBcurs_getstr\\fR(3X)/fBgetstr\\fR(3NCURSES)/
+s/\<fBcurs_getyx\\fR(3X)/fBgetyx\\fR(3NCURSES)/
+s/\<fBcurs_in_wch\\fR(3X)/fBin_wch\\fR(3NCURSES)/
+s/\<fBcurs_in_wchstr\\fR(3X)/fBin_wchstr\\fR(3NCURSES)/
+s/\<fBcurs_inch\\fR(3X)/fBinch\\fR(3NCURSES)/
+s/\<fBcurs_inchstr\\fR(3X)/fBinchstr\\fR(3NCURSES)/
+s/\<fBcurs_initscr\\fR(3X)/fBinitscr\\fR(3NCURSES)/
+s/\<fBcurs_inopts\\fR(3X)/fBinopts\\fR(3NCURSES)/
+s/\<fBcurs_ins_wch\\fR(3X)/fBins_wch\\fR(3NCURSES)/
+s/\<fBcurs_ins_wstr\\fR(3X)/fBins_wstr\\fR(3NCURSES)/
+s/\<fBcurs_insch\\fR(3X)/fBinsch\\fR(3NCURSES)/
+s/\<fBcurs_insstr\\fR(3X)/fBinsstr\\fR(3NCURSES)/
+s/\<fBcurs_instr\\fR(3X)/fBinstr\\fR(3NCURSES)/
+s/\<fBcurs_inwstr\\fR(3X)/fBinwstr\\fR(3NCURSES)/
+s/\<fBcurs_kernel\\fR(3X)/fBkernel\\fR(3NCURSES)/
+s/\<fBcurs_legacy\\fR(3X)/fBlegacy\\fR(3NCURSES)/
+s/\<fBcurs_memleaks\\fR(3X)/fBmemleaks\\fR(3NCURSES)/
+s/\<fBcurs_mouse\\fR(3X)/fBmouse\\fR(3NCURSES)/
+s/\<fBcurs_move\\fR(3X)/fBmove\\fR(3NCURSES)/
+s/\<fBcurs_opaque\\fR(3X)/fBopaque\\fR(3NCURSES)/
+s/\<fBcurs_outopts\\fR(3X)/fBoutopts\\fR(3NCURSES)/
+s/\<fBcurs_overlay\\fR(3X)/fBoverlay\\fR(3NCURSES)/
+s/\<fBcurs_pad\\fR(3X)/fBpad\\fR(3NCURSES)/
+s/\<fBcurs_print\\fR(3X)/fBprint\\fR(3NCURSES)/
+s/\<fBcurs_printw\\fR(3X)/fBprintw\\fR(3NCURSES)/
+s/\<fBcurs_refresh\\fR(3X)/fBrefresh\\fR(3NCURSES)/
+s/\<fBcurs_scanw\\fR(3X)/fBscanw\\fR(3NCURSES)/
+s/\<fBcurs_scr_dump\\fR(3X)/fBscr_dump\\fR(3NCURSES)/
+s/\<fBcurs_scroll\\fR(3X)/fBscroll\\fR(3NCURSES)/
+s/\<fBcurs_slk\\fR(3X)/fBslk\\fR(3NCURSES)/
+s/\<fBcurs_termattrs\\fR(3X)/fBtermattrs\\fR(3NCURSES)/
+s/\<fBcurs_termcap\\fR(3X)/fBtermcap\\fR(3NCURSES)/
+s/\<fBcurs_terminfo\\fR(3X)/fBterminfo\\fR(3NCURSES)/
+s/\<fBcurs_threads\\fR(3X)/fBthreads\\fR(3NCURSES)/
+s/\<fBcurs_touch\\fR(3X)/fBtouch\\fR(3NCURSES)/
+s/\<fBcurs_trace\\fR(3X)/fBtrace\\fR(3NCURSES)/
+s/\<fBcurs_util\\fR(3X)/fButil\\fR(3NCURSES)/
+s/\<fBcurs_window\\fR(3X)/fBwindow\\fR(3NCURSES)/
+s/\<fBcurses\\fR(3X)/fBncurses\\fR(3NCURSES)/
+s/\<fBdefault_colors\\fR(3X)/fBdefault_colors\\fR(3NCURSES)/
+s/\<fBdefine_key\\fR(3X)/fBdefine_key\\fR(3NCURSES)/
+s/\<fBform\\fR(3X)/fBform\\fR(3FORM)/
+s/\<fBform_cursor\\fR(3X)/fBcursor\\fR(3FORM)/
+s/\<fBform_data\\fR(3X)/fBdata\\fR(3FORM)/
+s/\<fBform_driver\\fR(3X)/fBdriver\\fR(3FORM)/
+s/\<fBform_field\\fR(3X)/fBfield\\fR(3FORM)/
+s/\<fBform_field_attributes\\fR(3X)/fBfield_attributes\\fR(3FORM)/
+s/\<fBform_field_buffer\\fR(3X)/fBfield_buffer\\fR(3FORM)/
+s/\<fBform_field_info\\fR(3X)/fBfield_info\\fR(3FORM)/
+s/\<fBform_field_just\\fR(3X)/fBfield_just\\fR(3FORM)/
+s/\<fBform_field_new\\fR(3X)/fBfield_new\\fR(3FORM)/
+s/\<fBform_field_opts\\fR(3X)/fBfield_opts\\fR(3FORM)/
+s/\<fBform_field_userptr\\fR(3X)/fBfield_userptr\\fR(3FORM)/
+s/\<fBform_field_validation\\fR(3X)/fBfield_validation\\fR(3FORM)/
+s/\<fBform_fieldtype\\fR(3X)/fBfieldtype\\fR(3FORM)/
+s/\<fBform_hook\\fR(3X)/fBhook\\fR(3FORM)/
+s/\<fBform_new\\fR(3X)/fBnew\\fR(3FORM)/
+s/\<fBform_new_page\\fR(3X)/fBnew_page\\fR(3FORM)/
+s/\<fBform_opts\\fR(3X)/fBopts\\fR(3FORM)/
+s/\<fBform_page\\fR(3X)/fBpage\\fR(3FORM)/
+s/\<fBform_post\\fR(3X)/fBpost\\fR(3FORM)/
+s/\<fBform_requestname\\fR(3X)/fBrequestname\\fR(3FORM)/
+s/\<fBform_userptr\\fR(3X)/fBuserptr\\fR(3FORM)/
+s/\<fBform_win\\fR(3X)/fBwin\\fR(3FORM)/
+s/\<fBinfocmp\\fR(1M)/fBinfocmp\\fR(1)/
+s/\<fBinfotocap\\fR(1M)/fBinfotocap\\fR(1)/
+s/\<fBkey_defined\\fR(3X)/fBkey_defined\\fR(3NCURSES)/
+s/\<fBkeybound\\fR(3X)/fBkeybound\\fR(3NCURSES)/
+s/\<fBkeyok\\fR(3X)/fBkeyok\\fR(3NCURSES)/
+s/\<fBlegacy_coding\\fR(3X)/fBlegacy_coding\\fR(3NCURSES)/
+s/\<fBmenu\\fR(3X)/fBmenu\\fR(3MENU)/
+s/\<fBmenu_attributes\\fR(3X)/fBattributes\\fR(3MENU)/
+s/\<fBmenu_cursor\\fR(3X)/fBcursor\\fR(3MENU)/
+s/\<fBmenu_driver\\fR(3X)/fBdriver\\fR(3MENU)/
+s/\<fBmenu_format\\fR(3X)/fBformat\\fR(3MENU)/
+s/\<fBmenu_hook\\fR(3X)/fBhook\\fR(3MENU)/
+s/\<fBmenu_items\\fR(3X)/fBitems\\fR(3MENU)/
+s/\<fBmenu_mark\\fR(3X)/fBmark\\fR(3MENU)/
+s/\<fBmenu_new\\fR(3X)/fBnew\\fR(3MENU)/
+s/\<fBmenu_opts\\fR(3X)/fBopts\\fR(3MENU)/
+s/\<fBmenu_pattern\\fR(3X)/fBpattern\\fR(3MENU)/
+s/\<fBmenu_post\\fR(3X)/fBpost\\fR(3MENU)/
+s/\<fBmenu_requestname\\fR(3X)/fBrequestname\\fR(3MENU)/
+s/\<fBmenu_spacing\\fR(3X)/fBspacing\\fR(3MENU)/
+s/\<fBmenu_userptr\\fR(3X)/fBuserptr\\fR(3MENU)/
+s/\<fBmenu_win\\fR(3X)/fBwin\\fR(3MENU)/
+s/\<fBmitem_current\\fR(3X)/fBmenu_current\\fR(3MENU)/
+s/\<fBmitem_name\\fR(3X)/fBmenu_name\\fR(3MENU)/
+s/\<fBmitem_new\\fR(3X)/fBmenu_new\\fR(3MENU)/
+s/\<fBmitem_opts\\fR(3X)/fBmenu_opts\\fR(3MENU)/
+s/\<fBmitem_userptr\\fR(3X)/fBmenu_userptr\\fR(3MENU)/
+s/\<fBmitem_value\\fR(3X)/fBmenu_value\\fR(3MENU)/
+s/\<fBmitem_visible\\fR(3X)/fBmenu_visible\\fR(3MENU)/
+s/\<fBncurses\\fR(3X)/fBncurses\\fR(3NCURSES)/
+s/\<fBpanel\\fR(3X)/fBpanel\\fR(3CURSES)/
+s/\<fBprintf\\fR(3S)/fBprintf\\fR(3)/
+s/\<fBputc\\fR(3S )/fBputc\\fR(3)/
+s/\<fBresizeterm\\fR(3X)/fBresizeterm\\fR(3NCURSES)/
+s/\<fBscanf\\fR(3S)/fBscanf\\fR(3)/
+s/\<fBsystem\\fR(3S)/fBsystem\\fR(3)/
+s/\<fBterm\\fR(5)/fBterm\\fR(5)/
+s/\<fBterm\\fR(7)/fBterm\\fR(7)/
+s/\<fBterminfo\\fR(5)/fBterminfo\\fR(5)/
+s/\<fBterminfo\\fR(\\\*N)/fBterminfo\\fR(5)/
+s/\<fBtic\\fR(1M)/fBtic\\fR(1)/
+s/\<fBtoe\\fR(1M)/fBtoe\\fR(1)/
+s/\<fBtput\\fR(1)/fBtput\\fR(1)/
+s/\<fBtset\\fR(1)/fBtset\\fR(1)/
+s/\<fBvprintf\\fR(3S)/fBvprintf\\fR(3)/
+s/\<fBwresize\\fR(3X)/fBwresize\\fR(3NCURSES)/
+s/\<fBtack\\fR(1M)/fBtack\\fR(1)/
+s/\<fBgetty\\fR(1)/fBgetty\\fR(8)/
+s/\<fBscanf\\fR(3)/fBscanf\\fR(3)/
+s/\<fBttys\\fR(5)/fBttys\\fR(4)/
+s/\<fBtermio\\fR(7)/fBtermios\\fR(3)/
+s/\<fBsystem\\fR(3)/fBsystem\\fR(3)/
+s/\<fBregcomp\\fR(3X)/fBregcomp\\fR(3)/
+s/\<fBregexec\\fR(3X)/fBregexec\\fR(3)/
+# Do the Bxxx R references in the .NAME section
+s/^\\fBcaptoinfo\\f[RP] -/\\fBcaptoinfo\\fR -/
+s/^\\fBclear\\f[RP] -/\\fBclear\\fR -/
+s/^\\fBcurs_add_wch\\f[RP] -/\\fBadd_wch\\fR -/
+s/^\\fBcurs_add_wchstr\\f[RP] -/\\fBadd_wchstr\\fR -/
+s/^\\fBcurs_addch\\f[RP] -/\\fBaddch\\fR -/
+s/^\\fBcurs_addchstr\\f[RP] -/\\fBaddchstr\\fR -/
+s/^\\fBcurs_addstr\\f[RP] -/\\fBaddstr\\fR -/
+s/^\\fBcurs_addwstr\\f[RP] -/\\fBaddwstr\\fR -/
+s/^\\fBcurs_attr\\f[RP] -/\\fBattr\\fR -/
+s/^\\fBcurs_beep\\f[RP] -/\\fBbeep\\fR -/
+s/^\\fBcurs_bkgd\\f[RP] -/\\fBbkgd\\fR -/
+s/^\\fBcurs_bkgrnd\\f[RP] -/\\fBbkgrnd\\fR -/
+s/^\\fBcurs_border\\f[RP] -/\\fBborder\\fR -/
+s/^\\fBcurs_border_set\\f[RP] -/\\fBborder_set\\fR -/
+s/^\\fBcurs_clear\\f[RP] -/\\fBclear\\fR -/
+s/^\\fBcurs_color\\f[RP] -/\\fBcolor\\fR -/
+s/^\\fBcurs_delch\\f[RP] -/\\fBdelch\\fR -/
+s/^\\fBcurs_deleteln\\f[RP] -/\\fBdeleteln\\fR -/
+s/^\\fBcurs_extend\\f[RP] -/\\fBextensions\\fR -/
+s/^\\fBcurs_get_wch\\f[RP] -/\\fBget_wch\\fR -/
+s/^\\fBcurs_get_wstr\\f[RP] -/\\fBget_wstr\\fR -/
+s/^\\fBcurs_getcchar\\f[RP] -/\\fBgetcchar\\fR -/
+s/^\\fBcurs_getch\\f[RP] -/\\fBgetch\\fR -/
+s/^\\fBcurs_getstr\\f[RP] -/\\fBgetstr\\fR -/
+s/^\\fBcurs_getyx\\f[RP] -/\\fBgetyx\\fR -/
+s/^\\fBcurs_in_wch\\f[RP] -/\\fBin_wch\\fR -/
+s/^\\fBcurs_in_wchstr\\f[RP] -/\\fBin_wchstr\\fR -/
+s/^\\fBcurs_inch\\f[RP] -/\\fBinch\\fR -/
+s/^\\fBcurs_inchstr\\f[RP] -/\\fBinchstr\\fR -/
+s/^\\fBcurs_initscr\\f[RP] -/\\fBinitscr\\fR -/
+s/^\\fBcurs_inopts\\f[RP] -/\\fBinopts\\fR -/
+s/^\\fBcurs_ins_wch\\f[RP] -/\\fBins_wch\\fR -/
+s/^\\fBcurs_ins_wstr\\f[RP] -/\\fBins_wstr\\fR -/
+s/^\\fBcurs_insch\\f[RP] -/\\fBinsch\\fR -/
+s/^\\fBcurs_insstr\\f[RP] -/\\fBinsstr\\fR -/
+s/^\\fBcurs_instr\\f[RP] -/\\fBinstr\\fR -/
+s/^\\fBcurs_inwstr\\f[RP] -/\\fBinwstr\\fR -/
+s/^\\fBcurs_kernel\\f[RP] -/\\fBkernel\\fR -/
+s/^\\fBcurs_legacy\\f[RP] -/\\fBlegacy\\fR -/
+s/^\\fBcurs_memleaks\\f[RP] -/\\fBmemleaks\\fR -/
+s/^\\fBcurs_mouse\\f[RP] -/\\fBmouse\\fR -/
+s/^\\fBcurs_move\\f[RP] -/\\fBmove\\fR -/
+s/^\\fBcurs_opaque\\f[RP] -/\\fBopaque\\fR -/
+s/^\\fBcurs_outopts\\f[RP] -/\\fBoutopts\\fR -/
+s/^\\fBcurs_overlay\\f[RP] -/\\fBoverlay\\fR -/
+s/^\\fBcurs_pad\\f[RP] -/\\fBpad\\fR -/
+s/^\\fBcurs_print\\f[RP] -/\\fBprint\\fR -/
+s/^\\fBcurs_printw\\f[RP] -/\\fBprintw\\fR -/
+s/^\\fBcurs_refresh\\f[RP] -/\\fBrefresh\\fR -/
+s/^\\fBcurs_scanw\\f[RP] -/\\fBscanw\\fR -/
+s/^\\fBcurs_scr_dump\\f[RP] -/\\fBscr_dump\\fR -/
+s/^\\fBcurs_scroll\\f[RP] -/\\fBscroll\\fR -/
+s/^\\fBcurs_slk\\f[RP] -/\\fBslk\\fR -/
+s/^\\fBcurs_termattrs\\f[RP] -/\\fBtermattrs\\fR -/
+s/^\\fBcurs_termcap\\f[RP] -/\\fBtermcap\\fR -/
+s/^\\fBcurs_terminfo\\f[RP] -/\\fBterminfo\\fR -/
+s/^\\fBcurs_threads\\f[RP] -/\\fBthreads\\fR -/
+s/^\\fBcurs_touch\\f[RP] -/\\fBtouch\\fR -/
+s/^\\fBcurs_trace\\f[RP] -/\\fBtrace\\fR -/
+s/^\\fBcurs_util\\f[RP] -/\\fButil\\fR -/
+s/^\\fBcurs_window\\f[RP] -/\\fBwindow\\fR -/
+s/^\\fBcurses\\f[RP] -/\\fBncurses\\fR -/
+s/^\\fBdefault_colors\\f[RP] -/\\fBdefault_colors\\fR -/
+s/^\\fBdefine_key\\f[RP] -/\\fBdefine_key\\fR -/
+s/^\\fBform\\f[RP] -/\\fBform\\fR -/
+s/^\\fBform_cursor\\f[RP] -/\\fBcursor\\fR -/
+s/^\\fBform_data\\f[RP] -/\\fBdata\\fR -/
+s/^\\fBform_driver\\f[RP] -/\\fBdriver\\fR -/
+s/^\\fBform_field\\f[RP] -/\\fBfield\\fR -/
+s/^\\fBform_field_attributes\\f[RP] -/\\fBfield_attributes\\fR -/
+s/^\\fBform_field_buffer\\f[RP] -/\\fBfield_buffer\\fR -/
+s/^\\fBform_field_info\\f[RP] -/\\fBfield_info\\fR -/
+s/^\\fBform_field_just\\f[RP] -/\\fBfield_just\\fR -/
+s/^\\fBform_field_new\\f[RP] -/\\fBfield_new\\fR -/
+s/^\\fBform_field_opts\\f[RP] -/\\fBfield_opts\\fR -/
+s/^\\fBform_field_userptr\\f[RP] -/\\fBfield_userptr\\fR -/
+s/^\\fBform_field_validation\\f[RP] -/\\fBfield_validation\\fR -/
+s/^\\fBform_fieldtype\\f[RP] -/\\fBfieldtype\\fR -/
+s/^\\fBform_hook\\f[RP] -/\\fBhook\\fR -/
+s/^\\fBform_new\\f[RP] -/\\fBnew\\fR -/
+s/^\\fBform_new_page\\f[RP] -/\\fBnew_page\\fR -/
+s/^\\fBform_opts\\f[RP] -/\\fBopts\\fR -/
+s/^\\fBform_page\\f[RP] -/\\fBpage\\fR -/
+s/^\\fBform_post\\f[RP] -/\\fBpost\\fR -/
+s/^\\fBform_requestname\\f[RP] -/\\fBrequestname\\fR -/
+s/^\\fBform_userptr\\f[RP] -/\\fBuserptr\\fR -/
+s/^\\fBform_win\\f[RP] -/\\fBwin\\fR -/
+s/^\\fBinfocmp\\f[RP] -/\\fBinfocmp\\fR -/
+s/^\\fBinfotocap\\f[RP] -/\\fBinfotocap\\fR -/
+s/^\\fBkey_defined\\f[RP] -/\\fBkey_defined\\fR -/
+s/^\\fBkeybound\\f[RP] -/\\fBkeybound\\fR -/
+s/^\\fBkeyok\\f[RP] -/\\fBkeyok\\fR -/
+s/^\\fBlegacy_coding\\f[RP] -/\\fBlegacy_coding\\fR -/
+s/^\\fBmenu\\f[RP] -/\\fBmenu\\fR -/
+s/^\\fBmenu_attributes\\f[RP] -/\\fBattributes\\fR -/
+s/^\\fBmenu_cursor\\f[RP] -/\\fBcursor\\fR -/
+s/^\\fBmenu_driver\\f[RP] -/\\fBdriver\\fR -/
+s/^\\fBmenu_format\\f[RP] -/\\fBformat\\fR -/
+s/^\\fBmenu_hook\\f[RP] -/\\fBhook\\fR -/
+s/^\\fBmenu_items\\f[RP] -/\\fBitems\\fR -/
+s/^\\fBmenu_mark\\f[RP] -/\\fBmark\\fR -/
+s/^\\fBmenu_new\\f[RP] -/\\fBnew\\fR -/
+s/^\\fBmenu_opts\\f[RP] -/\\fBopts\\fR -/
+s/^\\fBmenu_pattern\\f[RP] -/\\fBpattern\\fR -/
+s/^\\fBmenu_post\\f[RP] -/\\fBpost\\fR -/
+s/^\\fBmenu_requestname\\f[RP] -/\\fBrequestname\\fR -/
+s/^\\fBmenu_spacing\\f[RP] -/\\fBspacing\\fR -/
+s/^\\fBmenu_userptr\\f[RP] -/\\fBuserptr\\fR -/
+s/^\\fBmenu_win\\f[RP] -/\\fBwin\\fR -/
+s/^\\fBmitem_current\\f[RP] -/\\fBmenu_current\\fR -/
+s/^\\fBmitem_name\\f[RP] -/\\fBmenu_name\\fR -/
+s/^\\fBmitem_new\\f[RP] -/\\fBmenu_new\\fR -/
+s/^\\fBmitem_opts\\f[RP] -/\\fBmenu_opts\\fR -/
+s/^\\fBmitem_userptr\\f[RP] -/\\fBmenu_userptr\\fR -/
+s/^\\fBmitem_value\\f[RP] -/\\fBmenu_value\\fR -/
+s/^\\fBmitem_visible\\f[RP] -/\\fBmenu_visible\\fR -/
+s/^\\fBncurses\\f[RP] -/\\fBncurses\\fR -/
+s/^\\fBpanel\\f[RP] -/\\fBpanel\\fR -/
+s/^\\fBprintf\\f[RP] -/\\fBprintf\\fR -/
+s/^\\fBputc\\f[RP] -/\\fBputc\\fR -/
+s/^\\fBresizeterm\\f[RP] -/\\fBresizeterm\\fR -/
+s/^\\fBscanf\\f[RP] -/\\fBscanf\\fR -/
+s/^\\fBsystem\\f[RP] -/\\fBsystem\\fR -/
+s/^\\fBterm\\f[RP] -/\\fBterm\\fR -/
+s/^\\fBterm\\f[RP] -/\\fBterm\\fR -/
+s/^\\fBterminfo\\f[RP] -/\\fBterminfo\\fR -/
+s/^\\fBterminfo\\f[RP] -/\\fBterminfo\\fR -/
+s/^\\fBtic\\f[RP] -/\\fBtic\\fR -/
+s/^\\fBtoe\\f[RP] -/\\fBtoe\\fR -/
+s/^\\fBtput\\f[RP] -/\\fBtput\\fR -/
+s/^\\fBtset\\f[RP] -/\\fBtset\\fR -/
+s/^\\fBvprintf\\f[RP] -/\\fBvprintf\\fR -/
+s/^\\fBwresize\\f[RP] -/\\fBwresize\\fR -/
+s/^\\fBtack\\f[RP] -/\\fBtack\\fR -/
+s/^\\fBgetty\\f[RP] -/\\fBgetty\\fR -/
+s/^\\fBscanf\\f[RP] -/\\fBscanf\\fR -/
+s/^\\fBttys\\f[RP] -/\\fBttys\\fR -/
+s/^\\fBtermio\\f[RP] -/\\fBtermios\\fR -/
+s/^\\fBsystem\\f[RP] -/\\fBsystem\\fR -/
+s/^\\fBregcomp\\f[RP] -/\\fBregcomp\\fR -/
+s/^\\fBregexec\\f[RP] -/\\fBregexec\\fR -/
View
768 form/Makefile
@@ -0,0 +1,768 @@
+# $Id: Makefile.in,v 1.47 2007/04/28 14:56:11 tom Exp $
+##############################################################################
+# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. #
+# #
+# Permission is hereby granted, free of charge, to any person obtaining a #
+# copy of this software and associated documentation files (the "Software"), #
+# to deal in the Software without restriction, including without limitation #
+# the rights to use, copy, modify, merge, publish, distribute, distribute #
+# with modifications, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to the #
+# following conditions: #
+# #
+# The above copyright notice and this permission notice shall be included in #
+# all copies or substantial portions of the Software. #
+# #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
+# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
+# DEALINGS IN THE SOFTWARE. #
+# #
+# Except as contained in this notice, the name(s) of the above copyright #
+# holders shall not be used in advertising or otherwise to promote the sale, #
+# use or other dealings in this Software without prior written #
+# authorization. #
+##############################################################################
+#
+# Author: Thomas E. Dickey 1996-on
+#
+# Makefile for form source code.
+#
+# This makes the following:
+# libraries (normal/debug/profile/shared)
+#
+# The variable 'srcdir' refers to the source-distribution, and can be set with
+# the configure script by "--srcdir=DIR".
+#
+# The rules are organized to produce the libraries for the configured models,
+
+# turn off _all_ suffix rules; we'll generate our own
+.SUFFIXES:
+
+SHELL = /bin/sh
+THIS = Makefile
+
+x =
+o = .o
+
+MODEL = normal
+DESTDIR =
+srcdir = .
+prefix = /usr/local
+exec_prefix = ${prefix}
+bindir = ${exec_prefix}/bin
+libdir = ${exec_prefix}/lib
+includedir = ${prefix}/include/ncurses
+
+LIBTOOL =
+LIBTOOL_CLEAN =
+LIBTOOL_COMPILE =
+LIBTOOL_LINK = ${CC}
+LIBTOOL_INSTALL =
+LIBTOOL_UNINSTALL =
+
+INSTALL = /usr/bin/install -c
+INSTALL_LIB = /usr/bin/install -c -m 644
+INSTALL_PROG = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+
+AR = arm-eabi-ar
+AR_OPTS = rv
+AWK = mawk
+LD = arm-eabi-ld
+LN_S = ln -s
+
+CC = agcc.pl
+CPP = agcc.pl -E
+CFLAGS = -O2 --param max-inline-insns-single=1200
+
+CPPFLAGS = -I../ncurses -DHAVE_CONFIG_H -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=199506L -DNDEBUG -I${includedir}
+
+CCFLAGS = $(CPPFLAGS) $(CFLAGS)
+
+CFLAGS_LIBTOOL = $(CCFLAGS)
+CFLAGS_NORMAL = $(CCFLAGS)
+CFLAGS_DEBUG = $(CCFLAGS) -g -DTRACE
+CFLAGS_PROFILE = $(CCFLAGS) -pg
+CFLAGS_SHARED = $(CCFLAGS) unknown
+
+CFLAGS_DEFAULT = $(CFLAGS_NORMAL)
+
+LINK = $(LIBTOOL_LINK)
+LDFLAGS =
+
+SHLIB_DIRS = -L../lib
+SHLIB_LIST = $(SHLIB_DIRS) -lncurses
+
+MK_SHARED_LIB = echo unknown
+
+NCURSES_MAJOR = 5
+NCURSES_MINOR = 7
+REL_VERSION = 5.7
+ABI_VERSION = 5
+
+RANLIB = arm-eabi-ranlib
+
+LIBRARIES = ../lib/libform.a ../lib/libform_g.a
+
+LINT =
+LINT_OPTS =
+LINT_LIBS = -lform -lncurses
+
+AUTO_SRC = \
+ ../include/form.h
+
+################################################################################
+all \
+libs \
+install :: $(AUTO_SRC) $(LIBRARIES)
+
+sources : $(AUTO_SRC)
+
+$(DESTDIR)$(bindir) \
+$(DESTDIR)$(libdir) :
+ sh $(srcdir)/../mkdirs.sh $@
+
+# make copies to simplify include-paths while still keeping form's include
+# file in this directory.
+../include/form.h : $(srcdir)/form.h
+ -rm -f $@
+ cp $(srcdir)/form.h $@
+
+FORM_PRIV_H = \
+ $(srcdir)/form.priv.h \
+ $(srcdir)/form.h \
+ ../include/mf_common.h \
+ ../include/curses.h \
+ ../include/eti.h
+
+tags:
+ ctags *.[ch]
+
+TAGS:
+ etags *.[ch]
+
+mostlyclean ::
+ -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
+
+clean :: mostlyclean
+ -rm -f $(AUTO_SRC)
+
+distclean :: clean
+ -rm -f Makefile
+
+realclean :: distclean
+
+../include/mf_common.h \
+../include/eti.h :
+ cd ../menu && $(MAKE) $@
+
+###############################################################################
+# The remainder of this file is automatically generated during configuration
+###############################################################################
+
+# generated by mk-0th.awk
+# libname: form
+# subsets: ticlib+termlib+ext_tinfo+base+ext_funcs
+
+.SUFFIXES: .c .cc .h .i .ii
+.c.i :
+ $(CPP) $(CPPFLAGS) $< >$@
+.cc.ii :
+ $(CPP) $(CPPFLAGS) $< >$@
+.h.i :
+ $(CPP) $(CPPFLAGS) $< >$@
+
+C_SRC = \
+ $(srcdir)/f_trace.c \
+ $(srcdir)/fld_arg.c \
+ $(srcdir)/fld_attr.c \
+ $(srcdir)/fld_current.c \
+ $(srcdir)/fld_def.c \
+ $(srcdir)/fld_dup.c \
+ $(srcdir)/fld_ftchoice.c \
+ $(srcdir)/fld_ftlink.c \
+ $(srcdir)/fld_info.c \
+ $(srcdir)/fld_just.c \
+ $(srcdir)/fld_link.c \
+ $(srcdir)/fld_max.c \
+ $(srcdir)/fld_move.c \
+ $(srcdir)/fld_newftyp.c \
+ $(srcdir)/fld_opts.c \
+ $(srcdir)/fld_pad.c \
+ $(srcdir)/fld_page.c \
+ $(srcdir)/fld_stat.c \
+ $(srcdir)/fld_type.c \
+ $(srcdir)/fld_user.c \
+ $(srcdir)/frm_cursor.c \
+ $(srcdir)/frm_data.c \
+ $(srcdir)/frm_def.c \
+ $(srcdir)/frm_driver.c \
+ $(srcdir)/frm_hook.c \
+ $(srcdir)/frm_opts.c \
+ $(srcdir)/frm_page.c \
+ $(srcdir)/frm_post.c \
+ $(srcdir)/frm_req_name.c \
+ $(srcdir)/frm_scale.c \
+ $(srcdir)/frm_sub.c \
+ $(srcdir)/frm_user.c \
+ $(srcdir)/frm_win.c \
+ $(srcdir)/fty_alnum.c \
+ $(srcdir)/fty_alpha.c \
+ $(srcdir)/fty_enum.c \
+ $(srcdir)/fty_int.c \
+ $(srcdir)/fty_ipv4.c \
+ $(srcdir)/fty_num.c \
+ $(srcdir)/fty_regex.c
+
+# Producing llib-lform is time-consuming, so there's no direct-dependency for
+# it in the lintlib rule. We'll only remove in the cleanest setup.
+clean ::
+ rm -f llib-lform.*
+
+realclean ::
+ rm -f llib-lform
+
+llib-lform : $(C_SRC)
+ cproto -a -l -DNCURSES_ENABLE_STDBOOL_H=0 -DLINT $(CPPFLAGS) $(C_SRC) >$@
+
+lintlib :
+ sh $(srcdir)/../misc/makellib form $(CPPFLAGS)
+lint :
+ $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)
+
+# generated by mk-1st.awk (subset=ticlib+termlib+ext_tinfo+base+ext_funcs)
+# name: form
+# traces: DEBUG
+# MODEL: NORMAL
+# model: objects
+# prefix: lib
+# suffix: .a
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# ShlibVer: auto
+# ShlibVerInfix: no
+# TermlibRoot: ncurses
+# TermlibSuffix: .a
+# ReLink:
+# DoLinks: no
+# rmSoLocs: no
+# ldconfig: :
+# overwrite: no
+# depend: ../include/ncurses_cfg.h ./form.priv.h
+# host: arm-unknown-eabi
+
+NORMAL_OBJS = \
+ ../objects/fld_arg$o \
+ ../objects/fld_attr$o \
+ ../objects/fld_current$o \
+ ../objects/fld_def$o \
+ ../objects/fld_dup$o \
+ ../objects/fld_ftchoice$o \
+ ../objects/fld_ftlink$o \
+ ../objects/fld_info$o \
+ ../objects/fld_just$o \
+ ../objects/fld_link$o \
+ ../objects/fld_max$o \
+ ../objects/fld_move$o \
+ ../objects/fld_newftyp$o \
+ ../objects/fld_opts$o \
+ ../objects/fld_pad$o \
+ ../objects/fld_page$o \
+ ../objects/fld_stat$o \
+ ../objects/fld_type$o \
+ ../objects/fld_user$o \
+ ../objects/frm_cursor$o \
+ ../objects/frm_data$o \
+ ../objects/frm_def$o \
+ ../objects/frm_driver$o \
+ ../objects/frm_hook$o \
+ ../objects/frm_opts$o \
+ ../objects/frm_page$o \
+ ../objects/frm_post$o \
+ ../objects/frm_req_name$o \
+ ../objects/frm_scale$o \
+ ../objects/frm_sub$o \
+ ../objects/frm_user$o \
+ ../objects/frm_win$o \
+ ../objects/fty_alnum$o \
+ ../objects/fty_alpha$o \
+ ../objects/fty_enum$o \
+ ../objects/fty_int$o \
+ ../objects/fty_ipv4$o \
+ ../objects/fty_num$o \
+ ../objects/fty_regex$o
+
+$(NORMAL_OBJS) : ../include/ncurses_cfg.h ./form.priv.h
+
+../lib/libform.a : $(NORMAL_OBJS)
+ $(AR) $(AR_OPTS) $@ $?
+ $(RANLIB) $@
+
+install \
+install.libs \
+install.form :: $(DESTDIR)$(libdir) ../lib/libform.a
+ @echo installing ../lib/libform.a as $(DESTDIR)$(libdir)/libform.a
+ $(INSTALL_DATA) ../lib/libform.a $(DESTDIR)$(libdir)/libform.a
+ $(RANLIB) $(DESTDIR)$(libdir)/libform.a
+
+uninstall \
+uninstall.libs \
+uninstall.form ::
+ @echo uninstalling $(DESTDIR)$(libdir)/libform.a
+ -@rm -f $(DESTDIR)$(libdir)/libform.a
+
+clean ::
+ -rm -f ../lib/libform.a
+
+mostlyclean::
+ -rm -f $(NORMAL_OBJS)
+
+# generated by mk-2nd.awk
+# model: objects
+# MODEL: NORMAL
+# echo: yes
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# crenames: yes
+# cxxrenames: no
+# traces: DEBUG
+# srcdir: .
+
+../objects/fld_arg$o : $(srcdir)/fld_arg.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_arg.c -o ../objects/fld_arg$o
+
+../objects/fld_attr$o : $(srcdir)/fld_attr.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_attr.c -o ../objects/fld_attr$o
+
+../objects/fld_current$o : $(srcdir)/fld_current.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_current.c -o ../objects/fld_current$o
+
+../objects/fld_def$o : $(srcdir)/fld_def.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_def.c -o ../objects/fld_def$o
+
+../objects/fld_dup$o : $(srcdir)/fld_dup.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_dup.c -o ../objects/fld_dup$o
+
+../objects/fld_ftchoice$o : $(srcdir)/fld_ftchoice.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftchoice.c -o ../objects/fld_ftchoice$o
+
+../objects/fld_ftlink$o : $(srcdir)/fld_ftlink.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftlink.c -o ../objects/fld_ftlink$o
+
+../objects/fld_info$o : $(srcdir)/fld_info.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_info.c -o ../objects/fld_info$o
+
+../objects/fld_just$o : $(srcdir)/fld_just.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_just.c -o ../objects/fld_just$o
+
+../objects/fld_link$o : $(srcdir)/fld_link.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_link.c -o ../objects/fld_link$o
+
+../objects/fld_max$o : $(srcdir)/fld_max.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_max.c -o ../objects/fld_max$o
+
+../objects/fld_move$o : $(srcdir)/fld_move.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_move.c -o ../objects/fld_move$o
+
+../objects/fld_newftyp$o : $(srcdir)/fld_newftyp.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_newftyp.c -o ../objects/fld_newftyp$o
+
+../objects/fld_opts$o : $(srcdir)/fld_opts.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_opts.c -o ../objects/fld_opts$o
+
+../objects/fld_pad$o : $(srcdir)/fld_pad.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_pad.c -o ../objects/fld_pad$o
+
+../objects/fld_page$o : $(srcdir)/fld_page.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_page.c -o ../objects/fld_page$o
+
+../objects/fld_stat$o : $(srcdir)/fld_stat.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_stat.c -o ../objects/fld_stat$o
+
+../objects/fld_type$o : $(srcdir)/fld_type.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_type.c -o ../objects/fld_type$o
+
+../objects/fld_user$o : $(srcdir)/fld_user.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_user.c -o ../objects/fld_user$o
+
+../objects/frm_cursor$o : $(srcdir)/frm_cursor.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_cursor.c -o ../objects/frm_cursor$o
+
+../objects/frm_data$o : $(srcdir)/frm_data.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_data.c -o ../objects/frm_data$o
+
+../objects/frm_def$o : $(srcdir)/frm_def.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_def.c -o ../objects/frm_def$o
+
+../objects/frm_driver$o : $(srcdir)/frm_driver.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_driver.c -o ../objects/frm_driver$o
+
+../objects/frm_hook$o : $(srcdir)/frm_hook.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_hook.c -o ../objects/frm_hook$o
+
+../objects/frm_opts$o : $(srcdir)/frm_opts.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_opts.c -o ../objects/frm_opts$o
+
+../objects/frm_page$o : $(srcdir)/frm_page.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_page.c -o ../objects/frm_page$o
+
+../objects/frm_post$o : $(srcdir)/frm_post.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_post.c -o ../objects/frm_post$o
+
+../objects/frm_req_name$o : $(srcdir)/frm_req_name.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_req_name.c -o ../objects/frm_req_name$o
+
+../objects/frm_scale$o : $(srcdir)/frm_scale.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_scale.c -o ../objects/frm_scale$o
+
+../objects/frm_sub$o : $(srcdir)/frm_sub.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_sub.c -o ../objects/frm_sub$o
+
+../objects/frm_user$o : $(srcdir)/frm_user.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_user.c -o ../objects/frm_user$o
+
+../objects/frm_win$o : $(srcdir)/frm_win.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_win.c -o ../objects/frm_win$o
+
+../objects/fty_alnum$o : $(srcdir)/fty_alnum.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alnum.c -o ../objects/fty_alnum$o
+
+../objects/fty_alpha$o : $(srcdir)/fty_alpha.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alpha.c -o ../objects/fty_alpha$o
+
+../objects/fty_enum$o : $(srcdir)/fty_enum.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_enum.c -o ../objects/fty_enum$o
+
+../objects/fty_int$o : $(srcdir)/fty_int.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_int.c -o ../objects/fty_int$o
+
+../objects/fty_ipv4$o : $(srcdir)/fty_ipv4.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_ipv4.c -o ../objects/fty_ipv4$o
+
+../objects/fty_num$o : $(srcdir)/fty_num.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_num.c -o ../objects/fty_num$o
+
+../objects/fty_regex$o : $(srcdir)/fty_regex.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_regex.c -o ../objects/fty_regex$o
+
+
+# generated by mk-1st.awk (subset=ticlib+termlib+ext_tinfo+base+ext_funcs)
+# name: form
+# traces: DEBUG
+# MODEL: DEBUG
+# model: obj_g
+# prefix: lib
+# suffix: _g.a
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# ShlibVer: auto
+# ShlibVerInfix: no
+# TermlibRoot: ncurses
+# TermlibSuffix: .a
+# ReLink:
+# DoLinks: no
+# rmSoLocs: no
+# ldconfig: :
+# overwrite: no
+# depend: ../include/ncurses_cfg.h ./form.priv.h
+# host: arm-unknown-eabi
+
+DEBUG_OBJS = \
+ ../obj_g/f_trace$o \
+ ../obj_g/fld_arg$o \
+ ../obj_g/fld_attr$o \
+ ../obj_g/fld_current$o \
+ ../obj_g/fld_def$o \
+ ../obj_g/fld_dup$o \
+ ../obj_g/fld_ftchoice$o \
+ ../obj_g/fld_ftlink$o \
+ ../obj_g/fld_info$o \
+ ../obj_g/fld_just$o \
+ ../obj_g/fld_link$o \
+ ../obj_g/fld_max$o \
+ ../obj_g/fld_move$o \
+ ../obj_g/fld_newftyp$o \
+ ../obj_g/fld_opts$o \
+ ../obj_g/fld_pad$o \
+ ../obj_g/fld_page$o \
+ ../obj_g/fld_stat$o \
+ ../obj_g/fld_type$o \
+ ../obj_g/fld_user$o \
+ ../obj_g/frm_cursor$o \
+ ../obj_g/frm_data$o \
+ ../obj_g/frm_def$o \
+ ../obj_g/frm_driver$o \
+ ../obj_g/frm_hook$o \
+ ../obj_g/frm_opts$o \
+ ../obj_g/frm_page$o \
+ ../obj_g/frm_post$o \
+ ../obj_g/frm_req_name$o \
+ ../obj_g/frm_scale$o \
+ ../obj_g/frm_sub$o \
+ ../obj_g/frm_user$o \
+ ../obj_g/frm_win$o \
+ ../obj_g/fty_alnum$o \
+ ../obj_g/fty_alpha$o \
+ ../obj_g/fty_enum$o \
+ ../obj_g/fty_int$o \
+ ../obj_g/fty_ipv4$o \
+ ../obj_g/fty_num$o \
+ ../obj_g/fty_regex$o
+
+$(DEBUG_OBJS) : ../include/ncurses_cfg.h ./form.priv.h
+
+../lib/libform_g.a : $(DEBUG_OBJS)
+ $(AR) $(AR_OPTS) $@ $?
+ $(RANLIB) $@
+
+install \
+install.libs \
+install.form :: $(DESTDIR)$(libdir) ../lib/libform_g.a
+ @echo installing ../lib/libform_g.a as $(DESTDIR)$(libdir)/libform_g.a
+ $(INSTALL_DATA) ../lib/libform_g.a $(DESTDIR)$(libdir)/libform_g.a
+ $(RANLIB) $(DESTDIR)$(libdir)/libform_g.a
+
+uninstall \
+uninstall.libs \
+uninstall.form ::
+ @echo uninstalling $(DESTDIR)$(libdir)/libform_g.a
+ -@rm -f $(DESTDIR)$(libdir)/libform_g.a
+
+clean ::
+ -rm -f ../lib/libform_g.a
+
+mostlyclean::
+ -rm -f $(DEBUG_OBJS)
+
+# generated by mk-2nd.awk
+# model: obj_g
+# MODEL: DEBUG
+# echo: yes
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# crenames: yes
+# cxxrenames: no
+# traces: DEBUG
+# srcdir: .
+
+../obj_g/f_trace$o : $(srcdir)/f_trace.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/f_trace.c -o ../obj_g/f_trace$o
+
+../obj_g/fld_arg$o : $(srcdir)/fld_arg.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_arg.c -o ../obj_g/fld_arg$o
+
+../obj_g/fld_attr$o : $(srcdir)/fld_attr.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_attr.c -o ../obj_g/fld_attr$o
+
+../obj_g/fld_current$o : $(srcdir)/fld_current.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_current.c -o ../obj_g/fld_current$o
+
+../obj_g/fld_def$o : $(srcdir)/fld_def.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_def.c -o ../obj_g/fld_def$o
+
+../obj_g/fld_dup$o : $(srcdir)/fld_dup.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_dup.c -o ../obj_g/fld_dup$o
+
+../obj_g/fld_ftchoice$o : $(srcdir)/fld_ftchoice.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_ftchoice.c -o ../obj_g/fld_ftchoice$o
+
+../obj_g/fld_ftlink$o : $(srcdir)/fld_ftlink.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_ftlink.c -o ../obj_g/fld_ftlink$o
+
+../obj_g/fld_info$o : $(srcdir)/fld_info.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_info.c -o ../obj_g/fld_info$o
+
+../obj_g/fld_just$o : $(srcdir)/fld_just.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_just.c -o ../obj_g/fld_just$o
+
+../obj_g/fld_link$o : $(srcdir)/fld_link.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_link.c -o ../obj_g/fld_link$o
+
+../obj_g/fld_max$o : $(srcdir)/fld_max.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_max.c -o ../obj_g/fld_max$o
+
+../obj_g/fld_move$o : $(srcdir)/fld_move.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_move.c -o ../obj_g/fld_move$o
+
+../obj_g/fld_newftyp$o : $(srcdir)/fld_newftyp.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_newftyp.c -o ../obj_g/fld_newftyp$o
+
+../obj_g/fld_opts$o : $(srcdir)/fld_opts.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_opts.c -o ../obj_g/fld_opts$o
+
+../obj_g/fld_pad$o : $(srcdir)/fld_pad.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_pad.c -o ../obj_g/fld_pad$o
+
+../obj_g/fld_page$o : $(srcdir)/fld_page.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_page.c -o ../obj_g/fld_page$o
+
+../obj_g/fld_stat$o : $(srcdir)/fld_stat.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_stat.c -o ../obj_g/fld_stat$o
+
+../obj_g/fld_type$o : $(srcdir)/fld_type.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_type.c -o ../obj_g/fld_type$o
+
+../obj_g/fld_user$o : $(srcdir)/fld_user.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fld_user.c -o ../obj_g/fld_user$o
+
+../obj_g/frm_cursor$o : $(srcdir)/frm_cursor.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_cursor.c -o ../obj_g/frm_cursor$o
+
+../obj_g/frm_data$o : $(srcdir)/frm_data.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_data.c -o ../obj_g/frm_data$o
+
+../obj_g/frm_def$o : $(srcdir)/frm_def.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_def.c -o ../obj_g/frm_def$o
+
+../obj_g/frm_driver$o : $(srcdir)/frm_driver.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_driver.c -o ../obj_g/frm_driver$o
+
+../obj_g/frm_hook$o : $(srcdir)/frm_hook.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_hook.c -o ../obj_g/frm_hook$o
+
+../obj_g/frm_opts$o : $(srcdir)/frm_opts.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_opts.c -o ../obj_g/frm_opts$o
+
+../obj_g/frm_page$o : $(srcdir)/frm_page.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_page.c -o ../obj_g/frm_page$o
+
+../obj_g/frm_post$o : $(srcdir)/frm_post.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_post.c -o ../obj_g/frm_post$o
+
+../obj_g/frm_req_name$o : $(srcdir)/frm_req_name.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_req_name.c -o ../obj_g/frm_req_name$o
+
+../obj_g/frm_scale$o : $(srcdir)/frm_scale.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_scale.c -o ../obj_g/frm_scale$o
+
+../obj_g/frm_sub$o : $(srcdir)/frm_sub.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_sub.c -o ../obj_g/frm_sub$o
+
+../obj_g/frm_user$o : $(srcdir)/frm_user.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_user.c -o ../obj_g/frm_user$o
+
+../obj_g/frm_win$o : $(srcdir)/frm_win.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/frm_win.c -o ../obj_g/frm_win$o
+
+../obj_g/fty_alnum$o : $(srcdir)/fty_alnum.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_alnum.c -o ../obj_g/fty_alnum$o
+
+../obj_g/fty_alpha$o : $(srcdir)/fty_alpha.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_alpha.c -o ../obj_g/fty_alpha$o
+
+../obj_g/fty_enum$o : $(srcdir)/fty_enum.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_enum.c -o ../obj_g/fty_enum$o
+
+../obj_g/fty_int$o : $(srcdir)/fty_int.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_int.c -o ../obj_g/fty_int$o
+
+../obj_g/fty_ipv4$o : $(srcdir)/fty_ipv4.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_ipv4.c -o ../obj_g/fty_ipv4$o
+
+../obj_g/fty_num$o : $(srcdir)/fty_num.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_num.c -o ../obj_g/fty_num$o
+
+../obj_g/fty_regex$o : $(srcdir)/fty_regex.c \
+ $(FORM_PRIV_H)
+ $(LIBTOOL_COMPILE) $(CC) $(CFLAGS_DEBUG) -c ../form/fty_regex.c -o ../obj_g/fty_regex$o
+
+
+# generated by mk-hdr.awk
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# compat: yes
+
+${DESTDIR}${includedir} :
+ sh ${srcdir}/../mkdirs.sh $@
+
+install \
+install.libs \
+install.includes :: ${AUTO_SRC} ${DESTDIR}${includedir} \
+ $(srcdir)/form.h
+ @ (cd ${DESTDIR}${includedir} && rm -f form.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} $(srcdir)/form.h
+
+uninstall \
+uninstall.libs \
+uninstall.includes ::
+ -@ (cd ${DESTDIR}${includedir} && rm -f form.h)
+depend : ${AUTO_SRC}
+ makedepend -- ${CPPFLAGS} -- ${C_SRC}
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
View
37 headers.sh
@@ -0,0 +1,37 @@
+#! /bin/sh
+# This shell script is generated by the 'configure' script. It is invoked in a
+# subdirectory of the build tree. It generates a sed-script in the parent
+# directory that is used to adjust includes for header files that reside in a
+# subdirectory of /usr/include, etc.
+PRG=""
+while test $# != 3
+do
+PRG="$PRG $1"; shift
+done
+DST=$1
+REF=$2
+SRC=$3
+TMPSRC=${TMPDIR-/tmp}/`basename $SRC`$$
+TMPSED=${TMPDIR-/tmp}/headers.sed$$
+echo installing $SRC in $DST
+case $DST in
+/*/include/*)
+ END=`basename $DST`
+ for i in `cat $REF/../*/headers |fgrep -v "#"`
+ do
+ NAME=`basename $i`
+ echo "s/<$NAME>/<$END\/$NAME>/" >> $TMPSED
+ done
+ ;;
+*)
+ echo "" >> $TMPSED
+ ;;
+esac
+rm -f $TMPSRC
+sed -f $TMPSED $SRC > $TMPSRC
+NAME=`basename $SRC`
+# Just in case someone gzip'd manpages, remove the conflicting copy.
+test -f $DST/$NAME.gz && rm -f $DST/$NAME.gz
+
+eval $PRG $TMPSRC $DST/$NAME
+rm -f $TMPSRC $TMPSED
View
320 include/MKterm.h.awk
@@ -0,0 +1,320 @@
+# vile:awkmode
+BEGIN {
+ print "/****************************************************************************"
+ print " * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *"
+ print " * *"
+ print " * Permission is hereby granted, free of charge, to any person obtaining a *"
+ print " * copy of this software and associated documentation files (the *"
+ print " * \"Software\"), to deal in the Software without restriction, including *"
+ print " * without limitation the rights to use, copy, modify, merge, publish, *"
+ print " * distribute, distribute with modifications, sublicense, and/or sell *"
+ print " * copies of the Software, and to permit persons to whom the Software is *"
+ print " * furnished to do so, subject to the following conditions: *"
+ print " * *"
+ print " * The above copyright notice and this permission notice shall be included *"
+ print " * in all copies or substantial portions of the Software. *"
+ print " * *"
+ print " * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS *"
+ print " * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *"
+ print " * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *"
+ print " * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *"
+ print " * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *"
+ print " * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *"
+ print " * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *"
+ print " * *"
+ print " * Except as contained in this notice, the name(s) of the above copyright *"
+ print " * holders shall not be used in advertising or otherwise to promote the *"
+ print " * sale, use or other dealings in this Software without prior written *"
+ print " * authorization. *"
+ print " ****************************************************************************/"
+ print ""
+ print "/****************************************************************************/"
+ print "/* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 */"
+ print "/* and: Eric S. Raymond <esr@snark.thyrsus.com> */"
+ print "/* and: Thomas E. Dickey 1995-on */"
+ print "/****************************************************************************/"
+ print ""
+ print "/* $Id: MKterm.h.awk.in,v 1.50 2008/05/24 23:13:59 tom Exp $ */"
+ print ""
+ print "/*"
+ print "** term.h -- Definition of struct term"
+ print "*/"
+ print ""
+ print "#ifndef NCURSES_TERM_H_incl"
+ print "#define NCURSES_TERM_H_incl 1"
+ print ""
+ print "#undef NCURSES_VERSION"
+ print "#define NCURSES_VERSION \"5.7\""
+ print ""
+ print "#include <ncurses_dll.h>"
+ print ""
+ print "#ifdef __cplusplus"
+ print "extern \"C\" {"
+ print "#endif"
+ print ""
+ print "/* Make this file self-contained by providing defaults for the HAVE_TERMIO[S]_H"
+ print " * definition (based on the system for which this was configured)."
+ print " */"
+ print ""
+ print "#undef NCURSES_CONST"
+ print "#define NCURSES_CONST /*nothing*/"
+ print ""
+ print "#undef NCURSES_SBOOL"
+ print "#define NCURSES_SBOOL char"
+ print ""
+ print "#undef NCURSES_XNAMES"
+ print "#define NCURSES_XNAMES 1"
+ print ""
+ print "/* We will use these symbols to hide differences between"
+ print " * termios/termio/sgttyb interfaces."
+ print " */"
+ print "#undef TTY"
+ print "#undef SET_TTY"
+ print "#undef GET_TTY"
+ print ""
+ print "/* Assume POSIX termio if we have the header and function */"
+ print "/* #if HAVE_TERMIOS_H && HAVE_TCGETATTR */"
+ print "#if 1 && 1"
+ print ""
+ print "#undef TERMIOS"
+ print "#define TERMIOS 1"
+ print ""
+ print "#include <termios.h>"
+ print "#define TTY struct termios"
+ print ""
+ print "#else /* !HAVE_TERMIOS_H */"
+ print ""
+ print "/* #if HAVE_TERMIO_H */"
+ print "#if 0"
+ print ""
+ print "#undef TERMIOS"
+ print "#define TERMIOS 1"
+ print ""
+ print "#include <termio.h>"
+ print "#define TTY struct termio"
+ print ""
+ print "/* Add definitions to make termio look like termios."
+ print " * But ifdef it, since there are some implementations"
+ print " * that try to do this for us in a fake <termio.h>."
+ print " */"
+ print "#ifndef TCSANOW"
+ print "#define TCSANOW TCSETA"
+ print "#endif"
+ print "#ifndef TCSADRAIN"
+ print "#define TCSADRAIN TCSETAW"
+ print "#endif"
+ print "#ifndef TCSAFLUSH"
+ print "#define TCSAFLUSH TCSETAF"
+ print "#endif"
+ print "#ifndef tcsetattr"
+ print "#define tcsetattr(fd, cmd, arg) ioctl(fd, cmd, arg)"
+ print "#endif"
+ print "#ifndef tcgetattr"
+ print "#define tcgetattr(fd, arg) ioctl(fd, TCGETA, arg)"
+ print "#endif"
+ print "#ifndef cfgetospeed"
+ print "#define cfgetospeed(t) ((t)->c_cflag & CBAUD)"
+ print "#endif"
+ print "#ifndef TCIFLUSH "
+ print "#define TCIFLUSH 0"
+ print "#endif"
+ print "#ifndef TCOFLUSH "
+ print "#define TCOFLUSH 1"
+ print "#endif"
+ print "#ifndef TCIOFLUSH "
+ print "#define TCIOFLUSH 2"
+ print "#endif"
+ print "#ifndef tcflush"
+ print "#define tcflush(fd, arg) ioctl(fd, TCFLSH, arg)"
+ print "#endif"
+ print ""
+ print "#else /* !HAVE_TERMIO_H */"
+ print ""
+ print "#undef TERMIOS"
+ print "#include <sgtty.h>"
+ print "#include <sys/ioctl.h>"
+ print "#define TTY struct sgttyb"
+ print ""
+ print "#endif /* HAVE_TERMIO_H */"
+ print ""
+ print "#endif /* HAVE_TERMIOS_H */"
+ print ""
+ print "#ifdef TERMIOS"
+ print "#define GET_TTY(fd, buf) tcgetattr(fd, buf)"
+ print "#define SET_TTY(fd, buf) tcsetattr(fd, TCSADRAIN, buf)"
+ print "#else"
+ print "#define GET_TTY(fd, buf) gtty(fd, buf)"
+ print "#define SET_TTY(fd, buf) stty(fd, buf)"
+ print "#endif"
+ print ""
+ print "#define NAMESIZE 256"
+ print ""
+ print "#define CUR cur_term->type."
+ print ""
+ }
+
+$2 == "%%-STOP-HERE-%%" {
+ print ""
+ printf "#define BOOLWRITE %d\n", BoolCount
+ printf "#define NUMWRITE %d\n", NumberCount
+ printf "#define STRWRITE %d\n", StringCount
+ print ""
+ print "/* older synonyms for some capabilities */"
+ print "#define beehive_glitch no_esc_ctlc"
+ print "#define teleray_glitch dest_tabs_magic_smso"
+ print "#define micro_char_size micro_col_size"
+ print ""
+ print "#ifdef __INTERNAL_CAPS_VISIBLE"
+ }
+
+/^#/ {next;}
+
+$1 == "acs_chars" {acsindex = StringCount}
+
+$3 == "bool" {
+ printf "#define %-30s CUR Booleans[%d]\n", $1, BoolCount++
+ }
+
+$3 == "num" {
+ printf "#define %-30s CUR Numbers[%d]\n", $1, NumberCount++
+ }
+
+$3 == "str" {
+ printf "#define %-30s CUR Strings[%d]\n", $1, StringCount++
+ }
+
+END {
+ print "#endif /* __INTERNAL_CAPS_VISIBLE */"
+ print ""
+ print ""
+ print "/*"
+ print " * Predefined terminfo array sizes"
+ print " */"
+ printf "#define BOOLCOUNT %d\n", BoolCount
+ printf "#define NUMCOUNT %d\n", NumberCount
+ printf "#define STRCOUNT %d\n", StringCount
+ print ""
+ print "/* used by code for comparing entries */"
+ print "#define acs_chars_index ", acsindex
+ print ""
+ print "typedef struct termtype { /* in-core form of terminfo data */"
+ print " char *term_names; /* str_table offset of term names */"
+ print " char *str_table; /* pointer to string table */"
+ print " NCURSES_SBOOL *Booleans; /* array of boolean values */"
+ print " short *Numbers; /* array of integer values */"
+ print " char **Strings; /* array of string offsets */"
+ print ""
+ print "#if NCURSES_XNAMES"
+ print " char *ext_str_table; /* pointer to extended string table */"
+ print " char **ext_Names; /* corresponding names */"
+ print ""
+ print " unsigned short num_Booleans;/* count total Booleans */"
+ print " unsigned short num_Numbers; /* count total Numbers */"
+ print " unsigned short num_Strings; /* count total Strings */"
+ print ""
+ print " unsigned short ext_Booleans;/* count extensions to Booleans */"
+ print " unsigned short ext_Numbers; /* count extensions to Numbers */"
+ print " unsigned short ext_Strings; /* count extensions to Strings */"
+ print "#endif /* NCURSES_XNAMES */"
+ print ""
+ print "} TERMTYPE;"
+ print ""
+ print "typedef struct term { /* describe an actual terminal */"
+ print " TERMTYPE type; /* terminal type description */"
+ print " short Filedes; /* file description being written to */"
+ print " TTY Ottyb, /* original state of the terminal */"
+ print " Nttyb; /* current state of the terminal */"
+ print " int _baudrate; /* used to compute padding */"
+ print " char * _termname; /* used for termname() */"
+ print "} TERMINAL;"
+ print ""
+ print "#if 0 || 0"
+ print "NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolfnames);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numnames);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numcodes);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, numfnames);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strnames);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strcodes);"
+ print "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames);"
+ print ""
+ print "#define cur_term NCURSES_PUBLIC_VAR(cur_term())"
+ print "#define boolnames NCURSES_PUBLIC_VAR(boolnames())"
+ print "#define boolcodes NCURSES_PUBLIC_VAR(boolcodes())"
+ print "#define boolfnames NCURSES_PUBLIC_VAR(boolfnames())"
+ print "#define numnames NCURSES_PUBLIC_VAR(numnames())"
+ print "#define numcodes NCURSES_PUBLIC_VAR(numcodes())"
+ print "#define numfnames NCURSES_PUBLIC_VAR(numfnames())"
+ print "#define strnames NCURSES_PUBLIC_VAR(strnames())"
+ print "#define strcodes NCURSES_PUBLIC_VAR(strcodes())"
+ print "#define strfnames NCURSES_PUBLIC_VAR(strfnames())"
+ print ""
+ print "#else"
+ print ""
+ print "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
+ print ""
+ 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 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(int) _nc_read_termtype (TERMTYPE *, char *, int);"
+ 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(const TERMTYPE *) _nc_fallback (const char *);"
+ print ""
+ print "/* entry points */"
+ print "extern NCURSES_EXPORT(TERMINAL *) set_curterm (TERMINAL *);"
+ print "extern NCURSES_EXPORT(int) del_curterm (TERMINAL *);"
+ print ""
+ print "/* miscellaneous entry points */"
+ 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 NCURSES_EXPORT(char *) tigetstr (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 ""
+ print "#if 1 /* NCURSES_TPARM_VARARGS */"
+ print "extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); /* special */"
+ print "#else"
+ print "extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, long,long,long,long,long,long,long,long,long); /* special */"
+ print "extern NCURSES_EXPORT(char *) tparm_varargs (NCURSES_CONST char *, ...); /* special */"
+ print "#endif"
+ print ""
+ print "#endif /* __NCURSES_H */"
+ print ""
+ print "/* termcap database emulation (XPG4 uses const only for 2nd param of tgetent) */"
+ 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 /* NCURSES_TERM_H_incl */"
+ }
View
167 include/Makefile
@@ -0,0 +1,167 @@
+# $Id: Makefile.in,v 1.35 2001/12/08 18:50:06 tom Exp $
+##############################################################################
+# 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"), #
+# to deal in the Software without restriction, including without limitation #
+# the rights to use, copy, modify, merge, publish, distribute, distribute #
+# with modifications, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to the #
+# following conditions: #
+# #
+# The above copyright notice and this permission notice shall be included in #
+# all copies or substantial portions of the Software. #
+# #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
+# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
+# DEALINGS IN THE SOFTWARE. #
+# #
+# Except as contained in this notice, the name(s) of the above copyright #
+# holders shall not be used in advertising or otherwise to promote the sale, #
+# use or other dealings in this Software without prior written #
+# authorization. #
+##############################################################################
+#
+# Author: Thomas E. Dickey 1996-2001
+#
+# Makefile for ncurses source code.
+#
+# This makes/installs ncurses include-files
+#
+# The variable 'srcdir' refers to the source-distribution, and can be set with
+# the configure script by "--srcdir=DIR".
+
+# turn off _all_ suffix rules; we'll generate our own
+.SUFFIXES:
+
+SHELL = /bin/sh
+THIS = Makefile
+
+DESTDIR =
+srcdir = .
+prefix = /usr/local
+exec_prefix = ${prefix}
+includedir = ${prefix}/include/ncurses
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+
+AWK = mawk
+LN_S = ln -s
+
+VERSION = 5.7
+
+# The "Caps" file specifies the terminfo database format, as well as the list
+# of function keys.
+TERMINFO_CAPS = $(srcdir)/Caps
+
+# These files are generated by the configure script
+CONFIG_SRC = \
+ MKterm.h.awk \
+ curses.head \
+ termcap.h \
+ unctrl.h
+
+# These files are generated by this makefile
+AUTO_SRC = \
+ curses.h \
+ hashsize.h \
+ ncurses_def.h \
+ parametrized.h \
+ term.h
+
+################################################################################
+all \
+libs \
+depend \
+sources \
+install :: $(AUTO_SRC)
+
+curses.h : $(TERMINFO_CAPS) \
+ curses.head \
+ $(srcdir)/curses.tail \
+ $(srcdir)/MKkey_defs.sh
+ cat curses.head >$@
+ AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
+ sh -c 'if test "chtype" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
+ cat $(srcdir)/curses.tail >>$@
+
+term.h: $(TERMINFO_CAPS) MKterm.h.awk
+ $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
+ sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
+
+hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
+ sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
+
+ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
+ AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
+
+parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
+ AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
+
+tags:
+ ctags *.[ch]
+
+TAGS:
+ etags *.[ch]
+
+mostlyclean ::
+ -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
+
+clean :: mostlyclean
+ -rm -f $(AUTO_SRC)
+
+distclean :: clean
+ -rm -f Makefile $(CONFIG_SRC)
+
+realclean :: distclean
+
+###############################################################################
+# The remainder of this file is automatically generated during configuration
+###############################################################################
+
+# generated by mk-hdr.awk
+# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
+# compat: yes
+
+${DESTDIR}${includedir} :
+ sh ${srcdir}/../mkdirs.sh $@
+
+install \
+install.libs \
+install.includes :: ${AUTO_SRC} ${DESTDIR}${includedir} \
+ term.h \
+ curses.h \
+ unctrl.h \
+ termcap.h \
+ $(srcdir)/ncurses_dll.h \
+ $(srcdir)/tic.h \
+ $(srcdir)/term_entry.h \
+ $(srcdir)/nc_tparm.h
+ @ (cd ${DESTDIR}${includedir} && rm -f term.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} term.h
+ @ (cd ${DESTDIR}${includedir} && rm -f curses.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} curses.h
+ @ (cd ${DESTDIR}${includedir} && rm -f ncurses.h && ${LN_S} curses.h ncurses.h)
+ @ (cd ${DESTDIR}${includedir} && rm -f unctrl.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} unctrl.h
+ @ (cd ${DESTDIR}${includedir} && rm -f termcap.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} termcap.h
+ @ (cd ${DESTDIR}${includedir} && rm -f ncurses_dll.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} $(srcdir)/ncurses_dll.h
+ @ (cd ${DESTDIR}${includedir} && rm -f tic.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} $(srcdir)/tic.h
+ @ (cd ${DESTDIR}${includedir} && rm -f term_entry.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} $(srcdir)/term_entry.h
+ @ (cd ${DESTDIR}${includedir} && rm -f nc_tparm.h) ; ../headers.sh ${INSTALL_DATA} ${DESTDIR}${includedir} ${srcdir} $(srcdir)/nc_tparm.h
+
+uninstall \
+uninstall.libs \
+uninstall.includes ::
+ -@ (cd ${DESTDIR}${includedir} && rm -f term.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f curses.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f ncurses.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f unctrl.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f termcap.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f ncurses_dll.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f tic.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f term_entry.h)
+ -@ (cd ${DESTDIR}${includedir} && rm -f nc_tparm.h)
View
1,505 include/curses.h
@@ -0,0 +1,1505 @@
+/****************************************************************************
+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining a *
+ * copy of this software and associated documentation files (the *
+ * "Software"), to deal in the Software without restriction, including *
+ * without limitation the rights to use, copy, modify, merge, publish, *
+ * distribute, distribute with modifications, sublicense, and/or sell *
+ * copies of the Software, and to permit persons to whom the Software is *
+ * furnished to do so, subject to the following conditions: *
+ * *
+ * The above copyright notice and this permission notice shall be included *
+ * in all copies or substantial portions of the Software. *
+ * *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
+ * *
+ * Except as contained in this notice, the name(s) of the above copyright *
+ * holders shall not be used in advertising or otherwise to promote the *
+ * sale, use or other dealings in this Software without prior written *
+ * authorization. *
+ ****************************************************************************/
+
+/****************************************************************************
+ * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
+ * and: Eric S. Raymond <esr@snark.thyrsus.com> *
+ * and: Thomas E. Dickey 1996-on *
+ ****************************************************************************/
+
+/* $Id: curses.h.in,v 1.187 2008/08/30 20:11:29 tom Exp $ */
+
+#ifndef __NCURSES_H
+#define __NCURSES_H
+
+#define CURSES 1
+#define CURSES_H 1
+
+/* This should be defined for the enhanced functionality to be visible.
+ * However, some of the wide-character (enhanced) functionality is missing.
+ * So we do not define it (yet).
+#define _XOPEN_CURSES 1
+ */
+
+/* These are defined only in curses.h, and are used for conditional compiles */
+#define NCURSES_VERSION_MAJOR 5
+#define NCURSES_VERSION_MINOR 7
+#define NCURSES_VERSION_PATCH 20081102
+
+/* This is defined in more than one ncurses header, for identification */
+#undef NCURSES_VERSION
+#define NCURSES_VERSION "5.7"
+
+/*
+ * Identify the mouse encoding version.
+ */
+#define NCURSES_MOUSE_VERSION 1
+
+/*
+ * Definitions to facilitate DLL's.
+ */
+#include <ncurses_dll.h>
+
+/*
+ * User-definable tweak to disable the include of <stdbool.h>.
+ */
+#ifndef NCURSES_ENABLE_STDBOOL_H
+#define NCURSES_ENABLE_STDBOOL_H 1
+#endif
+
+/*
+ * NCURSES_ATTR_T is used to quiet compiler warnings when building ncurses
+ * configured using --disable-macros.
+ */
+#ifdef NCURSES_NOMACROS
+#ifndef NCURSES_ATTR_T
+#define NCURSES_ATTR_T attr_t
+#endif
+#endif /* NCURSES_NOMACROS */
+
+#ifndef NCURSES_ATTR_T
+#define NCURSES_ATTR_T int
+#endif
+
+/*
+ * Expands to 'const' if ncurses is configured using --enable-const. Note that
+ * doing so makes it incompatible with other implementations of X/Open Curses.
+ */
+#undef NCURSES_CONST
+#define NCURSES_CONST /*nothing*/
+
+#undef NCURSES_INLINE
+#define NCURSES_INLINE inline
+
+/*
+ * The internal type used for color values
+ */
+#undef NCURSES_COLOR_T
+#define NCURSES_COLOR_T short
+
+/*
+ * Definition used to make WINDOW and similar structs opaque.
+ */
+#ifndef NCURSES_OPAQUE
+#define NCURSES_OPAQUE 0
+#endif
+
+/*
+ * The internal type used for window dimensions.
+ */
+#undef NCURSES_SIZE_T
+#define NCURSES_SIZE_T short
+
+/*
+ * Control whether tparm() supports varargs or fixed-parameter list.
+ */
+#undef NCURSES_TPARM_VARARGS
+#define NCURSES_TPARM_VARARGS 1
+
+/*
+ * NCURSES_CH_T is used in building the library, but not used otherwise in
+ * this header file, since that would make the normal/wide-character versions
+ * of the header incompatible.
+ */
+#undef NCURSES_CH_T
+#define NCURSES_CH_T chtype
+
+#if 0 && defined(_LP64)
+typedef unsigned chtype;
+typedef unsigned mmask_t;
+#else
+typedef unsigned long chtype;
+typedef unsigned long mmask_t;
+#endif
+
+#include <stdio.h>
+#include <unctrl.h>
+#include <stdarg.h> /* we need va_list */
+#ifdef _XOPEN_SOURCE_EXTENDED
+#include <stddef.h> /* we want wchar_t */
+#endif /* _XOPEN_SOURCE_EXTENDED */
+
+/* X/Open and SVr4 specify that curses implements 'bool'. However, C++ may also
+ * implement it. If so, we must use the C++ compiler's type to avoid conflict
+ * with other interfaces.
+ *
+ * A further complication is that <stdbool.h> may declare 'bool' to be a
+ * different type, such as an enum which is not necessarily compatible with
+ * C++. If we have <stdbool.h>, make 'bool' a macro, so users may #undef it.
+ * Otherwise, let it remain a typedef to avoid conflicts with other #define's.
+ * In either case, make a typedef for NCURSES_BOOL which can be used if needed
+ * from either C or C++.
+ */
+
+#undef TRUE
+#define TRUE 1
+
+#undef FALSE
+#define FALSE 0
+
+typedef unsigned NCURSES_BOOL;
+
+#if 0 /* __cplusplus, etc. */
+
+/* use the C++ compiler's bool type */
+#define NCURSES_BOOL bool
+
+#else /* c89, c99, etc. */
+
+#if NCURSES_ENABLE_STDBOOL_H
+#include <stdbool.h>
+/* use whatever the C compiler decides bool really is */
+#define NCURSES_BOOL bool
+#else
+/* there is no predefined bool - use our own */
+#undef bool
+#define bool NCURSES_BOOL
+#endif
+
+#endif /* !__cplusplus, etc. */
+
+#ifdef __cplusplus
+extern "C" {
+#define NCURSES_CAST(type,value) static_cast<type>(value)
+#else
+#define NCURSES_CAST(type,value) (type)(value)
+#endif
+
+/*
+ * X/Open attributes. In the ncurses implementation, they are identical to the
+ * A_ attributes.
+ */
+#define WA_ATTRIBUTES A_ATTRIBUTES
+#define WA_NORMAL A_NORMAL
+#define WA_STANDOUT A_STANDOUT
+#define WA_UNDERLINE A_UNDERLINE
+#define WA_REVERSE A_REVERSE
+#define WA_BLINK A_BLINK
+#define WA_DIM A_DIM
+#define WA_BOLD A_BOLD
+#define WA_ALTCHARSET A_ALTCHARSET
+#define WA_INVIS A_INVIS
+#define WA_PROTECT A_PROTECT
+#define WA_HORIZONTAL A_HORIZONTAL
+#define WA_LEFT A_LEFT
+#define WA_LOW A_LOW
+#define WA_RIGHT A_RIGHT
+#define WA_TOP A_TOP
+#define WA_VERTICAL A_VERTICAL
+
+/* colors */
+#define COLOR_BLACK 0
+#define COLOR_RED 1
+#define COLOR_GREEN 2
+#define COLOR_YELLOW 3
+#define COLOR_BLUE 4
+#define COLOR_MAGENTA 5
+#define COLOR_CYAN 6
+#define COLOR_WHITE 7
+
+/* line graphics */
+
+#if 0 || 0
+NCURSES_WRAPPED_VAR(chtype*, acs_map);
+#define acs_map (_nc_acs_map())
+#else
+extern NCURSES_EXPORT_VAR(chtype) acs_map[];
+#endif
+
+#define NCURSES_ACS(c) (acs_map[NCURSES_CAST(unsigned char,c)])
+
+/* VT100 symbols begin here */
+#define ACS_ULCORNER NCURSES_ACS('l') /* upper left corner */
+#define ACS_LLCORNER NCURSES_ACS('m') /* lower left corner */
+#define ACS_URCORNER NCURSES_ACS('k') /* upper right corner */
+#define ACS_LRCORNER NCURSES_ACS('j') /* lower right corner */
+#define ACS_LTEE NCURSES_ACS('t') /* tee pointing right */
+#define ACS_RTEE NCURSES_ACS('u') /* tee pointing left */
+#define ACS_BTEE NCURSES_ACS('v') /* tee pointing up */
+#define ACS_TTEE NCURSES_ACS('w') /* tee pointing down */
+#define ACS_HLINE NCURSES_ACS('q') /* horizontal line */
+#define ACS_VLINE NCURSES_ACS('x') /* vertical line */
+#define ACS_PLUS NCURSES_ACS('n') /* large plus or crossover */
+#define ACS_S1 NCURSES_ACS('o') /* scan line 1 */
+#define ACS_S9 NCURSES_ACS('s') /* scan line 9 */
+#define ACS_DIAMOND NCURSES_ACS('`') /* diamond */
+#define ACS_CKBOARD NCURSES_ACS('a') /* checker board (stipple) */
+#define ACS_DEGREE NCURSES_ACS('f') /* degree symbol */