From bd136720030ebb0b31e6d5a2236b9d0ddac71b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Sun, 25 Apr 2021 08:36:50 +0200 Subject: [PATCH] Vendor import of Gavin D. Howards bc version 4.0.1 --- .gitattributes | 3 +++ .gitignore | 4 ++++ NEWS.md | 5 +++++ README.md | 4 ++++ include/version.h | 2 +- src/program.c | 1 + 6 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .gitattributes 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; }