Commit e03042ec authored by fl0l0u's avatar fl0l0u Committed by GitHub

Update print.c

Strings not containing a newline are not printed synchronously
ex. bin/mruby -e '["a", "b", "c", "\n", "d", "e", "f", "\n"].each {|e| print e ; usleep 200000}'
parent 476af3c6
......@@ -33,6 +33,7 @@ printstr(mrb_state *mrb, mrb_value obj)
} else
#endif
fwrite(RSTRING_PTR(obj), RSTRING_LEN(obj), 1, stdout);
fflush(stdout);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment