~tomterl/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
1

[PATCH thp] Build thp with Hare dev+9fec2b33

Carlos Une <une@fastmail.fm>
Details
Message ID
<20230814031349.14602-1-une@fastmail.fm>
DKIM signature
missing
Download raw message
Patch: +4 -4
---
 mods/+uptime.ha | 6 +++---
 term/shell.ha   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mods/+uptime.ha b/mods/+uptime.ha
index 3763024..8d3e3b8 100644
--- a/mods/+uptime.ha
+++ b/mods/+uptime.ha
@@ -14,7 +14,7 @@ use os;
use strconv;
use strings;
use strings::template;
use strio;
use memio;

@init fn register_uptime() void = {
	register("uptime", &mod_uptime);
@@ -73,11 +73,11 @@ export fn mod_uptime(pe: *env::env) str = {
	};
	defer template::finish(&template);

	let sink = strio::dynamic();
	let sink = memio::dynamic();
	match (template::execute(&template, &sink, ("m", days/30), ("D", days),
		("d", days % 30), ("H", hours), ("M", minutes), ("S", seconds))) {
	case size =>
		return strio::string(&sink);
		return memio::string(&sink)!;
	case io::error =>
		return strings::dup("template::execute() failed");
	};
diff --git a/term/shell.ha b/term/shell.ha
index 98c9305..977ba09 100644
--- a/term/shell.ha
+++ b/term/shell.ha
@@ -31,7 +31,7 @@ export fn wrapstr(s: str, pe: *env::env) str = {
};

export fn wraps(s: style, pe: *env::env) str = {
	const ps = strings::concat(s.props...);
	const ps = strings::concat(s.props: []str...);
	defer free(ps);
	const ps = strings::concat(s.fg, s.bg, ps);
	defer free (ps);
-- 
2.30.2
Details
Message ID
<87y1icx50y.fsf@tomsdiner.org>
In-Reply-To
<20230814031349.14602-1-une@fastmail.fm> (view parent)
DKIM signature
missing
Download raw message
Thanks!
Reply to thread Export thread (mbox)