Skip to content

Commit d1ad879

Browse files
committed
---
yaml --- r: 24233 b: refs/heads/master c: 3254bee h: refs/heads/master i: 24231: 87d90f8 v: v3
1 parent b81e824 commit d1ad879

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 51152ccf9dd5830c323ec4e9047c277d1b9292d1
2+
refs/heads/master: 3254bee55e38c756818bca6a8d65ff8fad641e9a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/os.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub fn fill_charp_buf(f: fn(*mut c_char, size_t) -> bool)
6868
mod win32 {
6969
use libc::DWORD;
7070

71-
fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD)
71+
pub fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD)
7272
-> Option<~str> {
7373
let mut n = tmpbuf_sz as DWORD;
7474
let mut res = None;
@@ -93,7 +93,7 @@ mod win32 {
9393
return res;
9494
}
9595

96-
fn as_utf16_p<T>(s: &str, f: fn(*u16) -> T) -> T {
96+
pub fn as_utf16_p<T>(s: &str, f: fn(*u16) -> T) -> T {
9797
let mut t = str::to_utf16(s);
9898
// Null terminate before passing on.
9999
t += ~[0u16];
@@ -557,7 +557,7 @@ pub fn make_dir(p: &Path, mode: c_int) -> bool {
557557
// FIXME: turn mode into something useful? #2623
558558
do as_utf16_p(p.to_str()) |buf| {
559559
libc::CreateDirectoryW(buf, unsafe {
560-
unsafe::reinterpret_cast(&0)
560+
cast::reinterpret_cast(&0)
561561
})
562562
!= (0 as BOOL)
563563
}

0 commit comments

Comments
 (0)