提交 6c9a4ba8 编写于 作者: D Daniel Klauer

rustc: Add Type::c_int()

Add c_int for use in the compiler,
assuming i32 for all targets as in libc.
上级 d8873690
......@@ -140,6 +140,10 @@ pub fn isize(ccx: &CrateContext) -> Type {
}
}
pub fn c_int(ccx: &CrateContext) -> Type {
Type::i32(ccx)
}
pub fn int_from_ty(ccx: &CrateContext, t: ast::IntTy) -> Type {
match t {
ast::IntTy::Is => ccx.isize_ty(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册