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