提交 cef86613 编写于 作者: V Valerii Hiora

Fixed: iOS build was broken because of deprecated APIs

上级 2f9669c7
......@@ -1173,11 +1173,9 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
let utf_c_str: *const libc::c_char =
mem::transmute(objc_msgSend(tmp, utf8Sel));
let s = CString::new(utf_c_str, false);
if s.is_not_null() {
res.push(s.as_bytes_no_nul().to_vec())
}
}
}
res
}
......
......@@ -278,9 +278,10 @@ fn backtrace(buf: *mut *mut libc::c_void,
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
// skipping the first one as it is write itself
result::fold_(range(1, cnt).map(|i| {
let iter = range(1, cnt).map(|i| {
print(w, i as int, buf[i])
}))
});
result::fold(iter, (), |_, _| ())
}
#[cfg(not(target_os = "ios", target_arch = "arm"))]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册