aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorSteven Oliver <oliver.steven@gmail.com>2015-08-30 16:27:47 -0400
committerBjörn Linse <bjorn.linse@gmail.com>2015-09-04 11:07:33 +0200
commitf7c5dc4db266bfc1db3ea76d114d9a04413fe875 (patch)
treeec6fdb7594d41c89d3b71f9ebd82ced7652b2e0d /src/nvim/os_unix.c
parentea33a75d0738526dd1ecfdeb387aeccb15fb7832 (diff)
downloadrneovim-f7c5dc4db266bfc1db3ea76d114d9a04413fe875.tar.gz
rneovim-f7c5dc4db266bfc1db3ea76d114d9a04413fe875.tar.bz2
rneovim-f7c5dc4db266bfc1db3ea76d114d9a04413fe875.zip
Remove instances of TRUE/FALSE macro
memory.c os_unix.c path.c
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index 122b3a171d..828ccd556d 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -171,11 +171,11 @@ int mch_nodetype(char_u *name)
void mch_exit(int r)
{
- exiting = TRUE;
+ exiting = true;
ui_builtin_stop();
ui_flush();
- ml_close_all(TRUE); /* remove all memfiles */
+ ml_close_all(true); /* remove all memfiles */
event_teardown();
stream_set_blocking(input_global_fd(), true); // normalize stream (#2598)
@@ -237,8 +237,8 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
* directly */
int shell_style = STYLE_ECHO;
int check_spaces;
- static int did_find_nul = FALSE;
- int ampersent = FALSE;
+ static bool did_find_nul = false;
+ bool ampersent = false;
/* vimglob() function to define for Posix shell */
static char *sh_vimglob_func =
"vimglob() { while [ $# -ge 1 ]; do echo \"$1\"; shift; done }; vimglob >";
@@ -341,7 +341,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
while (p > command && ascii_iswhite(*p))
--p;
if (*p == '&') { /* remove trailing '&' */
- ampersent = TRUE;
+ ampersent = true;
*p = ' ';
}
STRCAT(command, ">");
@@ -366,7 +366,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
for (i = 0; i < num_pat; ++i) {
/* Put a backslash before special
* characters, except inside ``. */
- int intick = FALSE;
+ bool intick = false;
p = command + STRLEN(command);
*p++ = ' ';
@@ -537,14 +537,14 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
* When we found a NUL once, we know zsh is OK, set did_find_nul and
* don't check for spaces again.
*/
- check_spaces = FALSE;
+ check_spaces = false;
if (shell_style == STYLE_PRINT && !did_find_nul) {
/* If there is a NUL, set did_find_nul, else set check_spaces */
buffer[len] = NUL;
if (len && (int)STRLEN(buffer) < (int)len)
- did_find_nul = TRUE;
+ did_find_nul = true;
else
- check_spaces = TRUE;
+ check_spaces = true;
}
/*
@@ -665,22 +665,22 @@ static void save_patterns(int num_pat, char_u **pat, int *num_file,
*num_file = num_pat;
}
-static int have_wildcard(int num, char_u **file)
+static bool have_wildcard(int num, char_u **file)
{
int i;
for (i = 0; i < num; i++)
if (path_has_wildcard(file[i]))
- return 1;
- return 0;
+ return true;
+ return false;
}
-static int have_dollars(int num, char_u **file)
+static bool have_dollars(int num, char_u **file)
{
int i;
for (i = 0; i < num; i++)
if (vim_strchr(file[i], '$') != NULL)
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}