summaryrefslogtreecommitdiff
path: root/lib/inifile
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
commit8672ce0c95bf5d6e6b721694bd0e5944d4af556b (patch)
treead54ebc4603c410cd9eb0b2f07cf133a701ff185 /lib/inifile
parent7cc7912b2834f9f5dde95412e5302f13fb82042c (diff)
downloadmc-8672ce0c95bf5d6e6b721694bd0e5944d4af556b.tar.gz
Replace bio.status(@t) with std.result(@t, bio.err)
It's more consistent.
Diffstat (limited to 'lib/inifile')
-rw-r--r--lib/inifile/parse.myr6
-rw-r--r--lib/inifile/write.myr2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/inifile/parse.myr b/lib/inifile/parse.myr
index cd78813..6b9be91 100644
--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -54,13 +54,13 @@ const loadf = {fd
f = bio.mkfile(fd, bio.Rd)
while true
match bio.readln(f)
- | `bio.Eof:
+ | `std.Err `bio.Eof:
break
- | `bio.Ok ln:
+ | `std.Ok ln:
if !parseline(p, ini, ln)
break
;;
- | `bio.Err e:
+ | `std.Err e:
p.err = `std.Some `Fileerr
break
;;
diff --git a/lib/inifile/write.myr b/lib/inifile/write.myr
index 1c7071d..ab4042c 100644
--- a/lib/inifile/write.myr
+++ b/lib/inifile/write.myr
@@ -53,7 +53,7 @@ const writeini = {f, ini
val = std.htgetv(ini.elts, (sect, key), "")
match bio.put(f, "\t{} = {}\n", key, val)
- | `bio.Err e: -> false
+ | `std.Err e: -> false
| _:
;;
;;