aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-05-06 18:03:27 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-06 18:03:27 +0000
commit985f732003f483fe138b5332dd96d006e0ae77dc (patch)
tree439eb6a5bda538c326a2a854b852c36389dce04d
parentcf26f95f0658137b28be33145febb3456c94646a (diff)
parentc6b8df35d274df76f521f4f5889adf2586fce432 (diff)
downloadbc-985f732003f483fe138b5332dd96d006e0ae77dc.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/bc/+/1697793 Change-Id: I02709b143520a2c4e3f25e85eccd2ded41ce9ed1
-rw-r--r--METADATA6
-rw-r--r--NEWS.md5
-rw-r--r--README.md4
-rw-r--r--include/version.h2
-rw-r--r--src/program.c1
5 files changed, 14 insertions, 4 deletions
diff --git a/METADATA b/METADATA
index ada457a7..26039401 100644
--- a/METADATA
+++ b/METADATA
@@ -5,11 +5,11 @@ third_party {
type: GIT
value: "https://github.com/gavinhoward/bc"
}
- version: "4.0.0"
+ version: "4.0.1"
license_type: NOTICE
last_upgrade_date {
year: 2021
- month: 4
- day: 9
+ month: 5
+ day: 5
}
}
diff --git a/NEWS.md b/NEWS.md
index 011cb913..c66e7b16 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 852c8956..f0dcecf1 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 7f33df62..ab4823bd 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 82735083..c1e61f72 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;
}