From 78c7fb64600a37f077fdb2e5f83e67a94f64edd4 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 9 May 2020 10:26:31 +0200 Subject: [PATCH 1/9] gnulib: update --- gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib b/gnulib index 2ac33b29..ffbb0ced 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 2ac33b29fc09f72a18eb08829eb142eb86428747 +Subproject commit ffbb0ced8b2a01c2e355fa7d41db1232453f28b5 From dbaed0bbf2fa06d10e3942594ceab1875b3cecfe Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 12 May 2020 18:37:49 +0200 Subject: [PATCH 2/9] tests: don't use == to compare const char *... Reported by Dagobert Michelsen. https://lists.gnu.org/r/bug-bison/2020-05/msg00091.html * tests/c++.at: here. --- NEWS | 3 +++ tests/c++.at | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 6420a763..43d09e8d 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ GNU Bison NEWS * Noteworthy changes in release ?.? (????-??-??) [?] +** Bug fixes + + Some tests were fixed. * Noteworthy changes in release 3.6.1 (2020-05-10) [stable] diff --git a/tests/c++.at b/tests/c++.at index 5789c8b0..e3a13224 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -161,8 +161,8 @@ int main() { parser::symbol_type s = parser::make_INT (12); assert_eq (s.kind (), parser::symbol_kind::S_INT); - assert_eq (parser::symbol_name (s.kind ()), "\"int\""); - assert_eq (s.name (), "\"int\""); + assert_eq (parser::symbol_name (s.kind ()), std::string ("\"int\"")); + assert_eq (s.name (), std::string ("\"int\"")); assert_eq (s.value.as (), 12); } From f4495da3372e25aef219f646a90a312655c7781b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 10 May 2020 11:30:31 +0200 Subject: [PATCH 3/9] examples: use markdown hyperlinks * examples/c++/README.md, examples/c++/calc++/README.md, * examples/c/README.md: here. --- examples/c++/README.md | 8 ++++---- examples/c++/calc++/README.md | 6 +++--- examples/c/README.md | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/c++/README.md b/examples/c++/README.md index 78e643e3..cbef0021 100644 --- a/examples/c++/README.md +++ b/examples/c++/README.md @@ -13,8 +13,8 @@ semantic value. Run as `./simple`. -Extracted from the documentation: "A Simple C++ Example". -https://www.gnu.org/software/bison/manual/html_node/A-Simple-C_002b_002b-Example.html +Extracted from the documentation: [A Simple C++ +Example](https://www.gnu.org/software/bison/manual/html_node/A-Simple-C_002b_002b-Example.html). ## variant.yy - Self-contained example in C++98 A variation of simple.yy, in C++98. @@ -36,8 +36,8 @@ starting point for a clean parser in C++. The previous examples are better introductory examples, and the C examples are also useful introductory examples. -Extracted from the documentation: "A Complete C++ Example". -https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html +Extracted from the documentation: [A Complete C++ +Example](https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html).