aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* vendor/bc: import of version 5.3.0vendor/bc/5.3.0Stefan Eßer2022-06-1122-2647/+4604
| | | | | | This version adds support for command line editing and history using the editline or readline libraries in addition to the line editing features available in previous versions.
* vendor/bc: import of version 5.2.5vendor/bc/5.2.5Stefan Eßer2022-05-101-4/+12
| | | | | This is a production release that fixes this bc's behavior on ^D to match GNU bc.
* vendor/bc: import version 5.2.4vendor/bc/5.2.4Stefan Eßer2022-04-172-4/+34
| | | | | | This update fixes an issue in input line editing: when going left to the start of the line, the cursor would jump to the end of the line instead.
* vendor/bc: import version 5.2.3vendor/bc/5.2.3Stefan Eßer2022-03-076-74/+111
| | | | | | | This version fixes a parse error when passing a file to bc using -f if that file has a multiline comment or string in it. MFC after: 3 days
* vendor/bc: import release 5.2.2vendor/bc/5.2.2Stefan Eßer2022-02-052-5/+24
| | | | | | | | This release assigns a default value to the internal program name variable in case the program is invoked with argv[0] == NULL. There was no security issue: the prevuous program version would have been immediately terminated due to a NULL dereference.
* vendor/bc: import release 5.2.1vendor/bc/5.2.1Stefan Eßer2021-11-302-2/+29
| | | | | | This release fixes two parse bugs when in POSIX standard mode. One of these bugs was due to a quirk of the POSIX grammar, and the other was because bc was too strict.
* vendor/bc: import release 5.2.0vendor/bc/5.2.0Stefan Eßer2021-11-3015-90/+261
| | | | | This version is imported only for documentary purposes since it does not contain any changes that are relevant for the FreeBSD base system.
* vendor/bc: update to version 5.1.1vendor/bc/5.1.1Stefan Eßer2021-10-062-43/+47
| | | | | This update fixes a parser issue, which in special situations could reject syntactically correct if statements.
* vendor/bc: update to version 5.1.0vendor/bc/5.1.0Stefan Eßer2021-10-0410-39/+175
| | | | | | | | 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.
* vendor/bc: update to upstream version 5.0.2vendor/bc/5.0.2Stefan Eßer2021-09-191-1/+1
|
* vendor/bc: imoport release 5.0.0Stefan Eßer2021-08-0922-1570/+6290
| | | | | | | | | | | | | | | | | | | | | | 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.
* Vendor import of Gavin D. Howard's bc version 4.0.2vendor/bc/4.0.2Stefan Eßer2021-05-122-1/+6
|
* Vendor import of Gavin D. Howards bc version 4.0.1vendor/bc/4.0.1Stefan Eßer2021-04-251-0/+1
|
* Vendor import of Gavin D. Howard's bc version 4.0.0vendor/bc/4.0.0Stefan Eßer2021-04-0610-128/+289
|
* Vendor import of bc 3.3.4vendor/bc/3.3.4Stefan Eßer2021-03-191-0/+4
|
* bc: Vendor import new version 3.3.3bc/3.3.3Stefan Eßer2021-03-051-1/+1
|
* Vendor import of Gavin Howard's bc-3.3.0vendor/bc/bc-3.3.0Stefan Eßer2021-02-172-4/+6
|
* Vendor import of Gavin Howard's bc version 3.2.6vendor/bc/3.2.6Stefan Eßer2021-01-3122-121/+156
|
* Import version 3.2.0vendor/bc/3.2.0Stefan Eßer2020-11-2622-444/+1838
| | | | | Notes: svn path=/vendor/bc/dist/; revision=368068 svn path=/vendor/bc/3.2.0/; revision=368069; tag=vendor/bc/3.2.0
* Revert incomplete import of version 3.2.0Stefan Eßer2020-11-2613-549/+331
| | | | Notes: svn path=/vendor/bc/dist/; revision=368063
* Update to version 3.2.0Stefan Eßer2020-11-2613-331/+549
| | | | Notes: svn path=/vendor/bc/dist/; revision=368062
* Update to version 3.1.6vendor/bc/3.1.6Stefan Eßer2020-10-012-4/+5
| | | | | Notes: svn path=/vendor/bc/dist/; revision=366316 svn path=/vendor/bc/3.1.6/; revision=366317; tag=vendor/bc/3.1.6
* Upgrade to version 3.1.5vendor/bc/3.1.5Stefan Eßer2020-08-052-4/+5
| | | | | | | | This version fixes a bug that only occurs when with chinese locale settings. Notes: svn path=/vendor/bc/dist/; revision=363897 svn path=/vendor/bc/3.1.5/; revision=363899; tag=vendor/bc/3.1.5
* Import version 3.1.4vendor/bc/3.1.4Stefan Eßer2020-08-035-57/+53
| | | | | | | | | | | | | | | | This version makes dc exit after processing all commands passed via -e or -f instead of waiting for more input on STDIN (add "-f -" to the command line to emulate the behavior of versionm 3.1.3 and earlier, if desired). The version and copyright message are no longer printed for interactive sessions as was the case with the prior implementation in the FreeBSD base system. Obtained from: https://git.yzena.com/gavin/bc Notes: svn path=/vendor/bc/dist/; revision=363807 svn path=/vendor/bc/3.1.4/; revision=363808; tag=vendor/bc/3.1.4
* Upgrade to version 3.1.3vendor/bc/3.1.3Stefan Eßer2020-07-101-2/+15
| | | | | | | | This version fixes an incompatibility with GNU bc. Notes: svn path=/vendor/bc/dist/; revision=363074 svn path=/vendor/bc/3.1.3/; revision=363075; tag=vendor/bc/3.1.3
* Update to release 3.1.1vendor/bc/3.1.1Stefan Eßer2020-07-0721-304/+424
| | | | | | | | | | This release fixes a regression from traditional bc behavior in FreeBSD with regard to "-e quit" being passed on the command line and add Spanish message catalogs. Notes: svn path=/vendor/bc/dist/; revision=362984 svn path=/vendor/bc/3.1.1/; revision=362985; tag=vendor/bc/3.1.1
* Import new 2-clause BSD licenced implementation of the bc and dc commandsvendor/bc/3.0.2Stefan Eßer2020-06-2721-0/+13390
These implementations of the bc and dc programs offer a number of advantages compared to the current implementations in the FreeBSD base system: - They do not depend on external large number functions (i.e. no dependency on OpenSSL or any other large number library) - They implements all features found in GNU bc/dc (with the exception of the forking of sub-processes, which the author of this version considers as a security issue). - They are significantly faster than the current code in base (more than 2 orders of magnitude in some of my tests, e.g. for 12345^100000). - They should be fully compatible with all features and the behavior of the current implementations in FreeBSD (not formally verified). - They support POSIX message catalogs and come with localized messages in Chinese, Dutch, English, French, German, Japanese, Polish, Portugueze, and Russian. - They offer very detailed man-pages that provide far more information than the current ones. Approved by: imp Obtained from: https://git.yzena.com/gavin/bc Differential Revision: https://reviews.freebsd.org/D19982 Notes: svn path=/vendor/bc/dist/; revision=362697 svn path=/vendor/bc/3.0.2/; revision=362698; tag=vendor/bc/3.0.2