From d26a96d2bbf78dcb4b5b43bf95137731ad0db286 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 9 Nov 2011 16:04:07 -0800 Subject: Add "cdecl" as synonym for "c-stack-cdecl" --- 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 693625955f1..5ca1e46aaed 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -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") { -- cgit 1.4.1-3-g733a5