diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-09-04 11:18:39 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-09-04 11:18:39 +0200 |
commit | c51864b826cadfb4c52d597c4ae5897c3ec1341c (patch) | |
tree | 13b97ced18059a26932aeb96aff5734201c26a49 /src/nvim/os_unix.c | |
parent | ea33a75d0738526dd1ecfdeb387aeccb15fb7832 (diff) | |
parent | 11b8c76e4168080b3e2d86fd53c0e1437f834ad5 (diff) | |
download | rneovim-c51864b826cadfb4c52d597c4ae5897c3ec1341c.tar.gz rneovim-c51864b826cadfb4c52d597c4ae5897c3ec1341c.tar.bz2 rneovim-c51864b826cadfb4c52d597c4ae5897c3ec1341c.zip |
Merge "Remove instances of TRUE/FALSE" #3272
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 30 |
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; } |