Rename rust_list_files_ivec to rust_list_files

This commit is contained in:
Brian Anderson 2011-08-12 11:02:23 -07:00
parent 8561f7654c
commit 4fc0848a49
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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;

View File

@ -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