From 2306901e6ec243739a0a08754d5ab93b4738911e Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 24 Jul 2019 16:15:21 +0200 Subject: [PATCH] os.flush_stdout() --- CHANGELOG.md | 1 + vlib/os/os.v | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4288eb0f2..f8e6e18367 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - @ for escaping keywords (e.g. `struct Foo { @type string }`). - Windows Unicode fixes (V can now work with non-ASCII paths etc on Windows). +- Fix mutable args bugs + don't allow primitive arguments to be modified. ## V 0.1.16 diff --git a/vlib/os/os.v b/vlib/os/os.v index f51bbbf10f..0fea036313 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -833,6 +833,10 @@ pub fn file_last_mod_unix(path string) int { fn log(s string) { } +pub fn flush_stdout() { + C.fflush(stdout) +} + pub fn print_backtrace() { /* # void *buffer[100];