Merge commit 'bd136720030ebb0b31e6d5a2236b9d0ddac71b94'

usr.bin/bc: update to version 4.0.1

This update adds a flush() of the output buffer to the bc print command.
This commit is contained in:
Stefan Eßer 2021-04-25 08:42:31 +02:00
commit 8ea9013512
6 changed files with 18 additions and 1 deletions

3
contrib/bc/.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
*.vcxproj eol=crlf
*.vcxproj.filters eol=crlf
*.sln eol= crlf

View file

@ -68,3 +68,7 @@ core.*
cscope*.out
tags
*.vcxproj.user
Debug/*
Release/*

View file

@ -1,5 +1,10 @@
# News
## 4.0.1
This is a production release that only adds one thing: flushing output when it
is printed with a print statement.
## 4.0.0
This is a production release with many fixes, a new command-line option, and a

View file

@ -19,6 +19,10 @@ functionality is unnecessary.
For more information, see the `dc`'s full manual.
This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`.
For more information, see the full manual for `bcl`.
This `bc` is Free and Open Source Software (FOSS). It is offered under the BSD
2-clause License. Full license text may be found in the [`LICENSE.md`][4] file.

View file

@ -36,6 +36,6 @@
#ifndef BC_VERSION_H
#define BC_VERSION_H
#define VERSION 4.0.0
#define VERSION 4.0.1
#endif // BC_VERSION_H

View file

@ -2034,6 +2034,7 @@ void bc_program_exec(BcProgram *p) {
case BC_INST_PRINT_STR:
{
bc_program_print(p, inst, 0);
bc_file_flush(&vm.fout, bc_flush_save);
break;
}