mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
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:

committed by
Justin M. Keyes

parent
ed1070bb24
commit
03d47965c0
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user