File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 51152ccf9dd5830c323ec4e9047c277d1b9292d1
4
+ refs/heads/snap-stage3: 3254bee55e38c756818bca6a8d65ff8fad641e9a
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pub fn fill_charp_buf(f: fn(*mut c_char, size_t) -> bool)
68
68
mod win32 {
69
69
use libc:: DWORD ;
70
70
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 )
72
72
-> Option < ~str > {
73
73
let mut n = tmpbuf_sz as DWORD ;
74
74
let mut res = None ;
@@ -93,7 +93,7 @@ mod win32 {
93
93
return res;
94
94
}
95
95
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 {
97
97
let mut t = str:: to_utf16 ( s) ;
98
98
// Null terminate before passing on.
99
99
t += ~[ 0u16 ] ;
@@ -557,7 +557,7 @@ pub fn make_dir(p: &Path, mode: c_int) -> bool {
557
557
// FIXME: turn mode into something useful? #2623
558
558
do as_utf16_p ( p. to_str ( ) ) |buf| {
559
559
libc:: CreateDirectoryW ( buf, unsafe {
560
- unsafe :: reinterpret_cast ( & 0 )
560
+ cast :: reinterpret_cast ( & 0 )
561
561
} )
562
562
!= ( 0 as BOOL )
563
563
}
You can’t perform that action at this time.
0 commit comments