mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Merge pull request #1334 from boggle/kmath
preparing for removing math from std
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
import sys;
|
||||
import task;
|
||||
|
||||
import core::ctypes;
|
||||
|
||||
export send;
|
||||
export recv;
|
||||
export chan;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
File system manipulation
|
||||
*/
|
||||
|
||||
import core::ctypes;
|
||||
import core::vec;
|
||||
import core::option;
|
||||
import os;
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
import core::option;
|
||||
import core::result;
|
||||
import ctypes::fd_t;
|
||||
import ctypes::c_int;
|
||||
import core::ctypes::fd_t;
|
||||
import core::ctypes::c_int;
|
||||
|
||||
#[abi = "cdecl"]
|
||||
native mod rustrt {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import core::option;
|
||||
import ctypes::*;
|
||||
import core::ctypes::*;
|
||||
|
||||
export libc;
|
||||
export libc_constants;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import core::option;
|
||||
import ctypes::*;
|
||||
import core::ctypes::*;
|
||||
|
||||
export libc;
|
||||
export libc_constants;
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@
|
||||
|
||||
// These two must match in width according to architecture
|
||||
|
||||
import ctypes::m_float;
|
||||
import ctypes::c_int;
|
||||
import ptr;
|
||||
import core::mtypes::m_float;
|
||||
import core::ctypes::c_int;
|
||||
import core::ptr;
|
||||
import m_float = math_f64;
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -1103,7 +1103,7 @@ fn concat2(left: @node, right: @node) -> @node {
|
||||
right : right,
|
||||
char_len: char_len(left) + char_len(right),
|
||||
byte_len: byte_len(left) + byte_len(right),
|
||||
height: math::max(height(left), height(right)) + 1u
|
||||
height: float::max(height(left), height(right)) + 1u
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
export idle_init, idle_start;
|
||||
export idle_new;
|
||||
|
||||
import core::ctypes;
|
||||
|
||||
#[link_name = "rustrt"]
|
||||
native mod uv {
|
||||
fn rust_uv_loop_new() -> *loop_t;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import core::option;
|
||||
import ctypes::*;
|
||||
import core::ctypes::*;
|
||||
|
||||
#[abi = "cdecl"]
|
||||
#[link_name = ""] // FIXME remove after #[nolink] is snapshotted
|
||||
|
||||
Reference in New Issue
Block a user