rustc: Rename native_abi_c_stack_stdcall to native_abi_stdcall

This commit is contained in:
Brian Anderson 2011-11-09 15:58:53 -08:00
parent c7f0ca6063
commit 10c35959e7
7 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ fn visit_item(e: env, i: @ast::item) {
alt i.node {
ast::item_native_mod(m) {
if m.abi != ast::native_abi_c_stack_cdecl &&
m.abi != ast::native_abi_c_stack_stdcall {
m.abi != ast::native_abi_stdcall {
ret;
}
let cstore = e.sess.get_cstore();

View File

@ -261,7 +261,7 @@ fn parse_ty(st: @pstate, sd: str_def) -> ty::t {
alt next(st) as char {
'i' { abi = ast::native_abi_rust_intrinsic; }
'C' { abi = ast::native_abi_c_stack_cdecl; }
'S' { abi = ast::native_abi_c_stack_stdcall; }
'S' { abi = ast::native_abi_stdcall; }
}
let func = parse_ty_fn(st, sd);
ret ty::mk_native_fn(st.tcx, abi, func.args, func.ty);

View File

@ -144,7 +144,7 @@ fn enc_sty(w: io::writer, cx: @ctxt, st: ty::sty) {
alt abi {
native_abi_rust_intrinsic. { w.write_char('i'); }
native_abi_c_stack_cdecl. { w.write_char('C'); }
native_abi_c_stack_stdcall. { w.write_char('S'); }
native_abi_stdcall. { w.write_char('S'); }
}
enc_ty_fn(w, cx, args, out, return_val, []);
}

View File

@ -5598,7 +5598,7 @@ pure fn native_abi_requires_pair(abi: ast::native_abi) -> bool {
alt abi {
ast::native_abi_rust_intrinsic. { ret true; }
ast::native_abi_c_stack_cdecl. |
ast::native_abi_c_stack_stdcall. { ret false; }
ast::native_abi_stdcall. { ret false; }
}
}
@ -5647,7 +5647,7 @@ fn register_native_fn(ccx: @crate_ctxt, sp: span, path: [str], name: str,
ccx.item_symbols.insert(id, name);
ret;
}
ast::native_abi_c_stack_stdcall. {
ast::native_abi_stdcall. {
// The name of stdcall functions depend on their argument count
// so we have to declare them correctly
let fn_args_tys = ty::ty_fn_args(ccx.tcx, fn_type);

View File

@ -428,7 +428,7 @@ type _mod = {view_items: [@view_item], items: [@item]};
tag native_abi {
native_abi_rust_intrinsic;
native_abi_c_stack_cdecl;
native_abi_c_stack_stdcall;
native_abi_stdcall;
}
type native_mod =

View File

@ -2011,7 +2011,7 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
} else if str::eq(t, "c-stack-cdecl") {
abi = ast::native_abi_c_stack_cdecl;
} else if str::eq(t, "c-stack-stdcall") {
abi = ast::native_abi_c_stack_stdcall;
abi = ast::native_abi_stdcall;
} else {
p.fatal("unsupported abi: " + t);
}

View File

@ -407,7 +407,7 @@ fn print_item(s: ps, &&item: @ast::item) {
ast::native_abi_c_stack_cdecl. {
word_nbsp(s, "\"c-stack-cdecl\"");
}
ast::native_abi_c_stack_stdcall. {
ast::native_abi_stdcall. {
word_nbsp(s, "\"c-stack-stdcall\"");
}
}