From 354654daec871c2338a62821a1dceca6fc5b529d Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sat, 7 Mar 2015 19:44:34 +0100 Subject: [PATCH] Emitting a \n after printing variables in Monicelli runtime. --- Runtime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime.c b/Runtime.c index 9afd4dd..1211d4b 100644 --- a/Runtime.c +++ b/Runtime.c @@ -27,7 +27,7 @@ void __Monicelli_main(); void __Monicelli_putBool(__Monicelli_Bool value) { - puts(value? "vero": "falso"); + puts(value? "vero\n": "falso\n"); } void __Monicelli_putChar(__Monicelli_Char value) { @@ -35,15 +35,15 @@ void __Monicelli_putChar(__Monicelli_Char value) { } void __Monicelli_putInt(__Monicelli_Int value) { - printf("%ld", value); + printf("%ld\n", value); } void __Monicelli_putFloat(__Monicelli_Float value) { - printf("%f", value); + printf("%f\n", value); } void __Monicelli_putDouble(__Monicelli_Double value) { - printf("%lf", value); + printf("%lf\n", value); } __Monicelli_Bool __Monicelli_getBool() {