]> git.donarmstrong.com Git - lilypond.git/commit
Flush all ports after each file, flush stdout after displaying all options
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 3 Sep 2011 23:50:16 +0000 (01:50 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 10 Sep 2011 09:20:55 +0000 (11:20 +0200)
commitd6bfed981f663c440475b56995c7f965af16589d
treeca074e85d4b9dd0f5f0c9a0d0ea4c18666c4259b
parent6444f6a956fb0b1fe8c1a307a1a14abd08f6dc5f
Flush all ports after each file, flush stdout after displaying all options

So far, the output of the safe.ly regtest showed up randomly
in some later regtest, because stdout was buffered when redirected
to a file.
This patch flushes all ports after each processed file (only relevant
when multiple files are processed at once).

Unfortunately, it seems stdout is not an open Scheme port when
Scheme doesn't print anything to stdout. So, when displaying all
options, we have to flush stdout directly after printing all
options.
lily/program-option-scheme.cc
scm/lily.scm