diff options
author | Hinidu <hinidu@gmail.com> | 2014-04-07 00:24:21 +0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-07 12:15:28 -0300 |
commit | 8a2ffb2b010e02dd8dcbb3182d5a6e27006f6e46 (patch) | |
tree | 0f815b3f51dc2e383b6a2a5c8b9805885cae2ec2 /src/os/os.h | |
parent | c3cea30cb7952c44c3452d9e7926fe50397d43ae (diff) | |
download | rneovim-8a2ffb2b010e02dd8dcbb3182d5a6e27006f6e46.tar.gz rneovim-8a2ffb2b010e02dd8dcbb3182d5a6e27006f6e46.tar.bz2 rneovim-8a2ffb2b010e02dd8dcbb3182d5a6e27006f6e46.zip |
Use stdbool in os module
Diffstat (limited to 'src/os/os.h')
-rw-r--r-- | src/os/os.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/os/os.h b/src/os/os.h index 8456f87473..fc66307d34 100644 --- a/src/os/os.h +++ b/src/os/os.h @@ -28,23 +28,23 @@ 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. +/// @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. -int os_isdir(const char_u *name); +/// @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 +/// @return `true` if `name` is executable and /// - can be found in $PATH, /// - is relative to current dir or /// - is absolute. /// -/// @return `FALSE` otherwise. -int os_can_exe(const char_u *name); +/// @return `false` otherwise. +bool os_can_exe(const char_u *name); /// Get the file permissions for a given file. /// @@ -58,13 +58,13 @@ int os_setperm(const char_u *name, int perm); /// Check if a file exists. /// -/// @return `TRUE` if `name` exists. -int os_file_exists(const char_u *name); +/// @return `true` if `name` exists. +bool os_file_exists(const char_u *name); /// Check if a file is readonly. /// -/// @return `True` if `name` is readonly. -int os_file_is_readonly(const char *name); +/// @return `true` if `name` is readonly. +bool os_file_is_readonly(const char *name); /// Check if a file is writable. /// |