From 20785baf68e141b65f6b8cc8c3e8dbccea85c9733e4003ede6cc8916a4132ca2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 Sep 2021 09:02:09 +0000 Subject: [PATCH 1/3] - Update to release 11.0 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=49 --- cdecl-10.4.tar.gz | 3 --- cdecl-11.0.tar.gz | 3 +++ cdecl.changes | 15 +++++++++++++++ cdecl.spec | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) delete mode 100644 cdecl-10.4.tar.gz create mode 100644 cdecl-11.0.tar.gz diff --git a/cdecl-10.4.tar.gz b/cdecl-10.4.tar.gz deleted file mode 100644 index fe93c4a..0000000 --- a/cdecl-10.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2c9523261c7aff6ca1b848bd519b3bfb6d5face9354fe76dc2f3b8338998801 -size 1137962 diff --git a/cdecl-11.0.tar.gz b/cdecl-11.0.tar.gz new file mode 100644 index 0000000..60e8ea1 --- /dev/null +++ b/cdecl-11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:328d35a21a7a36545eb019baa6f2f85c92ca6254b8a13c11181afbe2a789b5a7 +size 1179429 diff --git a/cdecl.changes b/cdecl.changes index ff361b6..52215b0 100644 --- a/cdecl.changes +++ b/cdecl.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Sep 28 09:00:26 UTC 2021 - Jan Engelhardt + +- Update to release 11.0 + * Correctly forbid functions returning struct in K&R C. + * Support digraphs before C95 and trigraphs in K&R C. + * Optional () for destructor. + * C++20's nested inline namespaces are now supported + * In-class default, delete, and noexcept constructors are now + accepted. + * A raw string literal like R"abc(X)ab)abc" was previously not + parsed correctly. + * An array of reference (or rvalue reference) is now correctly + flagged as an error. + ------------------------------------------------------------------- Sat Aug 28 13:35:12 UTC 2021 - Jan Engelhardt diff --git a/cdecl.spec b/cdecl.spec index 7b8b036..2cf12ab 100644 --- a/cdecl.spec +++ b/cdecl.spec @@ -17,7 +17,7 @@ Name: cdecl -Version: 10.4 +Version: 11.0 Release: 0 Summary: C/C++ function declaration translator License: GPL-3.0-or-later From 14005595b6148c578b09fe4b75aa450cf6edb4260186196b8f8ef76f292212e7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 1 Oct 2021 22:23:09 +0000 Subject: [PATCH 2/3] - Update to release 11.1 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=50 --- cdecl-11.0.tar.gz | 3 --- cdecl-11.1.tar.gz | 3 +++ cdecl.changes | 6 ++++++ cdecl.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 cdecl-11.0.tar.gz create mode 100644 cdecl-11.1.tar.gz diff --git a/cdecl-11.0.tar.gz b/cdecl-11.0.tar.gz deleted file mode 100644 index 60e8ea1..0000000 --- a/cdecl-11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:328d35a21a7a36545eb019baa6f2f85c92ca6254b8a13c11181afbe2a789b5a7 -size 1179429 diff --git a/cdecl-11.1.tar.gz b/cdecl-11.1.tar.gz new file mode 100644 index 0000000..b92b9c1 --- /dev/null +++ b/cdecl-11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b21ccf86860739399b0bc9cd52450ce572b18eb53b06446c2c545eb564927d0b +size 1181881 diff --git a/cdecl.changes b/cdecl.changes index 52215b0..3ebac83 100644 --- a/cdecl.changes +++ b/cdecl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 1 22:22:52 UTC 2021 - Jan Engelhardt + +- Update to release 11.1 + * Fixed multiple nested declarations crash. + ------------------------------------------------------------------- Tue Sep 28 09:00:26 UTC 2021 - Jan Engelhardt diff --git a/cdecl.spec b/cdecl.spec index 2cf12ab..f95296d 100644 --- a/cdecl.spec +++ b/cdecl.spec @@ -17,7 +17,7 @@ Name: cdecl -Version: 11.0 +Version: 11.1 Release: 0 Summary: C/C++ function declaration translator License: GPL-3.0-or-later From 9c747603c5e53590e1a93d2846c7a3f8d8663d7ad1a6861ec06936e6a8b3d2d8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 3 Oct 2021 16:58:10 +0000 Subject: [PATCH 3/3] - Update to release 11.2 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=51 --- cdecl-11.1.tar.gz | 3 --- cdecl-11.2.tar.gz | 3 +++ cdecl.changes | 8 ++++++++ cdecl.spec | 3 ++- unbreak-gnulib.diff | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 4 deletions(-) delete mode 100644 cdecl-11.1.tar.gz create mode 100644 cdecl-11.2.tar.gz create mode 100644 unbreak-gnulib.diff diff --git a/cdecl-11.1.tar.gz b/cdecl-11.1.tar.gz deleted file mode 100644 index b92b9c1..0000000 --- a/cdecl-11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b21ccf86860739399b0bc9cd52450ce572b18eb53b06446c2c545eb564927d0b -size 1181881 diff --git a/cdecl-11.2.tar.gz b/cdecl-11.2.tar.gz new file mode 100644 index 0000000..30b7e78 --- /dev/null +++ b/cdecl-11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f2df7c410a52efaded9db4fcba4924dcf81ca5cb71dc8dd8c3ae70dbff507d7 +size 1184770 diff --git a/cdecl.changes b/cdecl.changes index 3ebac83..33fca48 100644 --- a/cdecl.changes +++ b/cdecl.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Oct 3 16:16:55 UTC 2021 - Jan Engelhardt + +- Update to release 11.2 + * const_cast, dynamic_cast, and reinterpret_cast now perform + additional checks. +- Add unbreak-gnulib.diff + ------------------------------------------------------------------- Fri Oct 1 22:22:52 UTC 2021 - Jan Engelhardt diff --git a/cdecl.spec b/cdecl.spec index f95296d..96c6844 100644 --- a/cdecl.spec +++ b/cdecl.spec @@ -17,7 +17,7 @@ Name: cdecl -Version: 11.1 +Version: 11.2 Release: 0 Summary: C/C++ function declaration translator License: GPL-3.0-or-later @@ -25,6 +25,7 @@ Group: Development/Languages/C and C++ URL: https://github.com/paul-j-lucas/cdecl/ Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz +Patch1: unbreak-gnulib.diff BuildRequires: bison BuildRequires: flex BuildRequires: ncurses-devel diff --git a/unbreak-gnulib.diff b/unbreak-gnulib.diff new file mode 100644 index 0000000..bfe3781 --- /dev/null +++ b/unbreak-gnulib.diff @@ -0,0 +1,32 @@ +From: Jan Engelhardt +Date: 2021-10-03 18:24:41.647102516 +0200 + +Resolve a build failure due to unexpanded macros. +(string.in.h is missing the fallback definition for _GL_* +that are already present in stdlib.in.h.) +--- + lib/string.in.h | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +Index: cdecl-11.2/lib/string.in.h +=================================================================== +--- cdecl-11.2.orig/lib/string.in.h ++++ cdecl-11.2/lib/string.in.h +@@ -420,6 +420,17 @@ _GL_WARN_ON_USE (strchrnul, "strchrnul i + # endif + #endif + ++#ifndef _GL_ATTRIBUTE_MALLOC ++# if __GNUC__ >= 3 || defined __clang__ ++# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) ++# else ++# define _GL_ATTRIBUTE_MALLOC ++# endif ++#endif ++#ifndef _GL_ATTRIBUTE_DEALLOC_FREE ++# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) ++#endif ++ + /* Duplicate S, returning an identical malloc'd string. */ + #if @GNULIB_STRDUP@ + # if @REPLACE_STRDUP@