head 1.9; access; symbols pkgsrc-2013Q2:1.9.0.38 pkgsrc-2013Q2-base:1.9 pkgsrc-2012Q4:1.9.0.36 pkgsrc-2012Q4-base:1.9 pkgsrc-2011Q4:1.9.0.34 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q2:1.9.0.32 pkgsrc-2011Q2-base:1.9 pkgsrc-2009Q4:1.9.0.30 pkgsrc-2009Q4-base:1.9 pkgsrc-2008Q4:1.9.0.28 pkgsrc-2008Q4-base:1.9 pkgsrc-2008Q3:1.9.0.26 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.24 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.22 pkgsrc-2008Q2-base:1.9 pkgsrc-2008Q1:1.9.0.20 pkgsrc-2008Q1-base:1.9 pkgsrc-2007Q4:1.9.0.18 pkgsrc-2007Q4-base:1.9 pkgsrc-2007Q3:1.9.0.16 pkgsrc-2007Q3-base:1.9 pkgsrc-2007Q2:1.9.0.14 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.12 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.10 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.9.0.8 pkgsrc-2006Q3-base:1.9 pkgsrc-2006Q2:1.9.0.6 pkgsrc-2006Q2-base:1.9 pkgsrc-2006Q1:1.9.0.4 pkgsrc-2006Q1-base:1.9 pkgsrc-2005Q4:1.9.0.2 pkgsrc-2005Q4-base:1.9 pkgsrc-2005Q3:1.8.0.16 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.8.0.14 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.12 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.10 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.8 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.8.0.6 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.4 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.2 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.7.0.6 netbsd-1-6-1-base:1.7 netbsd-1-6:1.7.0.8 netbsd-1-6-RELEASE-base:1.7 pkgviews:1.7.0.4 pkgviews-base:1.7 buildlink2:1.7.0.2 buildlink2-base:1.7 netbsd-1-5-PATCH003:1.7 netbsd-1-5-PATCH001:1.6 netbsd-1-5-RELEASE:1.5 netbsd-1-4-PATCH003:1.5 netbsd-1-4-PATCH002:1.4 comdex-fall-1999:1.3 netbsd-1-4-PATCH001:1.3 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2; locks; strict; comment @# @; 1.9 date 2005.09.30.22.02.56; author wiz; state dead; branches; next 1.8; 1.8 date 2003.09.15.15.02.55; author jschauma; state Exp; branches; next 1.7; 1.7 date 2001.06.19.15.53.11; author jlam; state Exp; branches; next 1.6; 1.6 date 2000.11.10.00.40.35; author wiz; state Exp; branches; next 1.5; 1.5 date 2000.07.28.20.30.11; author jlam; state Exp; branches; next 1.4; 1.4 date 2000.01.04.17.19.11; author bouyer; state Exp; branches; next 1.3; 1.3 date 99.07.06.08.04.15; author jlam; state Exp; branches; next 1.2; 1.2 date 98.08.07.11.10.14; author agc; state Exp; branches; next 1.1; 1.1 date 98.05.26.22.07.20; author tron; state Exp; branches; next ; desc @@ 1.9 log @Update to 1.0.20050911. Changes since 1997 (or 1995?) are too many to mention here, see http://dickey.his.com/dialog/CHANGES for details. Closes PR pkg/30856. @ text @$NetBSD: patch-ac,v 1.8 2003/09/15 15:02:55 jschauma Exp $ --- dialog.h.orig 1995-08-18 07:35:06.000000000 -0400 +++ dialog.h 2003-09-14 21:47:41.000000000 -0400 @@@@ -28,7 +28,7 @@@@ #ifdef ultrix #include #else -#include +#include #endif /* @@@@ -42,6 +42,7 @@@@ #define TAB 9 #define MAX_LEN 2048 #define BUF_SIZE (10*1024) +#define MIN_DIALOG_WIDTH 24 #define MIN(x,y) (x < y ? x : y) #define MAX(x,y) (x > y ? x : y) @@@@ -151,6 +152,9 @@@@ void draw_shadow (WINDOW * win, int y, int x, int height, int width); #endif +int strheight (const char *p); +int strwidth (const char *p); + int dialog_yesno (const char *title, const char *prompt, int height, int width); int dialog_msgbox (const char *title, const char *prompt, int height, int width, int pause); @@@@ -171,33 +175,11 @@@@ */ #ifndef HAVE_LIBGPM -extern __inline__ void -mouse_open (void) -{ -}; -extern __inline__ void -mouse_close (void) -{ -}; -extern __inline__ void -mouse_mkregion (int y, int x, int height, int width, - int code) -{ -}; -extern __inline__ void -mouse_mkbigregion (int y, int x, int height, int width, - int nitems, int th, int mode) -{ -}; -extern __inline__ void -mouse_setbase (int x, int y) -{ -}; -extern __inline__ int -mouse_wgetch (WINDOW * win) -{ -}; - +#define mouse_open() {} +#define mouse_close() {} +#define mouse_mkregion(y, x, height, width, code) {} +#define mouse_mkbigregion(y, x, height, width, nitems, th, mode) {} +#define mouse_setbase(x, y) {} #define mouse_wgetch(w) wgetch(w) #else @ 1.8 log @Get rid of the 'extern __inline__' nonsense, thus allowing this to compile with non-gcc compilers. Ok jlam@@. @ text @d1 1 a1 1 $NetBSD: $ @ 1.7 log @Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. By using ncurses/buildlink.mk, we can refer to the ncurses header as ncurses.h and the ncurses lib as libncurses. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- dialog.h.orig Fri Aug 18 07:35:06 1995 +++ dialog.h d32 3 a34 6 @@@@ -196,6 +200,7 @@@@ extern __inline__ int mouse_wgetch (WINDOW * win) { +return 0; }; d36 32 d69 2 @ 1.6 log @fix some compilation warnings @ text @d3 1 a3 1 --- dialog.h.orig Fri Aug 18 13:35:06 1995 d5 1 a5 1 @@@@ -28,8 +28,12 @@@@ d9 1 a9 1 +#if defined(HAVE_TRUE_NCURSES) a10 2 +#else #include a11 1 +#endif d14 1 a14 2 * Change these if you want @@@@ -42,6 +46,7 @@@@ d22 1 a22 1 @@@@ -151,6 +156,9 @@@@ d32 1 a32 1 @@@@ -196,6 +204,7 @@@@ @ 1.5 log @Make use of new USE_CURSES functionality. @ text @d3 2 a4 2 --- dialog.h.orig Fri Aug 18 07:35:06 1995 +++ dialog.h Fri Jul 28 15:30:22 2000 d26 1 a26 2 @@@@ -150,6 +155,9 @@@@ #ifdef HAVE_NCURSES d29 1 a29 1 + d32 1 a32 1 d35 9 @ 1.4 log @works on solaris @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 1999/07/06 08:04:15 jlam Exp $ d3 2 a4 2 --- dialog.h.orig Fri Jan 23 17:37:12 1998 +++ dialog.h Fri Jan 23 18:14:38 1998 d9 1 a9 1 +#if defined(HAVE_NCURSES) @ 1.3 log @ * Update ncurses dependency. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 1998/08/07 11:10:14 agc Exp $ d9 1 a9 1 +#if defined(__NetBSD__) @ 1.2 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ d9 1 a9 1 +#ifdef __NetBSD__ @ 1.1 log @New "dialog" package supplied by Johnny C. Lam in PR pkg/4993. @ text @d1 2 @