mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
make tokenize_variable_array() private
Another step towards implementing issue #4200 is to make the `tokenize_variable_array()` function private to the env.cpp module.
This commit is contained in:
@@ -78,13 +78,12 @@ static int load(const wcstring &name) {
|
||||
static void autoload_names(std::set<wcstring> &names, int get_hidden) {
|
||||
size_t i;
|
||||
|
||||
const env_var_t path_var_wstr = env_get(L"fish_function_path");
|
||||
if (path_var_wstr.missing()) return;
|
||||
const wchar_t *path_var = path_var_wstr.c_str();
|
||||
const env_var_t path_var = env_get(L"fish_function_path");
|
||||
if (path_var.missing_or_empty()) return;
|
||||
|
||||
wcstring_list_t path_list;
|
||||
path_var.to_list(path_list);
|
||||
|
||||
tokenize_variable_array(path_var, path_list);
|
||||
for (i = 0; i < path_list.size(); i++) {
|
||||
const wcstring &ndir_str = path_list.at(i);
|
||||
const wchar_t *ndir = (wchar_t *)ndir_str.c_str();
|
||||
|
||||
Reference in New Issue
Block a user