]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vendor/bc: imoport release 5.0.0
authorStefan Eßer <se@FreeBSD.org>
Mon, 9 Aug 2021 20:32:55 +0000 (22:32 +0200)
committerStefan Eßer <se@FreeBSD.org>
Mon, 9 Aug 2021 20:32:55 +0000 (22:32 +0200)
commit2f57ecae4b98e76e5d675563785a7e6c59c868c4
treee6d1dbd4c570423814482d1b26473c205050c0a5
parentb46baf82c7ba1648082cdcf26f7f4570d919350e
vendor/bc: imoport release 5.0.0

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.
396 files changed:
.gitattributes
.gitignore
LICENSE.md
Makefile.in
NEWS.md
README.md
RELEASE.md [deleted file]
bc.vcxproj
bcl.vcxproj
configure [changed from file to symlink]
configure.sh
gen/bc_help.txt
gen/dc_help.txt
gen/lib.bc
gen/lib2.bc
gen/strgen.c
gen/strgen.sh
include/args.h
include/bc.h
include/bcl.h
include/dc.h
include/file.h
include/history.h
include/lang.h
include/lex.h
include/library.h
include/num.h
include/opt.h
include/parse.h
include/program.h
include/rand.h
include/read.h
include/status.h
include/vector.h
include/version.h
include/vm.h
locales/de_DE.ISO8859-1.msg
locales/de_DE.UTF-8.msg
locales/en_US.msg
locales/es_ES.ISO8859-1.msg
locales/es_ES.UTF-8.msg
locales/fr_FR.ISO8859-1.msg
locales/fr_FR.UTF-8.msg
locales/ja_JP.UTF-8.msg
locales/ja_JP.eucJP.msg
locales/nl_NL.ISO8859-1.msg
locales/nl_NL.UTF-8.msg
locales/pl_PL.ISO8859-2.msg
locales/pl_PL.UTF-8.msg
locales/pt_PT.ISO8859-1.msg
locales/pt_PT.UTF-8.msg
locales/ru_RU.CP1251.msg
locales/ru_RU.CP866.msg
locales/ru_RU.ISO8859-5.msg
locales/ru_RU.KOI8-R.msg
locales/ru_RU.UTF-8.msg
locales/zh_CN.GB18030.msg
locales/zh_CN.GB2312.msg
locales/zh_CN.GBK.msg
locales/zh_CN.UTF-8.msg
locales/zh_CN.eucCN.msg
manpage.sh [deleted file]
manuals/algorithms.md
manuals/bc.1.md.in [deleted file]
manuals/bc/A.1
manuals/bc/A.1.md
manuals/bc/E.1
manuals/bc/E.1.md
manuals/bc/EH.1
manuals/bc/EH.1.md
manuals/bc/EHN.1
manuals/bc/EHN.1.md
manuals/bc/EHNP.1 [deleted file]
manuals/bc/EHNP.1.md [deleted file]
manuals/bc/EHP.1 [deleted file]
manuals/bc/EHP.1.md [deleted file]
manuals/bc/EN.1
manuals/bc/EN.1.md
manuals/bc/ENP.1 [deleted file]
manuals/bc/ENP.1.md [deleted file]
manuals/bc/EP.1 [deleted file]
manuals/bc/EP.1.md [deleted file]
manuals/bc/H.1
manuals/bc/H.1.md
manuals/bc/HN.1
manuals/bc/HN.1.md
manuals/bc/HNP.1 [deleted file]
manuals/bc/HNP.1.md [deleted file]
manuals/bc/HP.1 [deleted file]
manuals/bc/HP.1.md [deleted file]
manuals/bc/N.1
manuals/bc/N.1.md
manuals/bc/NP.1 [deleted file]
manuals/bc/NP.1.md [deleted file]
manuals/bc/P.1 [deleted file]
manuals/bc/P.1.md [deleted file]
manuals/bcl.3
manuals/bcl.3.md
manuals/benchmarks.md [deleted file]
manuals/build.md
manuals/dc.1.md.in [deleted file]
manuals/dc/A.1
manuals/dc/A.1.md
manuals/dc/E.1
manuals/dc/E.1.md
manuals/dc/EH.1
manuals/dc/EH.1.md
manuals/dc/EHN.1
manuals/dc/EHN.1.md
manuals/dc/EHNP.1 [deleted file]
manuals/dc/EHNP.1.md [deleted file]
manuals/dc/EHP.1 [deleted file]
manuals/dc/EHP.1.md [deleted file]
manuals/dc/EN.1
manuals/dc/EN.1.md
manuals/dc/ENP.1 [deleted file]
manuals/dc/ENP.1.md [deleted file]
manuals/dc/EP.1 [deleted file]
manuals/dc/EP.1.md [deleted file]
manuals/dc/H.1
manuals/dc/H.1.md
manuals/dc/HN.1
manuals/dc/HN.1.md
manuals/dc/HNP.1 [deleted file]
manuals/dc/HNP.1.md [deleted file]
manuals/dc/HP.1 [deleted file]
manuals/dc/HP.1.md [deleted file]
manuals/dc/N.1
manuals/dc/N.1.md
manuals/dc/NP.1 [deleted file]
manuals/dc/NP.1.md [deleted file]
manuals/dc/P.1 [deleted file]
manuals/dc/P.1.md [deleted file]
manuals/header.txt [deleted file]
manuals/header_bc.txt [deleted file]
manuals/header_bcl.txt [deleted file]
manuals/header_dc.txt [deleted file]
release.sh [deleted file]
scripts/exec-install.sh [moved from exec-install.sh with 88% similarity]
scripts/functions.sh [moved from functions.sh with 68% similarity]
scripts/karatsuba.py [moved from karatsuba.py with 84% similarity]
scripts/link.sh [moved from link.sh with 90% similarity]
scripts/locale_install.sh [moved from locale_install.sh with 68% similarity]
scripts/locale_uninstall.sh [moved from locale_uninstall.sh with 98% similarity]
scripts/safe-install.sh [moved from safe-install.sh with 100% similarity]
src/args.c
src/bc.c
src/bc_lex.c
src/bc_parse.c
src/data.c
src/dc.c
src/dc_lex.c
src/dc_parse.c
src/file.c
src/history.c
src/lang.c
src/lex.c
src/library.c
src/main.c
src/num.c
src/opt.c
src/parse.c
src/program.c
src/rand.c
src/read.c
src/vector.c
src/vm.c
tests/afl.py [deleted file]
tests/all.sh
tests/bc/all.txt
tests/bc/bitfuncs.txt [new file with mode: 0644]
tests/bc/bitfuncs_results.txt [new file with mode: 0644]
tests/bc/decimal.txt
tests/bc/decimal_results.txt
tests/bc/divmod.txt [new file with mode: 0644]
tests/bc/divmod_results.txt [new file with mode: 0644]
tests/bc/errors.txt
tests/bc/errors/25.txt [new file with mode: 0644]
tests/bc/errors/26.txt [new file with mode: 0644]
tests/bc/errors/27.txt [new file with mode: 0644]
tests/bc/errors/28.txt [new file with mode: 0644]
tests/bc/errors/29.txt [new file with mode: 0644]
tests/bc/errors/30.txt [new file with mode: 0644]
tests/bc/errors/31.txt [new file with mode: 0644]
tests/bc/errors/32.txt [new file with mode: 0644]
tests/bc/lib2.txt
tests/bc/lib2_results.txt
tests/bc/modexp.txt [new file with mode: 0644]
tests/bc/modexp_results.txt [new file with mode: 0644]
tests/bc/pi_results.txt
tests/bc/posix_errors.txt
tests/bc/power.txt
tests/bc/power_results.txt
tests/bc/recursive_arrays.txt [new file with mode: 0644]
tests/bc/recursive_arrays_results.txt [new file with mode: 0644]
tests/bc/scripts/add.bc
tests/bc/scripts/all.txt
tests/bc/scripts/array.bc [changed mode: 0755->0644]
tests/bc/scripts/atan.bc [changed mode: 0755->0644]
tests/bc/scripts/bessel.bc [changed mode: 0755->0644]
tests/bc/scripts/divide.bc
tests/bc/scripts/globals.bc [changed mode: 0755->0644]
tests/bc/scripts/multiply.bc
tests/bc/scripts/parse.bc [changed mode: 0755->0644]
tests/bc/scripts/print.bc [changed mode: 0755->0644]
tests/bc/scripts/references.bc [changed mode: 0755->0644]
tests/bc/scripts/screen.bc [changed mode: 0755->0644]
tests/bc/scripts/strings2.bc [new file with mode: 0644]
tests/bc/scripts/subtract.bc
tests/bc/strings.txt
tests/bc/strings_results.txt
tests/bc/timeconst.sh
tests/bc/vars_results.txt
tests/bcl.c
tests/dc/all.txt
tests/dc/decimal.txt
tests/dc/decimal_results.txt
tests/dc/errors.txt
tests/dc/errors/32.txt [moved from tests/fuzzing/dc_inputs/17.txt with 95% similarity]
tests/dc/errors/33.txt [new file with mode: 0644]
tests/dc/errors/34.txt [moved from tests/fuzzing/dc_inputs/26.txt with 58% similarity]
tests/dc/exec_stack_len.txt [new file with mode: 0644]
tests/dc/exec_stack_len_results.txt [new file with mode: 0644]
tests/dc/length.txt
tests/dc/length_results.txt
tests/dc/scientific.txt
tests/dc/scientific_results.txt
tests/dc/scripts/array.dc [changed mode: 0755->0644]
tests/dc/scripts/asciify.dc [changed mode: 0755->0644]
tests/dc/scripts/easter.sh [changed mode: 0644->0755]
tests/dc/scripts/else.dc [changed mode: 0755->0644]
tests/dc/scripts/factorial.dc [changed mode: 0755->0644]
tests/dc/scripts/loop.dc [changed mode: 0755->0644]
tests/dc/scripts/prime.dc [changed mode: 0755->0644]
tests/dc/scripts/quit.dc [changed mode: 0755->0644]
tests/dc/scripts/stream.dc [changed mode: 0755->0644]
tests/dc/scripts/stream.txt [new file with mode: 0644]
tests/dc/scripts/weird.dc [changed mode: 0755->0644]
tests/dc/stack_len.txt [new file with mode: 0644]
tests/dc/stack_len_results.txt [new file with mode: 0644]
tests/dc/strings.txt
tests/dc/strings_results.txt
tests/errors.sh
tests/extra_required.txt
tests/fuzzing/bc.dict [deleted file]
tests/fuzzing/bc_inputs1/abs.txt [deleted file]
tests/fuzzing/bc_inputs1/add.txt [deleted file]
tests/fuzzing/bc_inputs1/arctangent.txt [deleted file]
tests/fuzzing/bc_inputs1/array.bc [deleted file]
tests/fuzzing/bc_inputs1/arrays.txt [deleted file]
tests/fuzzing/bc_inputs1/assignments.txt [deleted file]
tests/fuzzing/bc_inputs1/basic.txt [deleted file]
tests/fuzzing/bc_inputs1/boolean.txt [deleted file]
tests/fuzzing/bc_inputs1/cosine.txt [deleted file]
tests/fuzzing/bc_inputs1/decimal.txt [deleted file]
tests/fuzzing/bc_inputs1/divide.txt [deleted file]
tests/fuzzing/bc_inputs1/engineering.txt [deleted file]
tests/fuzzing/bc_inputs1/exponent.txt [deleted file]
tests/fuzzing/bc_inputs1/functions.bc [deleted file]
tests/fuzzing/bc_inputs1/functions.txt [deleted file]
tests/fuzzing/bc_inputs1/globals.txt [deleted file]
tests/fuzzing/bc_inputs1/len.bc [deleted file]
tests/fuzzing/bc_inputs1/length.txt [deleted file]
tests/fuzzing/bc_inputs1/lib10.txt [deleted file]
tests/fuzzing/bc_inputs1/lib11.txt [deleted file]
tests/fuzzing/bc_inputs1/lib12.txt [deleted file]
tests/fuzzing/bc_inputs1/lib2.txt [deleted file]
tests/fuzzing/bc_inputs1/lib3.txt [deleted file]
tests/fuzzing/bc_inputs1/lib4.txt [deleted file]
tests/fuzzing/bc_inputs1/lib5.txt [deleted file]
tests/fuzzing/bc_inputs1/lib6.txt [deleted file]
tests/fuzzing/bc_inputs1/lib7.txt [deleted file]
tests/fuzzing/bc_inputs1/lib8.txt [deleted file]
tests/fuzzing/bc_inputs2/lib13.txt [deleted file]
tests/fuzzing/bc_inputs2/lib14.txt [deleted file]
tests/fuzzing/bc_inputs2/lib15.txt [deleted file]
tests/fuzzing/bc_inputs2/lib16.txt [deleted file]
tests/fuzzing/bc_inputs2/lib19.txt [deleted file]
tests/fuzzing/bc_inputs2/lib20.txt [deleted file]
tests/fuzzing/bc_inputs2/lib21.txt [deleted file]
tests/fuzzing/bc_inputs2/lib22.txt [deleted file]
tests/fuzzing/bc_inputs2/lib23.txt [deleted file]
tests/fuzzing/bc_inputs2/lib24.txt [deleted file]
tests/fuzzing/bc_inputs2/log.txt [deleted file]
tests/fuzzing/bc_inputs2/misc.txt [deleted file]
tests/fuzzing/bc_inputs2/misc1.txt [deleted file]
tests/fuzzing/bc_inputs2/misc2.txt [deleted file]
tests/fuzzing/bc_inputs2/misc3.txt [deleted file]
tests/fuzzing/bc_inputs2/modulus.txt [deleted file]
tests/fuzzing/bc_inputs2/multiply.txt [deleted file]
tests/fuzzing/bc_inputs2/pi.txt [deleted file]
tests/fuzzing/bc_inputs2/places.txt [deleted file]
tests/fuzzing/bc_inputs2/power.txt [deleted file]
tests/fuzzing/bc_inputs2/print2.txt [deleted file]
tests/fuzzing/bc_inputs2/references.bc [deleted file]
tests/fuzzing/bc_inputs2/scale.txt [deleted file]
tests/fuzzing/bc_inputs2/scientific.txt [deleted file]
tests/fuzzing/bc_inputs2/shift.txt [deleted file]
tests/fuzzing/bc_inputs2/sine.txt [deleted file]
tests/fuzzing/bc_inputs3/01.txt [deleted file]
tests/fuzzing/bc_inputs3/02.txt [deleted file]
tests/fuzzing/bc_inputs3/03.txt [deleted file]
tests/fuzzing/bc_inputs3/04.txt [deleted file]
tests/fuzzing/bc_inputs3/05.txt [deleted file]
tests/fuzzing/bc_inputs3/06.txt [deleted file]
tests/fuzzing/bc_inputs3/07.txt [deleted file]
tests/fuzzing/bc_inputs3/08.txt [deleted file]
tests/fuzzing/bc_inputs3/09.txt [deleted file]
tests/fuzzing/bc_inputs3/10.txt [deleted file]
tests/fuzzing/bc_inputs3/11.txt [deleted file]
tests/fuzzing/bc_inputs3/12.txt [deleted file]
tests/fuzzing/bc_inputs3/13.txt [deleted file]
tests/fuzzing/bc_inputs3/14.txt [deleted file]
tests/fuzzing/bc_inputs3/15.txt [deleted file]
tests/fuzzing/bc_inputs3/16.txt [deleted file]
tests/fuzzing/bc_inputs3/17.txt [deleted file]
tests/fuzzing/bc_inputs3/18.txt [deleted file]
tests/fuzzing/bc_inputs3/19.txt [deleted file]
tests/fuzzing/bc_inputs3/20.txt [deleted file]
tests/fuzzing/bc_inputs3/21.txt [deleted file]
tests/fuzzing/bc_inputs3/22.txt [deleted file]
tests/fuzzing/bc_inputs3/23.txt [deleted file]
tests/fuzzing/bc_inputs3/24.txt [deleted file]
tests/fuzzing/bc_inputs3/sqrt.txt [deleted file]
tests/fuzzing/bc_inputs3/strings.txt [deleted file]
tests/fuzzing/bc_inputs3/subtract.txt [deleted file]
tests/fuzzing/bc_inputs3/trunc.txt [deleted file]
tests/fuzzing/bc_inputs3/void.txt [deleted file]
tests/fuzzing/dc_inputs/01.txt [deleted file]
tests/fuzzing/dc_inputs/02.txt [deleted file]
tests/fuzzing/dc_inputs/03.txt [deleted file]
tests/fuzzing/dc_inputs/04.txt [deleted file]
tests/fuzzing/dc_inputs/05.txt [deleted file]
tests/fuzzing/dc_inputs/06.txt [deleted file]
tests/fuzzing/dc_inputs/07.txt [deleted file]
tests/fuzzing/dc_inputs/08.txt [deleted file]
tests/fuzzing/dc_inputs/09.txt [deleted file]
tests/fuzzing/dc_inputs/10.txt [deleted file]
tests/fuzzing/dc_inputs/11.txt [deleted file]
tests/fuzzing/dc_inputs/12.txt [deleted file]
tests/fuzzing/dc_inputs/13.txt [deleted file]
tests/fuzzing/dc_inputs/14.txt [deleted file]
tests/fuzzing/dc_inputs/15.txt [deleted file]
tests/fuzzing/dc_inputs/16.txt [deleted file]
tests/fuzzing/dc_inputs/18.txt [deleted file]
tests/fuzzing/dc_inputs/19.txt [deleted file]
tests/fuzzing/dc_inputs/20.txt [deleted file]
tests/fuzzing/dc_inputs/21.txt [deleted file]
tests/fuzzing/dc_inputs/22.txt [deleted file]
tests/fuzzing/dc_inputs/23.txt [deleted file]
tests/fuzzing/dc_inputs/24.txt [deleted file]
tests/fuzzing/dc_inputs/25.txt [deleted file]
tests/fuzzing/dc_inputs/27.txt [deleted file]
tests/fuzzing/dc_inputs/28.txt [deleted file]
tests/fuzzing/dc_inputs/29.txt [deleted file]
tests/fuzzing/dc_inputs/30.txt [deleted file]
tests/fuzzing/dc_inputs/31.txt [deleted file]
tests/fuzzing/dc_inputs/abs.txt [deleted file]
tests/fuzzing/dc_inputs/add.txt [deleted file]
tests/fuzzing/dc_inputs/array.dc [deleted file]
tests/fuzzing/dc_inputs/boolean.txt [deleted file]
tests/fuzzing/dc_inputs/decimal.txt [deleted file]
tests/fuzzing/dc_inputs/divide.txt [deleted file]
tests/fuzzing/dc_inputs/divmod.txt [deleted file]
tests/fuzzing/dc_inputs/else.dc [deleted file]
tests/fuzzing/dc_inputs/engineering.txt [deleted file]
tests/fuzzing/dc_inputs/loop.dc [deleted file]
tests/fuzzing/dc_inputs/misc.txt [deleted file]
tests/fuzzing/dc_inputs/modexp.txt [deleted file]
tests/fuzzing/dc_inputs/modulus.txt [deleted file]
tests/fuzzing/dc_inputs/multiply.txt [deleted file]
tests/fuzzing/dc_inputs/places.txt [deleted file]
tests/fuzzing/dc_inputs/power.txt [deleted file]
tests/fuzzing/dc_inputs/quit.dc [deleted file]
tests/fuzzing/dc_inputs/scientific.txt [deleted file]
tests/fuzzing/dc_inputs/shift.txt [deleted file]
tests/fuzzing/dc_inputs/sqrt.txt [deleted file]
tests/fuzzing/dc_inputs/stdin.txt [deleted file]
tests/fuzzing/dc_inputs/stream.dc [deleted file]
tests/fuzzing/dc_inputs/strings.txt [deleted file]
tests/fuzzing/dc_inputs/subtract.txt [deleted file]
tests/fuzzing/dc_inputs/trunc.txt [deleted file]
tests/fuzzing/dc_inputs/vars.txt [deleted file]
tests/fuzzing/dc_inputs/weird.dc [deleted file]
tests/history.py [new file with mode: 0755]
tests/history.sh [moved from tests/diff.sh with 59% similarity]
tests/other.sh
tests/radamsa.sh [deleted file]
tests/radamsa.txt [deleted file]
tests/randmath.py [deleted file]
tests/read.sh
tests/script.sed [new file with mode: 0644]
tests/script.sh
tests/scripts.sh
tests/stdin.sh
tests/test.sh