From baf990e65c62f42e45fe25ac385db9536d3f1788 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Apr 2025 16:49:38 -0400 Subject: Update stdlib to use `print` instead of `printf` in all cases. This means bringing in fpconv to do float-to-string conversion and a few updates to integer and number methods for string formatting. --- src/stdlib/metamethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/metamethods.c') diff --git a/src/stdlib/metamethods.c b/src/stdlib/metamethods.c index a7c9424b..ab7bb26e 100644 --- a/src/stdlib/metamethods.c +++ b/src/stdlib/metamethods.c @@ -104,7 +104,7 @@ public void generic_deserialize(List_t bytes, void *outval, const TypeInfo_t *ty public int generic_print(const void *obj, bool colorize, const TypeInfo_t *type) { Text_t text = generic_as_text(obj, colorize, type); - return Text$print(stdout, text) + printf("\n"); + return Text$print(stdout, text) + fputc('\n', stdout); } __attribute__((noreturn)) -- cgit v1.2.3