From 47e5c7d5fe98a02998fec2c2f2be265dbf60433c Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 29 Nov 2011 20:53:49 +0000 Subject: Update to 1.1-20111020: 2011/10/20 + fix --analyze warnings for clang versions 2.8, 2.9. + add configure check for lint program. + add check in dlg_getc() in case its window is freed as a side effect of removing callbacks. + fix logic in freeing subwindows (report by xDog Walker). + fix a regression in logic distinguishing between inputmenu and menu widgets (report by xDog Walker). + minor fixes to library manpage. 2011/10/18 + modify header-sh.in to work around limit on sed script length on HPUX. + add a special case of parameter parsing for "--trace" to the initialization done before calling init_dialog(), to allow users to capture the initial state of the parameter list before any options are processed and removed. This is only done if "--trace" is the first option, otherwise it is handled in the common options as before (report by xDog Walker). + modify samples/testdata-8bit, discarding $1 from the parameter list if it was used, so that the source'ing scripts can consistently use "$@" to insert parameters before the widget, e.g., as an alternative to using $DIALOGOPTS (report by xDog Walker). + modify treatment of function pointers in menubox.c, make dlg_renamed_menutext() and dlg_dummy_menutext() visible to library users (request by xDog Walker). + add dlg_count_real_columns(), use to modify centering for "--hline" text to account for "\Z"s (report by xDog Walker). + improve check in dlg_draw_arrows2() for conflict between the window title and up-arrow marker to take into account that the given window may not be the top-level window of the widget. + change width of page up/down mouse areas in fselect panes to use the full width of the panes rather than only the portion from the left margin to the up/down arrow. + add/use dlg_draw_box2() and dlg_draw_bottom_box2() to use the secondary borders. + modify rc-file read/write to accept/generate color values that refer to previously-processed items in the color table. This reduces the number of distinct colors that must be specified to set up a color scheme. + add color table entries for secondary borders, i.e., the ones that are normally drawn with the dialog's text-colors (Debian #641168). + modify fselect.c to scan the current directory if the input field happens to be empty (Debian #640905). + repeated the discussion of environment variables that can override the exit-status values in the manpage's return-codes section (Debian #642105). + add an example to the manpage showing how to override the form widget's keys used for field/button traversal (Debian #642108). + modify call to dlg_register_window() in formbox.c so that the editing bindings are attached to the form sub-window rather than the top-level dialog window. Also change the name by which the editing bindings are bound for editbox.c, fselect.c and inputbox.c, so that the editing and navigation bindings can be different. + correct logic in dlg_lookup_key() so that it matches the widget name before using a binding from .dialogrc, allowing the inner/outer windows of form and other editing widgets to have different bindings. + modify dlg_register_window() to call dlg_dump_window_keys() after its updates, via the --trace output, to supplement the manpage description of key bindings (Debian #642108). + add DLGK_FORM_PREV and DLGK_FORM_NEXT key-bindings to form.c, to allow binding a single key to traverse both form-fields and buttons (Debian #642108). + modify dlg_parse_rc() to check for error return from dlg_parse_bindkey(). + add function dlg_dump_window_keys(), to help with debugging widgets. + add CR, LF, TAB, FF and ESC to table of curses names to help make key bindings more readable. + update table of dialog key-names so that helpfile and trace are dumped properly. + correct dlg_dump_keys(), which was showing only the first item in the matched binding table. + save/restore window current position in dlg_update_mixedgauge(). + pass return-code from pause_for_ok() from dlg_progressbox() when pauseopt is set, rather than only DLG_OK. + call setlocale() in init_dialog() rather than relying on on-demand use within inputstr.c, since there are paths in textbox widget which do not exercise the latter (report by xDog Walker). + fix some places where checks for "\Z" were done without also checking dialog_vars.colors (report by Moray Henderson). + correct logic for DIALOGOPTS parsing so that the parse happens only once unless memory leak checking is enabled (report by xDog Walker). + remove an incorrect free() call in dlg_free_gauge() (report by xDog Walker). + modify dlg_trace_win() to log wide-characters (report by xDog Walker). + make traces shorter by skipping repeated ERR's, but showing the number skipped (report by xDog Walker). + improve description in manpage to distinguish program box and progress box from tailboxes (adapted from email by xDog Walker). + modify dlg_trace_win() so that it looks for the topmost window in a dialog. Because subwindows share space with the top window, tracing the latter shows the whole widget (report by xDog Walker). + expand tracing so that each window is traced before soliciting input, making the ^T feature to print a window on demand partly redundant (suggested by xDog Walker). + cosmetic change in dialog.h to avoid "*/*" strings from comments next to "*" (report by xDog Walker). + ensure result from dlg_align_columns() has trailing null on each string. Analysis was hindered by libc6's continuance of libc5's early-1990s misfeature of clearing the result from malloc, noting that libc6's documentation incorrectly claims that it does not do this (report by xDog Walker). --- misc/dialog/Makefile | 4 ++-- misc/dialog/distinfo | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'misc') diff --git a/misc/dialog/Makefile b/misc/dialog/Makefile index bb73623998a..eb39b3cbc18 100644 --- a/misc/dialog/Makefile +++ b/misc/dialog/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.56 2011/07/12 13:50:07 wiz Exp $ +# $NetBSD: Makefile,v 1.57 2011/11/29 20:53:49 wiz Exp $ -DISTNAME= dialog-1.1-20110707 +DISTNAME= dialog-1.1-20111020 PKGNAME= ${DISTNAME:C/-2/.2/} CATEGORIES= misc MASTER_SITES= ftp://invisible-island.net/dialog/ diff --git a/misc/dialog/distinfo b/misc/dialog/distinfo index 9e8522b7362..c0e67b80bdf 100644 --- a/misc/dialog/distinfo +++ b/misc/dialog/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.29 2011/07/12 13:50:07 wiz Exp $ +$NetBSD: distinfo,v 1.30 2011/11/29 20:53:49 wiz Exp $ -SHA1 (dialog-1.1-20110707.tgz) = 31e0e3c40cd51629cc802d7ee0b1a4e1ada90f00 -RMD160 (dialog-1.1-20110707.tgz) = 58ebc3510f8337ffec52f92c6d2b4df9ae564f29 -Size (dialog-1.1-20110707.tgz) = 437106 bytes +SHA1 (dialog-1.1-20111020.tgz) = ddabc0950275db4e9cef382a862ff3b20746e843 +RMD160 (dialog-1.1-20111020.tgz) = 6e85f8e43e7d5e5ae02787e7b8561e8411a6d946 +Size (dialog-1.1-20111020.tgz) = 439031 bytes -- cgit v1.2.3