mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +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 {
|
||||
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 list_dir(path: str) -> [str] {
|
||||
ret *rustrt::rust_list_files_ivec(path);
|
||||
ret *rustrt::rust_list_files(path);
|
||||
// TODO ensure this is always closed
|
||||
|
||||
// FIXME: No idea why, but this appears to corrupt memory on OSX. I
|
||||
|
@ -1,12 +1,12 @@
|
||||
|
||||
|
||||
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 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 {
|
||||
|
@ -443,7 +443,7 @@ rust_str* c_str_to_rust(rust_task *task, char const *str) {
|
||||
}
|
||||
|
||||
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;
|
||||
#if defined(__WIN32__)
|
||||
WIN32_FIND_DATA FindFileData;
|
||||
|
@ -48,7 +48,7 @@ rust_dirent_filename
|
||||
rust_file_is_dir
|
||||
rust_get_stdin
|
||||
rust_get_stdout
|
||||
rust_list_files_ivec
|
||||
rust_list_files
|
||||
rust_process_wait
|
||||
rust_ptr_eq
|
||||
rust_run_program
|
||||
|
Loading…
Reference in New Issue
Block a user