mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-02 17:31:16 -03:00
normalize use of stdio functions taking a stream
We should never use stdio functions that use stdout implicitly. Saving a few characters isn't worth the inconsistency. Too, using the forms such as `fwprintf()` which take an explicit stream makes it easier to find the places we write to stdout versus stderr. Fixes #3728
This commit is contained in:
@@ -489,7 +489,7 @@ void tokenizer_t::tok_next() {
|
||||
}
|
||||
|
||||
if (!this->has_next) {
|
||||
// wprintf( L"EOL\n" );
|
||||
// fwprintf(stdout, L"EOL\n" );
|
||||
this->last_type = TOK_END;
|
||||
return;
|
||||
}
|
||||
@@ -666,7 +666,7 @@ bool move_word_state_machine_t::consume_char_path_components(wchar_t c) {
|
||||
s_end
|
||||
};
|
||||
|
||||
// wprintf(L"state %d, consume '%lc'\n", state, c);
|
||||
// fwprintf(stdout, L"state %d, consume '%lc'\n", state, c);
|
||||
bool consumed = false;
|
||||
while (state != s_end && !consumed) {
|
||||
switch (state) {
|
||||
|
||||
Reference in New Issue
Block a user