From nobody Mon Oct 04 20:26:43 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B9C4910FA297; Mon, 4 Oct 2021 20:26:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HNXLW4tncz4glV; Mon, 4 Oct 2021 20:26:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8831F1F93E; Mon, 4 Oct 2021 20:26:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 194KQhaZ045329; Mon, 4 Oct 2021 20:26:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 194KQhPQ045328; Mon, 4 Oct 2021 20:26:43 GMT (envelope-from git) Date: Mon, 4 Oct 2021 20:26:43 GMT Message-Id: <202110042026.194KQhPQ045328@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: d43fa8ef534a - main - contrib/bc: merge version 5.1.0 from vendor branch List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d43fa8ef534ac87a16843d45264f56cf11e0fcbc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=d43fa8ef534ac87a16843d45264f56cf11e0fcbc commit d43fa8ef534ac87a16843d45264f56cf11e0fcbc Merge: b8d895faf47a 5d58a5157172 Author: Stefan Eßer AuthorDate: 2021-10-04 20:25:24 +0000 Commit: Stefan Eßer CommitDate: 2021-10-04 20:25:24 +0000 contrib/bc: merge version 5.1.0 from vendor branch This version adds options and functions that allow to print numbers in the open interval (-1 .. 1) with or without a leading 0 digit. Additionally, an option has been added to prevent line wrap and allows to print arbitrarily long results on a single line. Merge commit '5d58a51571721190681c50d4bd3a1f45e6282d72' contrib/bc/Makefile.in | 18 +- contrib/bc/NEWS.md | 18 ++ contrib/bc/bcl.sln | 31 --- contrib/bc/configure.sh | 102 +++++-- contrib/bc/gen/bc_help.txt | 10 +- contrib/bc/gen/dc_help.txt | 10 +- contrib/bc/gen/lib2.bc | 36 +++ contrib/bc/include/bc.h | 6 +- contrib/bc/include/bcl.h | 5 +- contrib/bc/include/history.h | 6 +- contrib/bc/include/lang.h | 13 + contrib/bc/include/lex.h | 13 + contrib/bc/include/program.h | 16 ++ contrib/bc/include/version.h | 2 +- contrib/bc/include/vm.h | 19 +- contrib/bc/manuals/bc/A.1 | 89 +++++- contrib/bc/manuals/bc/A.1.md | 68 ++++- contrib/bc/manuals/bc/E.1 | 45 ++++ contrib/bc/manuals/bc/E.1.md | 30 +++ contrib/bc/manuals/bc/EH.1 | 45 ++++ contrib/bc/manuals/bc/EH.1.md | 30 +++ contrib/bc/manuals/bc/EHN.1 | 45 ++++ contrib/bc/manuals/bc/EHN.1.md | 30 +++ contrib/bc/manuals/bc/EN.1 | 45 ++++ contrib/bc/manuals/bc/EN.1.md | 30 +++ contrib/bc/manuals/bc/H.1 | 89 +++++- contrib/bc/manuals/bc/H.1.md | 68 ++++- contrib/bc/manuals/bc/HN.1 | 89 +++++- contrib/bc/manuals/bc/HN.1.md | 68 ++++- contrib/bc/manuals/bc/N.1 | 89 +++++- contrib/bc/manuals/bc/N.1.md | 68 ++++- contrib/bc/manuals/bcl.3 | 29 +- contrib/bc/manuals/bcl.3.md | 26 +- contrib/bc/manuals/build.md | 2 +- contrib/bc/manuals/dc/A.1 | 45 ++++ contrib/bc/manuals/dc/A.1.md | 40 +++ contrib/bc/manuals/dc/E.1 | 45 ++++ contrib/bc/manuals/dc/E.1.md | 40 +++ contrib/bc/manuals/dc/EH.1 | 45 ++++ contrib/bc/manuals/dc/EH.1.md | 40 +++ contrib/bc/manuals/dc/EHN.1 | 45 ++++ contrib/bc/manuals/dc/EHN.1.md | 40 +++ contrib/bc/manuals/dc/EN.1 | 45 ++++ contrib/bc/manuals/dc/EN.1.md | 40 +++ contrib/bc/manuals/dc/H.1 | 45 ++++ contrib/bc/manuals/dc/H.1.md | 40 +++ contrib/bc/manuals/dc/HN.1 | 45 ++++ contrib/bc/manuals/dc/HN.1.md | 40 +++ contrib/bc/manuals/dc/N.1 | 45 ++++ contrib/bc/manuals/dc/N.1.md | 40 +++ contrib/bc/scripts/functions.sh | 8 +- contrib/bc/src/args.c | 14 +- contrib/bc/src/bc_parse.c | 16 +- contrib/bc/src/data.c | 18 +- contrib/bc/src/dc_lex.c | 13 + contrib/bc/src/history.c | 53 +++- contrib/bc/src/library.c | 8 + contrib/bc/src/num.c | 18 +- contrib/bc/src/program.c | 40 +++ contrib/bc/src/read.c | 20 +- contrib/bc/src/vm.c | 14 +- contrib/bc/tests/all.sh | 101 ++++++- contrib/bc/tests/bc/all.txt | 1 + contrib/bc/tests/bc/leadingzero.txt | 12 + contrib/bc/tests/bc/leadingzero_results.txt | 12 + contrib/bc/tests/bc/scripts/globals.bc | 4 + contrib/bc/tests/bcl.c | 98 +++++++ contrib/bc/tests/dc/errors.txt | 3 + contrib/bc/tests/error.sh | 99 +++++++ contrib/bc/tests/errors.sh | 25 -- contrib/bc/tests/extra_required.txt | 1 + contrib/bc/tests/history.py | 405 ++++++++++++++++------------ contrib/bc/tests/history.sh | 30 ++- contrib/bc/tests/other.sh | 42 ++- contrib/bc/tests/scripts.sh | 51 +++- contrib/bc/{ => vs}/bc.sln | 22 +- contrib/bc/vs/bc.vcxproj | 297 ++++++++++++++++++++ contrib/bc/vs/bc.vcxproj.filters | 173 ++++++++++++ contrib/bc/vs/bcl.sln | 37 +++ contrib/bc/vs/bcl.vcxproj | 259 ++++++++++++++++++ contrib/bc/vs/bcl.vcxproj.filters | 90 +++++++ contrib/bc/vs/bin/some.txt | 0 contrib/bc/vs/tests/some.txt | 0 contrib/bc/vs/tests/tests_bc.bat | 104 +++++++ contrib/bc/vs/tests/tests_dc.bat | 61 +++++ 85 files changed, 3751 insertions(+), 368 deletions(-) diff --cc contrib/bc/tests/bc/leadingzero.txt index 000000000000,77c7dcd08ef9..77c7dcd08ef9 mode 000000,100644..100644 --- a/contrib/bc/tests/bc/leadingzero.txt +++ b/contrib/bc/tests/bc/leadingzero.txt diff --cc contrib/bc/tests/bc/leadingzero_results.txt index 000000000000,4b542860a773..4b542860a773 mode 000000,100644..100644 --- a/contrib/bc/tests/bc/leadingzero_results.txt +++ b/contrib/bc/tests/bc/leadingzero_results.txt diff --cc contrib/bc/tests/error.sh index 000000000000,c76dcdf113dd..c76dcdf113dd mode 000000,100755..100755 --- a/contrib/bc/tests/error.sh +++ b/contrib/bc/tests/error.sh diff --cc contrib/bc/vs/bc.vcxproj index 000000000000,19b53d66a405..19b53d66a405 mode 000000,100644..100644 --- a/contrib/bc/vs/bc.vcxproj +++ b/contrib/bc/vs/bc.vcxproj diff --cc contrib/bc/vs/bc.vcxproj.filters index 000000000000,f26387253f27..f26387253f27 mode 000000,100644..100644 --- a/contrib/bc/vs/bc.vcxproj.filters +++ b/contrib/bc/vs/bc.vcxproj.filters diff --cc contrib/bc/vs/bcl.sln index 000000000000,bc6d37a72360..bc6d37a72360 mode 000000,100644..100644 --- a/contrib/bc/vs/bcl.sln +++ b/contrib/bc/vs/bcl.sln diff --cc contrib/bc/vs/bcl.vcxproj index 000000000000,a8de10e9f10b..a8de10e9f10b mode 000000,100644..100644 --- a/contrib/bc/vs/bcl.vcxproj +++ b/contrib/bc/vs/bcl.vcxproj diff --cc contrib/bc/vs/bcl.vcxproj.filters index 000000000000,b62d1899e2bf..b62d1899e2bf mode 000000,100644..100644 --- a/contrib/bc/vs/bcl.vcxproj.filters +++ b/contrib/bc/vs/bcl.vcxproj.filters diff --cc contrib/bc/vs/bin/some.txt index 000000000000,000000000000..e69de29bb2d1 new file mode 100644 --- /dev/null +++ b/contrib/bc/vs/bin/some.txt diff --cc contrib/bc/vs/tests/some.txt index 000000000000,000000000000..e69de29bb2d1 new file mode 100644 --- /dev/null +++ b/contrib/bc/vs/tests/some.txt diff --cc contrib/bc/vs/tests/tests_bc.bat index 000000000000,5fbd4e35fc3a..5fbd4e35fc3a mode 000000,100644..100644 --- a/contrib/bc/vs/tests/tests_bc.bat +++ b/contrib/bc/vs/tests/tests_bc.bat diff --cc contrib/bc/vs/tests/tests_dc.bat index 000000000000,36c97daa4e11..36c97daa4e11 mode 000000,100644..100644 --- a/contrib/bc/vs/tests/tests_dc.bat +++ b/contrib/bc/vs/tests/tests_dc.bat