From f7d0c1cec3d65131cf4da273e6909ee97682dc42 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 28 Sep 2011 12:58:03 -0700 Subject: rustc: Add a new "C stack cdecl" native ABI --- src/comp/syntax/parse/parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index b2a89a43ec5..8fa705d6418 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2012,7 +2012,11 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item { abi = ast::native_abi_rust_intrinsic; } else if str::eq(t, "x86stdcall") { abi = ast::native_abi_x86stdcall; - } else { p.fatal("unsupported abi: " + t); } + } else if str::eq(t, "c-stack-cdecl") { + abi = ast::native_abi_c_stack_cdecl; + } else { + p.fatal("unsupported abi: " + t); + } } expect_word(p, "mod"); let id = parse_ident(p); -- cgit 1.4.1-3-g733a5