Finish de-exporting cast, mutable, flate, repr, cleanup, reflect. Part of #3583.
This commit is contained in:
parent
24265b1598
commit
4eb5177d8c
@ -2,7 +2,6 @@
|
||||
|
||||
#[abi = "rust-intrinsic"]
|
||||
extern mod rusti {
|
||||
#[legacy_exports];
|
||||
fn forget<T>(-x: T);
|
||||
fn reinterpret_cast<T, U>(e: T) -> U;
|
||||
}
|
||||
|
@ -311,17 +311,11 @@ mod path;
|
||||
mod rand;
|
||||
mod run;
|
||||
mod sys;
|
||||
#[legacy_exports]
|
||||
mod cast;
|
||||
#[legacy_exports]
|
||||
mod mutable;
|
||||
#[legacy_exports]
|
||||
mod flate;
|
||||
#[legacy_exports]
|
||||
mod repr;
|
||||
#[legacy_exports]
|
||||
mod cleanup;
|
||||
#[legacy_exports]
|
||||
mod reflect;
|
||||
|
||||
// Modules supporting compiler-generated code
|
||||
|
@ -11,8 +11,6 @@ Simple compression
|
||||
use libc::{c_void, size_t, c_int};
|
||||
|
||||
extern mod rustrt {
|
||||
#[legacy_exports];
|
||||
|
||||
fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void,
|
||||
src_buf_len: size_t,
|
||||
pout_len: *size_t,
|
||||
@ -29,7 +27,7 @@ const lz_fast : c_int = 0x1; // LZ with only one probe
|
||||
const lz_norm : c_int = 0x80; // LZ with 128 probes, "normal"
|
||||
const lz_best : c_int = 0xfff; // LZ with 4095 probes, "best"
|
||||
|
||||
fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
|
||||
pub fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
|
||||
do vec::as_const_buf(bytes) |b, len| {
|
||||
unsafe {
|
||||
let mut outsz : size_t = 0;
|
||||
@ -47,7 +45,7 @@ fn deflate_bytes(bytes: &[const u8]) -> ~[u8] {
|
||||
}
|
||||
}
|
||||
|
||||
fn inflate_bytes(bytes: &[const u8]) -> ~[u8] {
|
||||
pub fn inflate_bytes(bytes: &[const u8]) -> ~[u8] {
|
||||
do vec::as_const_buf(bytes) |b, len| {
|
||||
unsafe {
|
||||
let mut outsz : size_t = 0;
|
||||
|
@ -13,7 +13,7 @@ use libc::c_void;
|
||||
* data structure, and implement both `MovePtr` for it as well as `TyVisitor`;
|
||||
* then build a MovePtrAdaptor wrapped around your struct.
|
||||
*/
|
||||
trait MovePtr {
|
||||
pub trait MovePtr {
|
||||
fn move_ptr(adjustment: fn(*c_void) -> *c_void);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user