M format/xml/parser.ha => format/xml/parser.ha +2 -1
@@ 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)?) {
M format/xml/types.ha => format/xml/types.ha +4 -3
@@ 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 {