Remove native "cdecl" ABI
This commit is contained in:
parent
d536bc2c10
commit
4f3f04643f
8 changed files with 5 additions and 16 deletions
|
|
@ -426,7 +426,6 @@ type anon_obj =
|
|||
type _mod = {view_items: [@view_item], items: [@item]};
|
||||
|
||||
tag native_abi {
|
||||
native_abi_cdecl;
|
||||
native_abi_rust_intrinsic;
|
||||
native_abi_x86stdcall;
|
||||
native_abi_c_stack_cdecl;
|
||||
|
|
|
|||
|
|
@ -2003,11 +2003,10 @@ fn parse_native_mod_items(p: parser, native_name: str, abi: ast::native_abi,
|
|||
|
||||
fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
|
||||
let lo = p.get_last_lo_pos();
|
||||
let abi = ast::native_abi_cdecl;
|
||||
let abi = ast::native_abi_c_stack_cdecl;
|
||||
if !is_word(p, "mod") {
|
||||
let t = parse_str(p);
|
||||
if str::eq(t, "cdecl") {
|
||||
} else if str::eq(t, "rust-intrinsic") {
|
||||
if str::eq(t, "rust-intrinsic") {
|
||||
abi = ast::native_abi_rust_intrinsic;
|
||||
} else if str::eq(t, "x86stdcall") {
|
||||
abi = ast::native_abi_x86stdcall;
|
||||
|
|
|
|||
|
|
@ -401,7 +401,6 @@ fn print_item(s: ps, &&item: @ast::item) {
|
|||
ast::item_native_mod(nmod) {
|
||||
head(s, "native");
|
||||
alt nmod.abi {
|
||||
ast::native_abi_cdecl. { word_nbsp(s, "\"cdecl\""); }
|
||||
ast::native_abi_rust_intrinsic. {
|
||||
word_nbsp(s, "\"rust-intrinsic\"");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue