aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* vendor/bc: upgrade to version 7.1.0vendor/bc/7.1.0vendor/bcStefan Eßer2025-09-1114-13/+1423
| | | | | | | | | This update fixes a few bugs: - Improper response to double SIGINT with editline. - Not letting libedit handle terminal size changes. - A dc crash from improperly handling an error. - A duplicate check for reference arrays. - Build failures with GCC 15.
* vendor/bc: upgrade to version 7.0.0vendor/bc/7.0.0Stefan Eßer2024-08-231-0/+59
| | | | | | | | | | | | | | | | This is a production release to fix three bugs, none of which affects well formed scripts on FreeBSD: The first bug is that bc/dc will exit on macOS when the terminal is resized. The second bug is that an array, which should only be a function parameter, was accepted as part of larger expressions. The third bug is that the value stack for dc was cleared on any error. However, this is not how other dc behave. To bring dc more in line with other implementations, this behavior was changed. This change is why this version is a new major version.
* vendor/bc: upgrade to version 6.7.6vendor/bc/6.7.6Stefan Eßer2024-07-0812-12/+12
| | | | | | | | This update fixes a potential issue when flushing stdout on exit fails: longjmp could use an uninitialized target address variable. Most files are included in this commit due to a changed date in the copyright note.
* vendor/bc: upgrade to version 6.7.5vendor/bc/6.7.5Stefan Eßer2024-01-044-0/+426
| | | | | | This update fixes a bug that line breaks in printed numbers may not match the line length set by the user. The value is printed correctly, just not split as specified in some situations.
* vendor/bc: import version 6.3.1vendor/bc/6.3.1Stefan Eßer2023-02-246-8/+25
| | | | | This version adds a command to dc to query whether extended registers are enabled or not.
* vendor/bc: import version 6.2.4Stefan Eßer2023-02-062-1/+92
| | | | | | This update contains only documentation changes (new main repository URL and changed mail address of the program author) and changes to the build system that do not affect the FreeBSD base system build.
* vendor/bc: import version 6.2.0vendor/bc/6.2.0Stefan Eßer2023-01-288-8/+8
| | | | | | | | | | | | | | | | | | This is a production release with a new feature and a few bug fixes. The bug fixes include: - A crash when bc and dc are built using editline, but history is not activated. - A missing local in the uint*() family of functions in the extended math library. - A failure to clear the tail call list in dc on error. - A crash when attempting to swap characters in command-line history when no characters exist. - SIGWINCH was activated even when history was not. The new feature is that stack traces are now given for runtime errors. In debug mode, the C source file and line of errors are given as well.
* vendor/bc: import version 6.0.2verndor/bc/6.0.2vendor/bc/6.0.2Stefan Eßer2022-08-301-0/+2
| | | | | | | | Changes relative to the previous version in FreeBSD: - Fix error message on certain syntax errors. - Add digit clamping (build option and run-time option) - Make -l options no longer overridee scale value set with -S
* vendor/bc: update to upstream commit ca53adf83b7aStefan Eßer2022-06-221-13/+10
| | | | | | | | | | The filter_text function in scripts/functions.sh in version 5.3.3 had commented out a "rm" command, probably for debugging purposes. This caused temporary files to persist in /tmp when the bc program had been built. This commit fixes the build process with no change of the resulting artefacts.
* vendor/bc: import version 5.3.2vendor/bc/5.3.2Stefan Eßer2022-06-1415-3488/+0
| | | | | | This update restores support for suppression of the prompt with -P when using the libedit or libreadline libraries for command line editing and history.
* vendor/bc: import of version 5.3.0vendor/bc/5.3.0Stefan Eßer2022-06-113-0/+206
| | | | | | 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-102-0/+14
| | | | | This is a production release that fixes this bc's behavior on ^D to match GNU bc.
* vendor/bc: import version 5.2.3vendor/bc/5.2.3Stefan Eßer2022-03-0715-0/+3474
| | | | | | | 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.0vendor/bc/5.2.0Stefan Eßer2021-11-302-7/+9
| | | | | 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.0vendor/bc/5.1.0Stefan Eßer2021-10-041-5/+3
| | | | | | | | 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: imoport release 5.0.0Stefan Eßer2021-08-097-0/+1148
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.