mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Rename "c-stack-stdcall" ABI to "stdcall"
This commit is contained in:
parent
b7ab28b50f
commit
0d9e32d70d
@ -2010,8 +2010,6 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
|
|||||||
abi = ast::native_abi_rust_intrinsic;
|
abi = ast::native_abi_rust_intrinsic;
|
||||||
} else if str::eq(t, "cdecl") {
|
} else if str::eq(t, "cdecl") {
|
||||||
abi = ast::native_abi_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") {
|
} else if str::eq(t, "stdcall") {
|
||||||
abi = ast::native_abi_stdcall;
|
abi = ast::native_abi_stdcall;
|
||||||
} else {
|
} else {
|
||||||
|
@ -43,7 +43,7 @@ type DWORD = u32;
|
|||||||
type HMODULE = uint;
|
type HMODULE = uint;
|
||||||
type LPTSTR = str::sbuf;
|
type LPTSTR = str::sbuf;
|
||||||
|
|
||||||
native "c-stack-stdcall" mod kernel32 {
|
native "stdcall" mod kernel32 {
|
||||||
fn GetEnvironmentVariableA(n: str::sbuf, v: str::sbuf, nsize: uint) ->
|
fn GetEnvironmentVariableA(n: str::sbuf, v: str::sbuf, nsize: uint) ->
|
||||||
uint;
|
uint;
|
||||||
fn SetEnvironmentVariableA(n: str::sbuf, v: str::sbuf) -> int;
|
fn SetEnvironmentVariableA(n: str::sbuf, v: str::sbuf) -> int;
|
||||||
|
Loading…
Reference in New Issue
Block a user