From 6965fe4bceea836586bd8e7aa01a92a35b467f78 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 13 Mar 2013 22:25:28 -0400 Subject: Add AbiSet and integrate it into the AST. I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "" fn foo(s: S) -> T { ... } extern "" mod { ... } extern "" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8. --- src/libstd/priority_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/priority_queue.rs') diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index 1fb79fcab28..dd56e413595 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -18,7 +18,7 @@ use core::ptr::addr_of; use core::vec; #[abi = "rust-intrinsic"] -extern "C" mod rusti { +extern "rust-intrinsic" mod rusti { fn move_val_init(dst: &mut T, +src: T); fn init() -> T; } -- cgit 1.4.1-3-g733a5