Add "cdecl" as synonym for "c-stack-cdecl"

This commit is contained in:
Brian Anderson 2011-11-09 16:04:07 -08:00
parent e96342820d
commit d26a96d2bb
18 changed files with 29 additions and 27 deletions

View file

@ -2010,6 +2010,8 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
abi = ast::native_abi_rust_intrinsic;
} else if str::eq(t, "c-stack-cdecl") {
abi = ast::native_abi_cdecl;
} else if str::eq(t, "cdecl") {
abi = ast::native_abi_cdecl;
} else if str::eq(t, "c-stack-stdcall") {
abi = ast::native_abi_stdcall;
} else if str::eq(t, "stdcall") {

View file

@ -405,7 +405,7 @@ fn print_item(s: ps, &&item: @ast::item) {
word_nbsp(s, "\"rust-intrinsic\"");
}
ast::native_abi_cdecl. {
word_nbsp(s, "\"c-stack-cdecl\"");
word_nbsp(s, "\"cdecl\"");
}
ast::native_abi_stdcall. {
word_nbsp(s, "\"stdcall\"");