librustc: Remove pub extern and priv extern from the language.

Place `pub` or `priv` on individual items instead.
This commit is contained in:
Patrick Walton 2013-07-18 19:08:57 -07:00
parent bb8ca1f52c
commit 06594ed96b
85 changed files with 818 additions and 694 deletions

View file

@ -41,8 +41,8 @@ pub fn at_exit(f: ~fn()) {
mod rustrt {
use libc::c_void;
pub extern {
fn rust_register_exit_function(runner: *c_void, f: ~~fn());
extern {
pub fn rust_register_exit_function(runner: *c_void, f: ~~fn());
}
}

View file

@ -158,7 +158,7 @@ pub trait TyVisitor {
}
#[abi = "rust-intrinsic"]
pub extern "rust-intrinsic" {
extern "rust-intrinsic" {
/// Atomic compare and exchange, sequentially consistent.
pub fn atomic_cxchg(dst: &mut int, old: int, src: int) -> int;

View file

@ -26,22 +26,23 @@ pub mod rustrt {
use unstable::lang::rust_task;
use libc::{c_char, uintptr_t};
pub extern {
extern {
#[rust_stack]
unsafe fn rust_upcall_malloc(td: *c_char, size: uintptr_t) -> *c_char;
pub unsafe fn rust_upcall_malloc(td: *c_char, size: uintptr_t)
-> *c_char;
#[rust_stack]
unsafe fn rust_upcall_free(ptr: *c_char);
pub unsafe fn rust_upcall_free(ptr: *c_char);
#[fast_ffi]
unsafe fn rust_upcall_malloc_noswitch(td: *c_char,
size: uintptr_t)
-> *c_char;
pub unsafe fn rust_upcall_malloc_noswitch(td: *c_char,
size: uintptr_t)
-> *c_char;
#[rust_stack]
fn rust_try_get_task() -> *rust_task;
pub fn rust_try_get_task() -> *rust_task;
fn rust_dbg_breakpoint();
pub fn rust_dbg_breakpoint();
}
}