]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.2 - patch 20200817
authorThomas E. Dickey <dickey@invisible-island.net>
Mon, 17 Aug 2020 22:29:28 +0000 (22:29 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Mon, 17 Aug 2020 22:29:28 +0000 (22:29 +0000)
+ reduce build-warnings by excluding ncurses-internals from deprecation
  warnings.
+ mark wgetch-events feature as deprecated.
+ add definition for $(LIBS) to ncurses/Makefile.in, to simplify builds
  using the string-hacks option.
+ prevent KEY_EVENT from appearing in curses.h unless the configure
  option --enable-wgetch-events is used (report by Werner Fink).

16 files changed:
MANIFEST
NEWS
VERSION
dist.mk
include/MKkey_defs.sh
include/Makefile.in
include/curses.events [new file with mode: 0644]
include/curses.h.in
ncurses/Makefile.in
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
package/ncursest.spec

index 69edf1570c9250eb2c32061b3d20a81eeb6ee8d2..6c8e4fb8d26c823705d283c5a5642a195993ef12 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
 ./include/MKterm.h.awk.in
 ./include/Makefile.in
 ./include/capdefaults.c
 ./include/MKterm.h.awk.in
 ./include/Makefile.in
 ./include/capdefaults.c
+./include/curses.events
 ./include/curses.h.in
 ./include/curses.tail
 ./include/curses.wide
 ./include/curses.h.in
 ./include/curses.tail
 ./include/curses.wide
diff --git a/NEWS b/NEWS
index 1bc806b38b55f66c5e089461d776583df5055b88..460e6c682f323c0dc141677987017291db9a9d18 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,7 +26,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3536 2020/08/16 18:03:39 tom Exp $
+-- $Id: NEWS,v 1.3540 2020/08/17 14:40:18 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -46,6 +46,15 @@ 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.
 
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20200817
+       + reduce build-warnings by excluding ncurses-internals from deprecation
+         warnings.
+       + mark wgetch-events feature as deprecated.
+       + add definition for $(LIBS) to ncurses/Makefile.in, to simplify builds
+         using the string-hacks option.
+       + prevent KEY_EVENT from appearing in curses.h unless the configure
+         option --enable-wgetch-events is used (report by Werner Fink).
+
 20200816
        + amend tic/infocmp check to allow for the respective tool's absence
          (report by Steve Wills, cf: 20200808).
 20200816
        + amend tic/infocmp check to allow for the respective tool's absence
          (report by Steve Wills, cf: 20200808).
diff --git a/VERSION b/VERSION
index cc02cee3dff706df85803473129f78eaa544a6b1..f81a9c79929d708899ea3d526d69a56dbbc659cf 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.2     20200816
+5:0:10 6.2     20200817
diff --git a/dist.mk b/dist.mk
index 380f5f08cc0d88fb0c1cf170cb2a485aff4e03f3..1aa63b9d7c115462b23ab8352f9b42b56489b0d0 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -26,7 +26,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1366 2020/08/16 15:31:41 tom Exp $
+# $Id: dist.mk,v 1.1368 2020/08/17 10:46:50 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -38,7 +38,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 2
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 2
-NCURSES_PATCH = 20200816
+NCURSES_PATCH = 20200817
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 0f54b5bccc05d098f3d5903faeddfdd883004a78..86d6891c369316d14781aef8cde087f95a8379ee 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
 #! /bin/sh
-# $Id: MKkey_defs.sh,v 1.20 2020/08/01 18:20:15 tom Exp $
+# $Id: MKkey_defs.sh,v 1.21 2020/08/17 10:45:33 tom Exp $
 ##############################################################################
 # Copyright 2019,2020 Thomas E. Dickey                                       #
 # Copyright 2001-2013,2017 Free Software Foundation, Inc.                    #
 ##############################################################################
 # Copyright 2019,2020 Thomas E. Dickey                                       #
 # Copyright 2001-2013,2017 Free Software Foundation, Inc.                    #
@@ -64,7 +64,6 @@ fi
 # add keys that we generate automatically:
 cat >>$data <<EOF
 key_resize     kr1     str     R1      KEY_RESIZE      +       NCURSES_EXT_FUNCS       Terminal resize event
 # add keys that we generate automatically:
 cat >>$data <<EOF
 key_resize     kr1     str     R1      KEY_RESIZE      +       NCURSES_EXT_FUNCS       Terminal resize event
-key_event      kv1     str     V1      KEY_EVENT       +       NCURSES_WGETCH_EVENTS   We were interrupted by an event
 EOF
 
 THIS=./`basename $0`
 EOF
 
 THIS=./`basename $0`
index d89dfa3d0d12dc1514081fa283214f5c67ef8d96..25cca4872754ec86674ad0812164adc1fe9e0c47 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.48 2020/02/19 23:54:22 tom Exp $
+# $Id: Makefile.in,v 1.49 2020/08/17 10:43:16 tom Exp $
 ##############################################################################
 # Copyright 2019,2020 Thomas E. Dickey                                       #
 # Copyright 1998-2013,2015 Free Software Foundation, Inc.                    #
 ##############################################################################
 # Copyright 2019,2020 Thomas E. Dickey                                       #
 # Copyright 1998-2013,2015 Free Software Foundation, Inc.                    #
@@ -104,6 +104,7 @@ curses.h :  $(CAPLIST) \
                $(srcdir)/MKkey_defs.sh
        cat curses.head >$@
        AWK=$(AWK) $(SHELL) $(srcdir)/MKkey_defs.sh $(CAPLIST) >>$@
                $(srcdir)/MKkey_defs.sh
        cat curses.head >$@
        AWK=$(AWK) $(SHELL) $(srcdir)/MKkey_defs.sh $(CAPLIST) >>$@
+       $(SHELL) -c 'if test "@NCURSES_EXT_FUNCS@" = "1" ; then cat $(srcdir)/curses.events >>$@ ; fi'
        $(SHELL) -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
        cat $(srcdir)/curses.tail >>$@
 
        $(SHELL) -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
        cat $(srcdir)/curses.tail >>$@
 
diff --git a/include/curses.events b/include/curses.events
new file mode 100644 (file)
index 0000000..25a2583
--- /dev/null
@@ -0,0 +1,55 @@
+/* $Id*/
+/*
+ * vile:cmode:
+ * This file is part of ncurses, designed to be appended after curses.h.in
+ * (see that file for the relevant copyright).
+ */
+
+/*
+ * This is an extension to support events...
+ */
+#ifdef NCURSES_WGETCH_EVENTS
+#if !defined(__BEOS__) || defined(__HAIKU__)
+   /* Fix _nc_timed_wait() on BEOS... */
+#  define NCURSES_EVENT_VERSION        1
+#endif /* !defined(__BEOS__) */
+
+/*
+ * Bits to set in _nc_event.data.flags
+ */
+#  define _NC_EVENT_TIMEOUT_MSEC       1
+#  define _NC_EVENT_FILE               2
+#  define _NC_EVENT_FILE_READABLE      2
+#  if 0                                        /* Not supported yet... */
+#    define _NC_EVENT_FILE_WRITABLE    4
+#    define _NC_EVENT_FILE_EXCEPTION   8
+#  endif
+
+typedef struct
+{
+    int type;
+    union
+    {
+       long timeout_msec;      /* _NC_EVENT_TIMEOUT_MSEC */
+       struct
+       {
+           unsigned int flags;
+           int fd;
+           unsigned int result;
+       } fev;                          /* _NC_EVENT_FILE */
+    } data;
+} _nc_event;
+
+typedef struct
+{
+    int count;
+    int result_flags;  /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
+    _nc_event *events[1];
+} _nc_eventlist;
+
+extern NCURSES_EXPORT(int) wgetch_events (WINDOW *, _nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
+extern NCURSES_EXPORT(int) wgetnstr_events (WINDOW *,char *,int,_nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
+
+#define KEY_EVENT      0633            /* We were interrupted by an event */
+
+#endif /* NCURSES_WGETCH_EVENTS */
index db07cb53d450e47f1d97d28eaf7c15750e9c30a8..c516b22c1fe4407e27327503c64ddc1f007facb9 100644 (file)
@@ -33,7 +33,7 @@
  *     and: Thomas E. Dickey                        1996-on                 *
  ****************************************************************************/
 
  *     and: Thomas E. Dickey                        1996-on                 *
  ****************************************************************************/
 
-/* $Id: curses.h.in,v 1.267 2020/05/30 19:23:28 tom Exp $ */
+/* $Id: curses.h.in,v 1.269 2020/08/17 14:14:12 tom Exp $ */
 
 #ifndef __NCURSES_H
 #define __NCURSES_H
 
 #ifndef __NCURSES_H
 #define __NCURSES_H
@@ -497,55 +497,6 @@ struct _win_st
 };
 #endif /* NCURSES_OPAQUE */
 
 };
 #endif /* NCURSES_OPAQUE */
 
-/*
- * This is an extension to support events...
- */
-#if @NCURSES_EXT_FUNCS@
-#ifdef NCURSES_WGETCH_EVENTS
-#if !defined(__BEOS__) || defined(__HAIKU__)
-   /* Fix _nc_timed_wait() on BEOS... */
-#  define NCURSES_EVENT_VERSION        1
-#endif /* !defined(__BEOS__) */
-
-/*
- * Bits to set in _nc_event.data.flags
- */
-#  define _NC_EVENT_TIMEOUT_MSEC       1
-#  define _NC_EVENT_FILE               2
-#  define _NC_EVENT_FILE_READABLE      2
-#  if 0                                        /* Not supported yet... */
-#    define _NC_EVENT_FILE_WRITABLE    4
-#    define _NC_EVENT_FILE_EXCEPTION   8
-#  endif
-
-typedef struct
-{
-    int type;
-    union
-    {
-       long timeout_msec;      /* _NC_EVENT_TIMEOUT_MSEC */
-       struct
-       {
-           unsigned int flags;
-           int fd;
-           unsigned int result;
-       } fev;                          /* _NC_EVENT_FILE */
-    } data;
-} _nc_event;
-
-typedef struct
-{
-    int count;
-    int result_flags;  /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
-    _nc_event *events[1];
-} _nc_eventlist;
-
-extern NCURSES_EXPORT(int) wgetch_events (WINDOW *, _nc_eventlist *);  /* experimental */
-extern NCURSES_EXPORT(int) wgetnstr_events (WINDOW *,char *,int,_nc_eventlist *);/* experimental */
-
-#endif /* NCURSES_WGETCH_EVENTS */
-#endif /* NCURSES_EXT_FUNCS */
-
 /*
  * GCC (and some other compilers) define '__attribute__'; we're using this
  * macro to alert the compiler to flag inconsistencies in printf/scanf-like
 /*
  * GCC (and some other compilers) define '__attribute__'; we're using this
  * macro to alert the compiler to flag inconsistencies in printf/scanf-like
@@ -590,7 +541,7 @@ extern NCURSES_EXPORT(int) wgetnstr_events (WINDOW *,char *,int,_nc_eventlist *)
 #endif
 
 #undef  GCC_DEPRECATED
 #endif
 
 #undef  GCC_DEPRECATED
-#if (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2))
+#if (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) && !defined(NCURSES_INTERNALS)
 #define GCC_DEPRECATED(msg) __attribute__((deprecated))
 #else
 #define GCC_DEPRECATED(msg) /* nothing */
 #define GCC_DEPRECATED(msg) __attribute__((deprecated))
 #else
 #define GCC_DEPRECATED(msg) /* nothing */
index 716bd5f0e2feda3a5629daede5b99f9ce5a63f30..6418dc63e47faf2689d5c2653c1e71ecd02a70f1 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.172 2020/08/16 15:35:00 tom Exp $
+# $Id: Makefile.in,v 1.173 2020/08/17 13:38:30 tom Exp $
 ##############################################################################
 # Copyright 2018-2019,2020 Thomas E. Dickey                                  #
 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
 ##############################################################################
 # Copyright 2018-2019,2020 Thomas E. Dickey                                  #
 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
@@ -100,6 +100,7 @@ ETAGS               = @ETAGS@
 CC             = @CC@
 CPP            = @CPP@
 CFLAGS         = @CFLAGS@
 CC             = @CC@
 CPP            = @CPP@
 CFLAGS         = @CFLAGS@
+LIBS           = @LIBS@
 
 INCDIR         = $(srcdir)/../include
 CPPFLAGS       = -DHAVE_CONFIG_H -DBUILDING_NCURSES -I../ncurses @CPPFLAGS@
 
 INCDIR         = $(srcdir)/../include
 CPPFLAGS       = -DHAVE_CONFIG_H -DBUILDING_NCURSES -I../ncurses @CPPFLAGS@
index b8d1e7ce5c2d92b3d7539daab8bcc70186da57c5..862597a92726bfbc09323dd2cbbfc651d1959fc4 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20200816) unstable; urgency=low
+ncurses6 (6.2+20200817) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 16 Aug 2020 11:31:41 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 17 Aug 2020 06:46:50 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index b8d1e7ce5c2d92b3d7539daab8bcc70186da57c5..862597a92726bfbc09323dd2cbbfc651d1959fc4 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20200816) unstable; urgency=low
+ncurses6 (6.2+20200817) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 16 Aug 2020 11:31:41 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 17 Aug 2020 06:46:50 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 0fc1284c10d114830579055cc3412d095db94643..06d12b854190b380006e57fb85c31d72cedd5f2f 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20200816) unstable; urgency=low
+ncurses6 (6.2+20200817) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 16 Aug 2020 11:31:41 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 17 Aug 2020 06:46:50 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 9d641b40f2d58eeb3464f4fc1ed1b2f35446ecf4..100a51e45ffe395ffbc28c5463b0a6e8aa94e477 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.410 2020/08/16 15:31:41 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.412 2020/08/17 10:46:50 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "2"\r
 !define VERSION_YYYY  "2020"\r
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "2"\r
 !define VERSION_YYYY  "2020"\r
-!define VERSION_MMDD  "0816"\r
+!define VERSION_MMDD  "0817"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 98bfc755b6409b4d7c36a4d22baf12ffb3b9ad92..fab95076b1b0332d9ff2f45d2b5a238efa73beca 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.2
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.2
-Release: 20200816
+Release: 20200817
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index be517b48acd710ffeb8c1348f7cad8f6b8e3897f..0463d91f0bc2f6f1a869993133feb6f6a2f30a60 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.2
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.2
-Release: 20200816
+Release: 20200817
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 73866cca8f1a7a4d7155e49d842c5bf71ef380f0..e5fb4d1a45a1d716c4b1f6311b274e13a4b40bd2 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.2
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.2
-Release: 20200816
+Release: 20200817
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz