diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-03 18:06:34 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-08 21:56:05 -0300 |
commit | 4348d1e6f74a87af55c6c01e7a0cb292e9dec114 (patch) | |
tree | 86f6e5da3cd9961f675b9aec046b2967e4db756e /src/os/os.h | |
parent | 49f5e5d0b132747048f45e10cf5cafef7e07ab7d (diff) | |
download | rneovim-4348d1e6f74a87af55c6c01e7a0cb292e9dec114.tar.gz rneovim-4348d1e6f74a87af55c6c01e7a0cb292e9dec114.tar.bz2 rneovim-4348d1e6f74a87af55c6c01e7a0cb292e9dec114.zip |
Move functions from os/fs.c into path.c
Move unit tests from os/fs.moon to path.moon
Diffstat (limited to 'src/os/os.h')
-rw-r--r-- | src/os/os.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/os/os.h b/src/os/os.h index eac6e730c5..96164a59f5 100644 --- a/src/os/os.h +++ b/src/os/os.h @@ -16,36 +16,11 @@ int os_chdir(const char *path); /// @return `OK` for success, `FAIL` for failure. int os_dirname(char_u *buf, size_t len); -/// Expand a given file to its absolute path. -/// -/// @param fname The filename which should be expanded. -/// @param buf Buffer to store the absolute path of `fname`. -/// @param len Length of `buf`. -/// @param force Also expand when `fname` is already absolute. -/// @return `FAIL` for failure, `OK` for success. -int os_get_absolute_path(char_u *fname, char_u *buf, int len, int force); - -/// Check if the given file is absolute. -/// -/// This just checks if the file name starts with '/' or '~'. -/// @return `true` if "fname" is absolute. -int os_is_absolute_path(const char_u *fname); - /// Check if the given path is a directory or not. /// /// @return `true` if `fname` is a directory. bool os_isdir(const char_u *name); -/// Check if the given path represents an executable file. -/// -/// @return `true` if `name` is executable and -/// - can be found in $PATH, -/// - is relative to current dir or -/// - is absolute. -/// -/// @return `false` otherwise. -bool os_can_exe(const char_u *name); - /// Get the file permissions for a given file. /// /// @return `-1` when `name` doesn't exist. |