Skip to content

preparing for removing math from std #1334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/libstd/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Example:
import sys;
import task;

import core::ctypes;

export send;
export recv;
export chan;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Module: fs
File system manipulation
*/

import core::ctypes;
import core::vec;
import core::option;
import os;
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Basic input/output

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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/linux_os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TODO: Restructure and document
*/

import core::option;
import ctypes::*;
import core::ctypes::*;

export libc;
export libc_constants;
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/macos_os.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import core::option;
import ctypes::*;
import core::ctypes::*;

export libc;
export libc_constants;
Expand Down
6 changes: 3 additions & 3 deletions src/libstd/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import f32 = math_f32;

// 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;

/*
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/rope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ mod 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
})
}

Expand Down
2 changes: 2 additions & 0 deletions src/libstd/uv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export loop_new, loop_delete, default_loop, run, unref;
export idle_init, idle_start;
export idle_new;

import core::ctypes;

#[link_name = "rustrt"]
native mod uv {
fn rust_uv_loop_new() -> *loop_t;
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/win32_os.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import core::option;
import ctypes::*;
import core::ctypes::*;

#[abi = "cdecl"]
#[link_name = ""] // FIXME remove after #[nolink] is snapshotted
Expand Down