aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-04-25 06:42:31 +0000
committerStefan Eßer <se@FreeBSD.org>2021-04-25 06:42:31 +0000
commit8ea9013512494c9f035afa1ffa1e199b44c7904f (patch)
tree74c4e7e9409e84eab2c4a00da2b2cb684b1ff388
parent6993187a8c30e83a408aad631a8d8629d8273c9d (diff)
parentbd136720030ebb0b31e6d5a2236b9d0ddac71b94 (diff)
downloadsrc-8ea9013512494c9f035afa1ffa1e199b44c7904f.tar.gz
src-8ea9013512494c9f035afa1ffa1e199b44c7904f.zip
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.
-rw-r--r--contrib/bc/.gitattributes3
-rw-r--r--contrib/bc/.gitignore4
-rw-r--r--contrib/bc/NEWS.md5
-rw-r--r--contrib/bc/README.md4
-rw-r--r--contrib/bc/include/version.h2
-rw-r--r--contrib/bc/src/program.c1
6 files changed, 18 insertions, 1 deletions
diff --git a/contrib/bc/.gitattributes b/contrib/bc/.gitattributes
new file mode 100644
index 000000000000..22d6e60bce68
--- /dev/null
+++ b/contrib/bc/.gitattributes
@@ -0,0 +1,3 @@
+*.vcxproj eol=crlf
+*.vcxproj.filters eol=crlf
+*.sln eol= crlf
diff --git a/contrib/bc/.gitignore b/contrib/bc/.gitignore
index 5c2bbae866c0..b131d5813764 100644
--- a/contrib/bc/.gitignore
+++ b/contrib/bc/.gitignore
@@ -68,3 +68,7 @@ core.*
cscope*.out
tags
+
+*.vcxproj.user
+Debug/*
+Release/*
diff --git a/contrib/bc/NEWS.md b/contrib/bc/NEWS.md
index 011cb9138912..c66e7b164c8a 100644
--- a/contrib/bc/NEWS.md
+++ b/contrib/bc/NEWS.md
@@ -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
diff --git a/contrib/bc/README.md b/contrib/bc/README.md
index 852c8956a73d..f0dcecf15bde 100644
--- a/contrib/bc/README.md
+++ b/contrib/bc/README.md
@@ -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.
diff --git a/contrib/bc/include/version.h b/contrib/bc/include/version.h
index 7f33df62312e..ab4823bd7c2a 100644
--- a/contrib/bc/include/version.h
+++ b/contrib/bc/include/version.h
@@ -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
diff --git a/contrib/bc/src/program.c b/contrib/bc/src/program.c
index 82735083bd03..c1e61f729d2a 100644
--- a/contrib/bc/src/program.c
+++ b/contrib/bc/src/program.c
@@ -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;
}