+ modify ncurses-examples to quiet const-warnings when building with
PDCurses.
+ modify toe to not exit if unable to read a terminal description,
e.g., if there is a permission problem.
+ minor fix for progs/toe.c, using _nc_free_termtype2.
+ assign 0 to pointer in _nc_tgetent_leak() after freeing it. Also
avoid reusing pointer from previous successful call to tgetent
if the latest call is unsuccessful (patch by Michael Schroeder,
OpenSuSE #
1070450).
+ minor fix for test/tracemunch, initialize $awaiting variable.
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3025 2017/12/17 00:14:16 tom Exp $
+-- $Id: NEWS,v 1.3030 2017/12/23 21:44:36 tom Exp $
-------------------------------------------------------------------------------
This is a log of changes that ncurses has gone through since Zeyd started
Changes through 1.9.9e did not credit all contributions;
it is not possible to add this information.
+20171223
+ + modify ncurses-examples to quiet const-warnings when building with
+ PDCurses.
+ + modify toe to not exit if unable to read a terminal description,
+ e.g., if there is a permission problem.
+ + minor fix for progs/toe.c, using _nc_free_termtype2.
+ + assign 0 to pointer in _nc_tgetent_leak() after freeing it. Also
+ avoid reusing pointer from previous successful call to tgetent
+ if the latest call is unsuccessful (patch by Michael Schroeder,
+ OpenSuSE #1070450).
+ + minor fix for test/tracemunch, initialize $awaiting variable.
+
20171216
+ repair template in test/package/ncurses-examples.spec (cf: 20171111).
+ improve tic's warning about the number of parameters tparm might use
-5:0:9 6.0 20171216
+5:0:9 6.0 20171223
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
-# $Id: dist.mk,v 1.1196 2017/12/11 01:17:12 tom Exp $
+# $Id: dist.mk,v 1.1197 2017/12/17 20:03:11 tom Exp $
# Makefile for creating ncurses distributions.
#
# This only needs to be used directly as a makefile by developers, but
# These define the major/minor/patch versions of ncurses.
NCURSES_MAJOR = 6
NCURSES_MINOR = 0
-NCURSES_PATCH = 20171216
+NCURSES_PATCH = 20171223
# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
#define CUR SP_TERMTYPE
#endif
-MODULE_ID("$Id: lib_termcap.c,v 1.84 2017/04/11 01:15:11 tom Exp $")
+MODULE_ID("$Id: lib_termcap.c,v 1.86 2017/12/23 18:18:13 tom Exp $")
NCURSES_EXPORT_VAR(char *) UP = 0;
NCURSES_EXPORT_VAR(char *) BC = 0;
}
CacheInx = best;
}
- LAST_TRM = TerminalOf(SP_PARM);
- LAST_SEQ = ++CacheSeq;
+ if (rc == 1) {
+ LAST_TRM = TerminalOf(SP_PARM);
+ LAST_SEQ = ++CacheSeq;
+ } else {
+ LAST_TRM = 0;
+ }
PC = 0;
UP = 0;
int num;
for (CacheInx = 0; CacheInx < TGETENT_MAX; ++CacheInx) {
if (LAST_TRM == termp) {
- FreeIfNeeded(FIX_SGR0);
+ FreeAndNull(FIX_SGR0);
if (LAST_TRM != 0) {
LAST_TRM = 0;
}
-ncurses6 (6.0+20171216) unstable; urgency=low
+ncurses6 (6.0+20171223) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 10 Dec 2017 20:17:12 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 17 Dec 2017 15:03:11 -0500
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.0+20171216) unstable; urgency=low
+ncurses6 (6.0+20171223) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 10 Dec 2017 20:17:12 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 17 Dec 2017 15:03:11 -0500
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.0+20171216) unstable; urgency=low
+ncurses6 (6.0+20171223) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 10 Dec 2017 20:17:12 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 17 Dec 2017 15:03:11 -0500
ncurses6 (5.9-20120608) unstable; urgency=low
-; $Id: mingw-ncurses.nsi,v 1.244 2017/12/11 01:17:12 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.245 2017/12/17 20:03:11 tom Exp $\r
\r
; TODO add examples\r
; TODO bump ABI to 6\r
!define VERSION_MAJOR "6"\r
!define VERSION_MINOR "0"\r
!define VERSION_YYYY "2017"\r
-!define VERSION_MMDD "1216"\r
+!define VERSION_MMDD "1223"\r
!define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
\r
!define MY_ABI "5"\r
Summary: shared libraries for terminal handling
Name: mingw32-ncurses6
Version: 6.0
-Release: 20171216
+Release: 20171223
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
Summary: shared libraries for terminal handling
Name: ncurses6
Version: 6.0
-Release: 20171216
+Release: 20171223
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
#include <hashed_db.h>
#endif
-MODULE_ID("$Id: toe.c,v 1.75 2017/04/05 23:19:24 tom Exp $")
+MODULE_ID("$Id: toe.c,v 1.77 2017/12/23 19:23:40 tom Exp $")
#define isDotname(name) (!strcmp(name, ".") || !strcmp(name, ".."))
(void) fprintf(stderr,
"%s: couldn't open terminfo file %s.\n",
_nc_progname, name_2);
- free(cwd_buf);
free(name_2);
- closedir(entrydir);
- closedir(termdir);
- return (EXIT_FAILURE);
+ continue;
}
/* only visit things once, by primary name */
cn = _nc_first_name(lterm.term_names);
/* apply the selected hook function */
hook(i, eargc, cn, <erm);
- _nc_free_termtype(<erm);
+ _nc_free_termtype2(<erm);
}
}
code = _nc_db_next(capdbp, &key, &data);
* authorization. *
****************************************************************************/
/*
- * $Id: movewindow.c,v 1.45 2017/09/06 20:08:11 tom Exp $
+ * $Id: movewindow.c,v 1.46 2017/12/23 21:36:59 tom Exp $
*
* Demonstrate move functions for windows and derived windows from the curses
* library.
#undef derwin
#endif
-#ifdef NCURSES_VERSION
+#if defined(NCURSES_VERSION) || defined(PDCURSES)
#define CONST_FMT const
#else
#define CONST_FMT /* nothing */
/****************************************************************************
* Author: Thomas E. Dickey 1996-on *
****************************************************************************/
-/* $Id: test.priv.h,v 1.160 2017/10/12 01:00:59 tom Exp $ */
+/* $Id: test.priv.h,v 1.161 2017/12/23 21:40:21 tom Exp $ */
#ifndef __TEST_PRIV_H
#define __TEST_PRIV_H 1
* that XSI shows.
*/
#ifndef NCURSES_CONST
+#ifdef PDCURSES
+#define NCURSES_CONST const /* close enough */
+#else
#define NCURSES_CONST /* nothing */
#endif
+#endif
/* out-of-band values for representing absent capabilities */
#define ABSENT_BOOLEAN ((signed char)-1) /* 255 */
/*
* ncurses uses const in some places where X/Open does (or did) not allow.
*/
-#ifdef NCURSES_VERSION
+#if defined(NCURSES_VERSION) || defined(PDCURSES)
#define CONST_MENUS const
#else
#define CONST_MENUS /* nothing */
* wrs(5/28/93) -- modified to be consistent (perform identically) with either
* PDCurses or under Unix System V, R4
*
- * $Id: testcurs.c,v 1.52 2017/09/04 11:49:55 tom Exp $
+ * $Id: testcurs.c,v 1.53 2017/12/23 21:38:26 tom Exp $
*/
#include <test.priv.h>
#if defined(XCURSES)
-char *XCursesProgramName = "testcurs";
+const char *XCursesProgramName = "testcurs";
#endif
static int initTest(WINDOW **);
#!/usr/bin/env perl
-# $Id: tracemunch,v 1.16 2017/08/09 23:59:00 tom Exp $
+# $Id: tracemunch,v 1.17 2017/12/23 17:51:31 tom Exp $
##############################################################################
# Copyright (c) 1998-2005,2017 Free Software Foundation, Inc. #
# #
while (<STDIN>) {
my $addr;
my $n;
- my $awaiting;
+ my $awaiting = "";
CLASSIFY: {