Switched to patch-based builder, based on weekly

This commit is contained in:
Jef Roosens 2022-01-27 19:18:11 +01:00
commit 78e343fae2
Signed by untrusted user: Jef Roosens
GPG key ID: 955C0660072F691F
15 changed files with 177 additions and 49 deletions

View file

@ -143,16 +143,17 @@ pub fn read_pkg(pkg_path string) ?Pkg {
// TODO can this unsafe block be avoided?
buf = unsafe { malloc(size) }
defer {
unsafe {
free(buf)
}
}
C.archive_read_data(a, buf, size)
unsafe {
println(cstring_to_vstring(buf))
}
pkg_info = parse_pkg_info_string(unsafe { cstring_to_vstring(buf) }) ?
unsafe {
free(buf)
}
} else {
C.archive_read_data_skip(a)
}