rustc: Implement C stack stdcall

This commit is contained in:
Patrick Walton 2011-10-03 13:59:38 -07:00
parent 9be0dc1250
commit 968b66ad40
7 changed files with 19 additions and 2 deletions

View file

@ -2014,6 +2014,8 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
abi = ast::native_abi_x86stdcall;
} 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;
} else {
p.fatal("unsupported abi: " + t);
}