forked from M-Labs/libfringe
free ourselves from the shackles of libstd
This commit is contained in:
parent
a94bc324fe
commit
59e723d099
|
@ -1,5 +1,6 @@
|
|||
use std::simd::u64x2;
|
||||
use std::mem::{size_of, zeroed};
|
||||
use core::prelude::*;
|
||||
use core::simd::u64x2;
|
||||
use core::mem::{size_of, zeroed};
|
||||
|
||||
use stack::Stack;
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
use std::mem::transmute;
|
||||
use std::raw;
|
||||
use core::prelude::*;
|
||||
|
||||
use core::mem::transmute;
|
||||
use core::raw;
|
||||
use alloc::boxed::Box;
|
||||
use fn_box::FnBox;
|
||||
|
||||
use stack::Stack;
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
#![feature(default_type_params, macro_rules)]
|
||||
#![feature(default_type_params, macro_rules, phase, globs)]
|
||||
#![no_std]
|
||||
|
||||
#[phase(plugin, link)]
|
||||
extern crate core;
|
||||
extern crate alloc;
|
||||
extern crate fn_box;
|
||||
|
||||
pub use context::Context;
|
||||
|
||||
mod std { pub use core::fmt; }
|
||||
|
||||
#[macro_escape]
|
||||
mod macros;
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
extern crate libc;
|
||||
use std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable,
|
||||
extern crate std;
|
||||
use self::std::prelude::*;
|
||||
use self::std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable,
|
||||
MapNonStandardFlags};
|
||||
|
||||
extern "C" {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use platform;
|
||||
use std::ptr;
|
||||
use core::ptr;
|
||||
|
||||
pub enum Stack {
|
||||
Native {
|
||||
|
|
Loading…
Reference in New Issue