Vendor import of Gavin D. Howards bc version 4.0.1

This commit is contained in:
Stefan Eßer 2021-04-25 08:36:50 +02:00
parent 7a590c074c
commit bd13672003
6 changed files with 18 additions and 1 deletions

3
.gitattributes vendored Normal file
View File

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

4
.gitignore vendored
View File

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

View File

@ -1,5 +1,10 @@
# News # 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 ## 4.0.0
This is a production release with many fixes, a new command-line option, and a 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. 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 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. 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 #ifndef BC_VERSION_H
#define BC_VERSION_H #define BC_VERSION_H
#define VERSION 4.0.0 #define VERSION 4.0.1
#endif // BC_VERSION_H #endif // BC_VERSION_H

View File

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