From c40d6265ce2ae093b3bb9e15177f60b375a158fa Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 18 Jul 2011 13:14:33 -0700 Subject: Support x86 stdcall convention This allows rust to call the Win32 API --- src/comp/syntax/parse/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 183c9ce0c47..59dbf72f7c5 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2004,6 +2004,8 @@ fn parse_item_native_mod(&parser p, &ast::attribute[] attrs) -> @ast::item { abi = ast::native_abi_llvm; } else if (str::eq(t, "rust-intrinsic")) { abi = ast::native_abi_rust_intrinsic; + } else if (str::eq(t, "x86stdcall")) { + abi = ast::native_abi_x86stdcall; } else { p.fatal("unsupported abi: " + t); fail; } } expect_word(p, "mod"); -- cgit 1.4.1-3-g733a5