aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorbobtwinkles <srkoser+GitHub@gmail.com>2015-03-13 23:27:54 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-03-24 16:13:00 -0400
commit03d47965c0ad5941c88ebd3b91233e7a566935f7 (patch)
tree46f31a729000276852669fe05471afd44331ba5e /src/nvim/eval.c
parented1070bb24d61cfeb13c7afa65de64540dabe535 (diff)
downloadrneovim-03d47965c0ad5941c88ebd3b91233e7a566935f7.tar.gz
rneovim-03d47965c0ad5941c88ebd3b91233e7a566935f7.tar.bz2
rneovim-03d47965c0ad5941c88ebd3b91233e7a566935f7.zip
refactor: split some more functions from misc1.c
This commit pulls the some environment-variable handling functions out of misc1.c and in to os/env.c. Previously submited as #1231, this is the start of a patch series that does that work based on a more up-to-date master branch. Major tasks accomplished: - move functions and fix includes - fix clint/clang analysis warnings - correct documentation comments
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 10e2027b00..9e4b110e8b 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -1744,7 +1744,7 @@ ex_let_one (
name[len] = NUL;
p = get_tv_string_chk(tv);
if (p != NULL && op != NULL && *op == '.') {
- int mustfree = FALSE;
+ bool mustfree = false;
char_u *s = vim_getenv(name, &mustfree);
if (s != NULL) {
@@ -6300,7 +6300,7 @@ static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate)
{
char_u *name;
char_u *string = NULL;
- int mustfree = FALSE;
+ bool mustfree = false;
int len;
int cc;