git: d43fa8ef534a - main - contrib/bc: merge version 5.1.0 from vendor branch

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Mon, 04 Oct 2021 20:26:43 UTC
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 <se@FreeBSD.org>
AuthorDate: 2021-10-04 20:25:24 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
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