mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
Rename rust_list_files_ivec to rust_list_files
This commit is contained in:
parent
8561f7654c
commit
4fc0848a49
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
native "rust" mod rustrt {
|
native "rust" mod rustrt {
|
||||||
fn rust_list_files_ivec(path: str) -> @[str];
|
fn rust_list_files(path: str) -> @[str];
|
||||||
fn rust_dirent_filename(ent: os::libc::dirent) -> str;
|
fn rust_dirent_filename(ent: os::libc::dirent) -> str;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn list_dir(path: str) -> [str] {
|
fn list_dir(path: str) -> [str] {
|
||||||
ret *rustrt::rust_list_files_ivec(path);
|
ret *rustrt::rust_list_files(path);
|
||||||
// TODO ensure this is always closed
|
// TODO ensure this is always closed
|
||||||
|
|
||||||
// FIXME: No idea why, but this appears to corrupt memory on OSX. I
|
// FIXME: No idea why, but this appears to corrupt memory on OSX. I
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
native "rust" mod rustrt {
|
native "rust" mod rustrt {
|
||||||
fn rust_list_files_ivec(path: str) -> @[str];
|
fn rust_list_files(path: str) -> @[str];
|
||||||
fn rust_file_is_dir(path: str) -> int;
|
fn rust_file_is_dir(path: str) -> int;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn list_dir(path: str) -> [str] {
|
fn list_dir(path: str) -> [str] {
|
||||||
ret *rustrt::rust_list_files_ivec(path + "*");
|
ret *rustrt::rust_list_files(path + "*");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn path_is_absolute(p: str) -> bool {
|
fn path_is_absolute(p: str) -> bool {
|
||||||
|
@ -443,7 +443,7 @@ rust_str* c_str_to_rust(rust_task *task, char const *str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" CDECL rust_box*
|
extern "C" CDECL rust_box*
|
||||||
rust_list_files_ivec(rust_task *task, rust_str *path) {
|
rust_list_files(rust_task *task, rust_str *path) {
|
||||||
array_list<rust_str*> strings;
|
array_list<rust_str*> strings;
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
WIN32_FIND_DATA FindFileData;
|
WIN32_FIND_DATA FindFileData;
|
||||||
|
@ -48,7 +48,7 @@ rust_dirent_filename
|
|||||||
rust_file_is_dir
|
rust_file_is_dir
|
||||||
rust_get_stdin
|
rust_get_stdin
|
||||||
rust_get_stdout
|
rust_get_stdout
|
||||||
rust_list_files_ivec
|
rust_list_files
|
||||||
rust_process_wait
|
rust_process_wait
|
||||||
rust_ptr_eq
|
rust_ptr_eq
|
||||||
rust_run_program
|
rust_run_program
|
||||||
|
Loading…
Reference in New Issue
Block a user