~sircmpwn/hare-tar

e698b5aee762ed8b061ed0641f8973700a1ca9f5 — Sebastian 1 year, 5 months ago 6d1f55c
Move C string funcs from strings to types::c

Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 2 insertions(+), 2 deletions(-)

M reader.ha
M reader.ha => reader.ha +2 -2
@@ 6,8 6,8 @@ use endian;
use errors;
use io;
use strconv;
use strings;
use strio;
use types::c;

export type reader = struct {
	src: io::handle,


@@ 207,7 207,7 @@ fn readstr(rd: *bufio::memstream, ln: size) str = {
	case io::EOF =>
		abort();
	};
	return strings::fromc(buf: *[*]u8: *const char)!;
	return c::tostr(buf: *[*]u8: *const char)!;
};

fn readoct(rd: *bufio::memstream, ln: size) (uint | invalid) = {