+ improve ifdef's for TABSIZE variable, to help with AIX/HPUX ports.
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3308 2019/04/13 22:55:07 tom Exp $
+-- $Id: NEWS,v 1.3310 2019/04/20 20:23:58 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.
+20190420
+ + improve ifdef's for TABSIZE variable, to help with AIX/HPUX ports.
+
20190413
+ check for TABSIZE variable in test/configure script.
+ used test/test_arrays.c to improve Caps.aix1 and Caps.hpux11
-5:0:10 6.1 20190413
+5:0:10 6.1 20190420
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
-# $Id: dist.mk,v 1.1278 2019/04/13 15:23:45 tom Exp $
+# $Id: dist.mk,v 1.1279 2019/04/20 15:00:19 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 = 1
-NCURSES_PATCH = 20190413
+NCURSES_PATCH = 20190420
# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
-ncurses6 (6.1+20190413) unstable; urgency=low
+ncurses6 (6.1+20190420) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 13 Apr 2019 11:23:45 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 20 Apr 2019 11:00:19 -0400
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.1+20190413) unstable; urgency=low
+ncurses6 (6.1+20190420) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 13 Apr 2019 11:23:45 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 20 Apr 2019 11:00:19 -0400
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.1+20190413) unstable; urgency=low
+ncurses6 (6.1+20190420) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 13 Apr 2019 11:23:45 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 20 Apr 2019 11:00:19 -0400
ncurses6 (5.9-20120608) unstable; urgency=low
-; $Id: mingw-ncurses.nsi,v 1.324 2019/04/13 15:23:45 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.325 2019/04/20 15:00:19 tom Exp $\r
\r
; TODO add examples\r
; TODO bump ABI to 6\r
!define VERSION_MAJOR "6"\r
!define VERSION_MINOR "1"\r
!define VERSION_YYYY "2019"\r
-!define VERSION_MMDD "0413"\r
+!define VERSION_MMDD "0420"\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.1
-Release: 20190413
+Release: 20190420
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
Summary: shared libraries for terminal handling
Name: ncurses6
Version: 6.1
-Release: 20190413
+Release: 20190420
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
Summary: Curses library with POSIX thread support.
Name: ncursest6
Version: 6.1
-Release: 20190413
+Release: 20190420
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
#include "termsort.c" /* this C file is generated */
#include <parametrized.h> /* so is this */
-MODULE_ID("$Id: dump_entry.c,v 1.171 2019/01/21 15:11:51 tom Exp $")
+MODULE_ID("$Id: dump_entry.c,v 1.172 2019/04/20 18:54:48 tom Exp $")
#define DISCARD(string) string = ABSENT_STRING
#define PRINTF (void) printf
WRAP_CONCAT;
} else if (TcOutput()) {
char *srccap = _nc_tic_expand(capability, TRUE, numbers);
- int params = (((i < (int) SIZEOF(parametrized)) &&
- (i < STRCOUNT))
+ int params = ((i < (int) SIZEOF(parametrized))
? parametrized[i]
: ((*srccap == 'k')
? 0
#include <parametrized.h>
#include <transform.h>
-MODULE_ID("$Id: tic.c,v 1.272 2019/04/06 20:18:54 tom Exp $")
+MODULE_ID("$Id: tic.c,v 1.274 2019/04/20 20:28:19 tom Exp $")
#define STDIN_NAME "<stdin>"
}
expected = actual;
}
+#else
+ (void) extended;
#endif
if (params[0]) {
check_infotocap(TERMTYPE2 *tp, int i, const char *value)
{
const char *name = ExtStrname(tp, i, strnames);
- int params = (((i < (int) SIZEOF(parametrized)) &&
- (i < STRCOUNT))
+ int params = ((i < (int) SIZEOF(parametrized))
? parametrized[i]
: ((*value == 'k')
? 0
char *tc_value;
bool embedded;
+ assert(SIZEOF(parametrized) == STRCOUNT);
if ((ti_value = _nc_tic_expand(value, TRUE, to_char)) == ABSENT_STRING) {
_nc_warning("tic-expansion of %s failed", name);
} else if ((tc_value = _nc_infotocap(name, ti_value, params)) == ABSENT_STRING) {
/****************************************************************************
- * Copyright (c) 1998-2017,2018 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2018,2019 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 *
* Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995. Mouse support
* added September 20th 1995.
*
- * $Id: knight.c,v 1.44 2018/05/12 13:23:24 tom Exp $
+ * $Id: knight.c,v 1.45 2019/04/20 20:34:55 tom Exp $
*/
#include <test.priv.h>
static WINDOW *helpwin; /* the help window */
static WINDOW *msgwin; /* the message window */
+#if HAVE_USE_DEFAULT_COLORS
static bool d_option;
+#endif
static chtype minus = '-'; /* possible-move character */
static chtype oldch;
Author: Eric S. Raymond <esr@snark.thyrsus.com> 1993
Thomas E. Dickey (beginning revision 1.27 in 1996).
-$Id: ncurses.c,v 1.514 2019/01/21 20:15:28 tom Exp $
+$Id: ncurses.c,v 1.515 2019/04/20 20:34:11 tom Exp $
***************************************************************************/
{
int c;
int my_e_param = 1;
-#ifdef NCURSES_VERSION
+#if HAVE_USE_DEFAULT_COLORS
int default_fg = COLOR_WHITE;
int default_bg = COLOR_BLACK;
bool assumed_colors = FALSE;
while ((c = getopt(argc, argv, "a:dEe:fhmp:s:Tt:x")) != -1) {
switch (c) {
-#ifdef NCURSES_VERSION
+#if HAVE_USE_DEFAULT_COLORS
case 'a':
assumed_colors = TRUE;
switch (sscanf(optarg, "%d,%d", &default_fg, &default_bg)) {
* authorization. *
****************************************************************************/
/*
- * $Id: picsmap.c,v 1.128 2019/02/02 20:03:13 tom Exp $
+ * $Id: picsmap.c,v 1.129 2019/04/20 20:33:51 tom Exp $
*
* Author: Thomas E. Dickey
*
static void
init_display(const char *palette_path, int opt_d)
{
+ (void) opt_d;
if (isatty(fileno(stdout))) {
in_curses = TRUE;
initscr();
/****************************************************************************
* Author: Thomas E. Dickey 1996-on *
****************************************************************************/
-/* $Id: test.priv.h,v 1.181 2019/04/13 22:54:18 tom Exp $ */
+/* $Id: test.priv.h,v 1.182 2019/04/20 20:15:39 tom Exp $ */
#ifndef __TEST_PRIV_H
#define __TEST_PRIV_H 1
#define _nc_SLIMIT(n) /* nothing */
#endif
+/*
+ * X/Open Curses does not define the arrays of terminfo/termcap names as SVr4
+ * curses did, and some implementations provide them anyway, but undeclared.
+ */
#ifdef DECL_CURSES_DATA_BOOLNAMES
extern char *boolnames[], *boolcodes[], *boolfnames[];
extern char *numnames[], *numcodes[], *numfnames[];
extern char *strnames[], *strcodes[], *strfnames[];
#endif
+/*
+ * Again, an SVr4 curses feature latent in the libraries but not in headers.
+ */
+#ifndef DECL_CURSES_DATA_TABSIZE
+#define DECL_CURSES_DATA_TABSIZE 0
+#endif
+
+#if DECL_CURSES_DATA_TABSIZE
+extern int TABSIZE;
+#undef HAVE_CURSES_DATA_TABSIZE
+#define HAVE_CURSES_DATA_TABSIZE 1
+#endif
+
+#ifndef HAVE_CURSES_DATA_TABSIZE
+#define HAVE_CURSES_DATA_TABSIZE 0
+#endif
+
+/*
+ * X/Open Curses provides termname(), whose return value is analogous to the
+ * SVr4 curses variable ttytype[].
+ */
#ifndef HAVE_CURSES_DATA_TTYTYPE
#define HAVE_CURSES_DATA_TTYTYPE 0
#endif