Skip to content
Merged
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
6 changes: 3 additions & 3 deletions libcc2rs/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ pub fn cerr() -> Ptr<std::fs::File> {
/// # Safety
///
/// The caller must ensure that the returned pointer is not used after the
// thread finishes.
/// thread finishes.
pub unsafe fn cin_unsafe() -> *mut std::fs::File {
UNSAFE_STDIN.with(UnsafeCell::get)
}

/// # Safety
///
/// The caller must ensure that the returned pointer is not used after the
// thread finishes.
/// thread finishes.
pub unsafe fn cout_unsafe() -> *mut std::fs::File {
UNSAFE_STDOUT.with(UnsafeCell::get)
}

/// # Safety
///
/// The caller must ensure that the returned pointer is not used after the
// thread finishes.
/// thread finishes.
pub unsafe fn cerr_unsafe() -> *mut std::fs::File {
UNSAFE_STDERR.with(UnsafeCell::get)
}
Expand Down
Loading