]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.1 - patch 20180428
authorThomas E. Dickey <dickey@invisible-island.net>
Sat, 28 Apr 2018 22:44:02 +0000 (22:44 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sat, 28 Apr 2018 22:44:02 +0000 (22:44 +0000)
+ document new form-extension O_EDGE_INSERT_STAY (report by Leon
  Winter).
+ correct error-returns listed in manual pages for a few form functions
  (report by Leon Winter).
+ add a check in form-library for null-pointer dereference:
unfocus_current_field (form);
form_driver (form, REQ_VALIDATION);
  (patch by Leon Winter).

13 files changed:
NEWS
VERSION
dist.mk
form/frm_driver.c
man/form_driver.3x
man/form_field_opts.3x
man/form_new_page.3x
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec

diff --git a/NEWS b/NEWS
index 1811e57b7fdfd1d810df339db74abc18f0721837..4ce3258fe253e55d74f89da322d84cd959f9b7fa 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,7 +25,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3115 2018/04/14 21:22:06 tom Exp $
+-- $Id: NEWS,v 1.3119 2018/04/28 21:26:58 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,16 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20180428
+       + document new form-extension O_EDGE_INSERT_STAY (report by Leon
+         Winter).
+       + correct error-returns listed in manual pages for a few form functions
+         (report by Leon Winter).
+       + add a check in form-library for null-pointer dereference:
+               unfocus_current_field (form);
+               form_driver (form, REQ_VALIDATION);
+         (patch by Leon Winter).
+
 20180414
        + modify form library to optionally delay cursor movement on a field
          edge/boundary (patch by Leon Winter).
@@ -61,7 +71,7 @@ it is not possible to add this information.
        + use "const" in some prototypes rather than NCURSES_CONST where X/Open
          Curses was updated to do this, e.g., wscanw, newterm, the terminfo
          interface.  Also use "const" for consistency in the termcap
-         interface, which was withdrawn by X/Open Curses in Issue 5 (2007). 
+         interface, which was withdrawn by X/Open Curses in Issue 5 (2007).
          As of Issue 7, X/Open Curses still lacks "const" for certain return
          values, e.g., keyname().
 
diff --git a/VERSION b/VERSION
index 1aed567445313da0cee161d9d115c47603cb0be0..b5aa960b879163041f0c2aec017949684600ea86 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.1     20180414
+5:0:10 6.1     20180428
diff --git a/dist.mk b/dist.mk
index adae67edd6298d6026a1ce131a7e5fa3ff195766..05ba0a0b8f8efe9ab6c55f35c896671ad46307d1 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1219 2018/04/14 16:58:18 tom Exp $
+# $Id: dist.mk,v 1.1221 2018/04/28 14:18:55 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 1
-NCURSES_PATCH = 20180414
+NCURSES_PATCH = 20180428
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 3e1ccd64e9cd6cffcd196eb0babbd61b4a1d826b..b07ca7cdd5899f46a7185efeb356578bb579568d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "form.priv.h"
 
-MODULE_ID("$Id: frm_driver.c,v 1.125 2018/04/14 21:18:03 Leon.Winter Exp $")
+MODULE_ID("$Id: frm_driver.c,v 1.126 2018/04/28 19:03:36 Leon.Winter Exp $")
 
 /*----------------------------------------------------------------------------
   This is the core module of the form library. It contains the majority
@@ -4367,7 +4367,7 @@ form_driver(FORM *form, int c)
   if (!form)
     RETURN(E_BAD_ARGUMENT);
 
-  if (!(form->field))
+  if (!(form->field) || !(form->current))
     RETURN(E_NOT_CONNECTED);
 
   assert(form->page);
index a40be36ef78d9a8ac7c5250f21ecc0e408df7de2..ff33cff330b2d9c8b1f080a867743e43d29fd56b 100644 (file)
@@ -1,5 +1,5 @@
 .\"***************************************************************************
-.\" Copyright (c) 1998-2016,2017 Free Software Foundation, Inc.              *
+.\" Copyright (c) 1998-2017,2018 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            *
@@ -26,7 +26,7 @@
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: form_driver.3x,v 1.28 2017/11/18 23:47:37 tom Exp $
+.\" $Id: form_driver.3x,v 1.29 2018/04/28 19:58:58 tom Exp $
 .TH form_driver 3X ""
 .de bP
 .ie n  .IP \(bu 4
@@ -233,6 +233,9 @@ The form has not been posted.
 .B E_INVALID_FIELD
 Contents of field is invalid.
 .TP 5
+.B E_NOT_CONNECTED
+No fields are connected to the form.
+.TP 5
 .B E_REQUEST_DENIED
 The form driver could not process the request.
 .TP 5
index 374626b8c0c606f38bddee9bc3ba04f0956c09a3..58991d3b9af2093436cd8b01374230c43bab7b41 100644 (file)
@@ -1,6 +1,6 @@
 '\" t
 .\"***************************************************************************
-.\" Copyright (c) 1998-2014,2015 Free Software Foundation, Inc.              *
+.\" Copyright (c) 1998-2015,2018 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            *
@@ -27,7 +27,7 @@
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: form_field_opts.3x,v 1.20 2015/12/05 23:53:43 tom Exp $
+.\" $Id: form_field_opts.3x,v 1.21 2018/04/28 21:24:57 tom Exp $
 .TH form_field_opts 3X ""
 .SH NAME
 \fBset_field_opts\fP,
@@ -101,6 +101,15 @@ Permit dynamic fields to be justified, like static fields.
 .TP 5
 O_NO_LEFT_STRIP
 Preserve leading whitespace in the field buffer, which is normally discarded.
+.TP 5
+O_EDGE_INSERT_STAY
+When inserting into a field up to the boundary position,
+optionally delay the scrolling,
+so that the last inserted character remains visible,
+but advance the cursor to reflect the insertion.
+This allows the form library to display the
+inserted character in one-character fields
+as well as allowing the library to maintain consistent state.
 .SH RETURN VALUE
 Except for \fBfield_opts\fR, each routine returns one of the following:
 .TP 5
index e71138090c71a22a69b3f90a6b733b9e0f53a24c..6bbd8afea445603f251e13db6540a463115bbe53 100644 (file)
@@ -1,6 +1,6 @@
 '\" t
 .\"***************************************************************************
-.\" Copyright (c) 1998-2010,2015 Free Software Foundation, Inc.              *
+.\" Copyright (c) 1998-2015,2018 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            *
@@ -27,7 +27,7 @@
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: form_new_page.3x,v 1.11 2015/12/05 23:42:45 tom Exp $
+.\" $Id: form_new_page.3x,v 1.12 2018/04/28 19:58:50 tom Exp $
 .TH form_new_page 3X ""
 .SH NAME
 \fBset_new_page\fR,
@@ -48,14 +48,11 @@ a page beginning on its form.
 .SH RETURN VALUE
 The function \fBnew_page\fR returns \fBTRUE\fR or \fBFALSE\fR.
 .PP
-The function \fBset_new_page\fR return one of the following:
+The function \fBset_new_page\fR returns one of the following:
 .TP 5
 .B E_OK
 The routine succeeded.
 .TP 5
-.B E_SYSTEM_ERROR
-System error occurred (see \fBerrno\fR).
-.TP 5
 .B E_CONNECTED
 The given field is already connected to a form.
 .SH SEE ALSO
index 6aeabb2001db81f47fd58cb14c715819578916c3..7bfef6df86b51b587958e923abe7fa49b4ab66d5 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180414) unstable; urgency=low
+ncurses6 (6.1+20180428) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 14 Apr 2018 12:58:18 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Apr 2018 10:18:56 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 6aeabb2001db81f47fd58cb14c715819578916c3..7bfef6df86b51b587958e923abe7fa49b4ab66d5 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180414) unstable; urgency=low
+ncurses6 (6.1+20180428) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 14 Apr 2018 12:58:18 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Apr 2018 10:18:56 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 839b40fc23b8e25a39f83387abf14c1c88622c88..a31019e15e38ff5fc9a381aeb3e95698aa2d9ff2 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180414) unstable; urgency=low
+ncurses6 (6.1+20180428) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 14 Apr 2018 12:58:18 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Apr 2018 10:18:56 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index b049bc96fa11015c4b58a0ff6f04f7a21250ecad..e105da1d85d4c81ee93ba52707504bb1ec85ddae 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.266 2018/04/14 16:58:18 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.268 2018/04/28 14:18:55 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "1"\r
 !define VERSION_YYYY  "2018"\r
-!define VERSION_MMDD  "0414"\r
+!define VERSION_MMDD  "0428"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 9a5ba082fe83b6c38a9bcbb4b8f0e8b50106f2a1..48a645b38d3fa66a78dda44242f3b4241fad8f3c 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.1
-Release: 20180414
+Release: 20180428
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 3a75edcce4e946ca3fb841a8920d48c9d5d1fc92..d83ff220b0d4bb171de60c2f3b9324000df51a83 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.1
-Release: 20180414
+Release: 20180428
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz