aboutsummaryrefslogtreecommitdiff
path: root/manuals/dc/E.1.md
Commit message (Collapse)AuthorAgeFilesLines
* vendor/bc: import version 6.2.4Stefan Eßer2023-02-061-2/+2
| | | | | | 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-281-1/+1
| | | | | | | | | | | | | | | | | | 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.1.0vendor/bc/6.1.0Stefan Eßer2023-01-281-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a production release that fixes a discrepancy from the bc standard, a couple of memory bugs, and adds new features. The discrepancy from the bc standard was with regards to the behavior of the quit command. This bc used to quit whenever it encountered quit during parsing, even if it was parsing a full file. Now, bc only quits when encountering quit after it has executed all executable statements up to that point. This behavior is slightly different from GNU bc, but users will only notice the difference if they put quit on the same line as other statements. The first memory bug could be reproduced by assigning a string to a non-local variable in a function, then redefining the function with use of the same non-local variable, which would still refer to a string in the previous version of the function. The second memory bug was caused by passing an array argument to the asciify() built-in function. In certain cases, that was wrongly allowed, and the interpreter just assumed everything was correct and accessed memory. Now that arrays are allowed as arguments (see below), this is not an issue. The first feature was the addition of the is_number() built-in function (u in dc) that returns 1 if the runtime argument is a number and 0 otherwise. The second feature was the addition of the is_string() built-in function (t in dc) that returns 1 if the runtime argument is a string and 0 otherwise. These features were added because I realized that type-checking is necessary now that strings can be assigned to variables in bc and because they've always been assignable to variables in dc. The last added feature is the ability of the asciify() built-in function in bc to convert a full array of numbers into a string. This means that character-by-character printing will not be necessary, and more strings than just single-character ones will be able to be created.
* vendor/bc: import version 6.0.2verndor/bc/6.0.2vendor/bc/6.0.2Stefan Eßer2022-08-301-74/+150
| | | | | | | | 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: import of version 5.3.0vendor/bc/5.3.0Stefan Eßer2022-06-111-10/+38
| | | | | | 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 release 5.2.0vendor/bc/5.2.0Stefan Eßer2021-11-301-0/+11
| | | | | 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-0/+40
| | | | | | | | 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-091-57/+180
| | | | | | | | | | | | | | | | | | | | | | 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.0vendor/bc/4.0.0Stefan Eßer2021-04-061-21/+35
|
* bc: Vendor import new version 3.3.3bc/3.3.3Stefan Eßer2021-03-051-19/+19
|
* Vendor import of Gavin Howard's bc-3.3.0vendor/bc/bc-3.3.0Stefan Eßer2021-02-171-8/+17
|
* Vendor import of Gavin Howard's bc version 3.2.6vendor/bc/3.2.6Stefan Eßer2021-01-311-1/+1
|
* Import version 3.2.0vendor/bc/3.2.0Stefan Eßer2020-11-261-3/+4
| | | | | 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-261-4/+3
| | | | Notes: svn path=/vendor/bc/dist/; revision=368063
* Update to version 3.2.0Stefan Eßer2020-11-261-3/+4
| | | | Notes: svn path=/vendor/bc/dist/; revision=368062
* Import version 3.1.4vendor/bc/3.1.4Stefan Eßer2020-08-031-6/+6
| | | | | | | | | | | | | | | | 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
* Update to release 3.1.1vendor/bc/3.1.1Stefan Eßer2020-07-071-0/+1030
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