diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-18 00:24:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 00:24:39 +0200 |
commit | 1f49268c46fcbe65f7e2e2cb620e6f51c059cf9e (patch) | |
tree | e7cea7cc17ce0e5004ef040f5d0ffa1384c06ea9 /src/nvim/eval.c | |
parent | ede5695eb194e9b607421415525177888b447753 (diff) | |
download | rneovim-1f49268c46fcbe65f7e2e2cb620e6f51c059cf9e.tar.gz rneovim-1f49268c46fcbe65f7e2e2cb620e6f51c059cf9e.tar.bz2 rneovim-1f49268c46fcbe65f7e2e2cb620e6f51c059cf9e.zip |
refactor: convert TRUE/FALSE to true/false (#15660)
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 5607de3cc1..2736e9a14f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -846,13 +846,13 @@ int skip_expr(char_u **pp) return eval1(pp, &rettv, FALSE); } -/* - * Top level evaluation function, returning a string. - * When "convert" is TRUE convert a List into a sequence of lines and convert - * a Float to a String. - * Return pointer to allocated memory, or NULL for failure. - */ -char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert) +/// Top level evaluation function, returning a string. +/// +/// @param convert when true convert a List into a sequence of lines and convert +/// a Float to a String. +/// +/// @return pointer to allocated memory, or NULL for failure. +char_u *eval_to_string(char_u *arg, char_u **nextcmd, bool convert) { typval_T tv; char *retval; @@ -8520,7 +8520,7 @@ static char_u *make_expanded_name(const char_u *in_start, char_u *expr_start, c1 = *in_end; *in_end = NUL; - temp_result = eval_to_string(expr_start + 1, &nextcmd, FALSE); + temp_result = eval_to_string(expr_start + 1, &nextcmd, false); if (temp_result != NULL && nextcmd == NULL) { retval = xmalloc(STRLEN(temp_result) + (expr_start - in_start) + (in_end - expr_end) + 1); |