~sircmpwn/hare-dev

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 hare-xml] change dynamic_stream to stream due to stdlib change

Details
Message ID
<20220422154634.25485-1-chris@red-oxide.org>
DKIM signature
missing
Download raw message
Patch: +6 -4
Signed-off-by: Chris Palmer <chris@red-oxide.org>
---
 format/xml/parser.ha | 3 ++-
 format/xml/types.ha  | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/format/xml/parser.ha b/format/xml/parser.ha
index af8f9a5..dd5226d 100644
--- a/format/xml/parser.ha
+++ b/format/xml/parser.ha
@@ -1,5 +1,6 @@
// License: MPL-2.0
// (c) 2022 Alexey Yerin <yyp@disroot.org>
// (c) 2022 Chris Palmer <chris@red-oxide.org>
// (c) 2021 Drew DeVault <sir@cmpwn.com>
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
// (c) 2022 Sebastian <sebastian@sebsite.pw>
@@ -400,7 +401,7 @@ fn scan_namedent(par: *parser) (rune | error) = {
	return par.line: syntaxerr;
};

fn scan_name(par: *parser, buf: *strio::dynamic_stream) (str | error) = {
fn scan_name(par: *parser, buf: *strio::stream) (str | error) = {
	strio::reset(buf);

	const rn = match (bufio::scanrune(par.in)?) {
diff --git a/format/xml/types.ha b/format/xml/types.ha
index db6255c..6c340d4 100644
--- a/format/xml/types.ha
+++ b/format/xml/types.ha
@@ -1,5 +1,6 @@
// License: MPL-2.0
// (c) 2022 Alexey Yerin <yyp@disroot.org>
// (c) 2022 Chris Palmer <chris@red-oxide.org>
// (c) 2021 Drew DeVault <sir@cmpwn.com>
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
use bufio;
@@ -18,9 +19,9 @@ export type parser = struct {
	line: size,

	// strio buffers:
	namebuf: strio::dynamic_stream,
	entbuf: strio::dynamic_stream,
	textbuf: strio::dynamic_stream,
	namebuf: strio::stream,
	entbuf: strio::stream,
	textbuf: strio::stream,
};

export type state = enum {
-- 
2.35.2
Details
Message ID
<CJHI39BVZ641.1WL5ZDJWIHTSC@taiga>
In-Reply-To
<20220422154634.25485-1-chris@red-oxide.org> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hare-xml
   407b4bc..2214874  master -> master
Reply to thread Export thread (mbox)