Add "cdecl" as synonym for "c-stack-cdecl"
This commit is contained in:
parent
e96342820d
commit
d26a96d2bb
18 changed files with 29 additions and 27 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue