We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c981e commit 210e40dCopy full SHA for 210e40d
src/stdlib/standard_library.rs
@@ -69,11 +69,13 @@ pub fn print_builtin(env: &mut Environment<Expression>) -> Statement {
69
.map(|(_, v)| v)
70
.unwrap_or(Expression::CString("".to_string()));
71
match value {
72
- Expression::CString(s) => println!("{}", s),
73
- Expression::CInt(i) => println!("{}", i),
74
- Expression::CReal(f) => println!("{}", f),
75
- _ => println!("{:?}", value),
+ Expression::CString(s) => print!("{}", s),
+ Expression::CInt(i) => print!("{}", i),
+ Expression::CReal(f) => print!("{}", f),
+ _ => print!("{:?}", value),
76
}
77
+ use std::io::{self, Write};
78
+ io::stdout().flush().unwrap();
79
Statement::Return(Box::new(Expression::CVoid))
80
81
0 commit comments