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
This commit is contained in:
bobtwinkles
2015-03-13 23:27:54 -04:00
committed by Justin M. Keyes
parent ed1070bb24
commit 03d47965c0
13 changed files with 607 additions and 616 deletions

View File

@@ -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;