~sircmpwn/hare-tar

2327308f802d07f3943a874d4bebd3089cf1a776 — Alexey Yerin 5 months ago eb0412e
strconv: Merge functions with their -b versions

This is a breaking change: all calls to stoub and similar functions should drop
the -b suffix.

Signed-off-by: Alexey Yerin <yyp@disroot.org>
1 files changed, 2 insertions(+), 2 deletions(-)

M reader.ha
M reader.ha => reader.ha +2 -2
@@ 187,7 187,7 @@ fn readstr(rd: *memio::stream, ln: size) str = {

fn readoct(rd: *memio::stream, ln: size) (uint | invalid) = {
	const string = readstr(rd, ln);
	match (strconv::stoub(string, strconv::base::OCT)) {
	match (strconv::stou(string, strconv::base::OCT)) {
	case let u: uint =>
		return u;
	case =>


@@ 197,7 197,7 @@ fn readoct(rd: *memio::stream, ln: size) (uint | invalid) = {

fn readsize(rd: *memio::stream, ln: size) (size | invalid) = {
	const string = readstr(rd, ln);
	match (strconv::stozb(string, strconv::base::OCT)) {
	match (strconv::stoz(string, strconv::base::OCT)) {
	case let z: size =>
		return z;
	case =>