~blainsmith/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH hare-clrfmt] printfln,errorfln: call fprintfln instead of fprintf

Carlos Une <une@fastmail.fm>
Details
Message ID
<20231122022952.12384-1-une@fastmail.fm>
DKIM signature
missing
Download raw message
Patch: +2 -2
Signed-off-by: Carlos Une <une@fastmail.fm>
---
 clrfmt/clrfmt.ha | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clrfmt/clrfmt.ha b/clrfmt/clrfmt.ha
index d5f7caa..10e66d3 100644
--- a/clrfmt/clrfmt.ha
+++ b/clrfmt/clrfmt.ha
@@ -61,13 +61,13 @@ export fn printf(s: style, c: color, fmt: str, args: fmt::field...) (io::error |
    fprintf(s: style, c: color, os::stdout, fmt, args...);

export fn printfln(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
    fprintf(s: style, c: color, os::stdout, fmt, args...);
    fprintfln(s: style, c: color, os::stdout, fmt, args...);

export fn errorf(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
    fprintf(s: style, c: color, os::stderr, fmt, args...);

export fn errorfln(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
    fprintf(s: style, c: color, os::stderr, fmt, args...);
    fprintfln(s: style, c: color, os::stderr, fmt, args...);

export fn asprintf(s: style, c: color, fmt: str, args: fmt::field...) str = {
    let buf = memio::dynamic();
-- 
2.39.2
Reply to thread Export thread (mbox)