Emitting a \n after printing variables in Monicelli runtime.

This commit is contained in:
Stefano Sanfilippo 2015-03-07 19:44:34 +01:00
parent d802eddd71
commit 354654daec

View File

@ -27,7 +27,7 @@
void __Monicelli_main(); void __Monicelli_main();
void __Monicelli_putBool(__Monicelli_Bool value) { void __Monicelli_putBool(__Monicelli_Bool value) {
puts(value? "vero": "falso"); puts(value? "vero\n": "falso\n");
} }
void __Monicelli_putChar(__Monicelli_Char value) { void __Monicelli_putChar(__Monicelli_Char value) {
@ -35,15 +35,15 @@ void __Monicelli_putChar(__Monicelli_Char value) {
} }
void __Monicelli_putInt(__Monicelli_Int value) { void __Monicelli_putInt(__Monicelli_Int value) {
printf("%ld", value); printf("%ld\n", value);
} }
void __Monicelli_putFloat(__Monicelli_Float value) { void __Monicelli_putFloat(__Monicelli_Float value) {
printf("%f", value); printf("%f\n", value);
} }
void __Monicelli_putDouble(__Monicelli_Double value) { void __Monicelli_putDouble(__Monicelli_Double value) {
printf("%lf", value); printf("%lf\n", value);
} }
__Monicelli_Bool __Monicelli_getBool() { __Monicelli_Bool __Monicelli_getBool() {