mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 13:01:15 -03:00
Introduce class environment_t
This will be used as a base class for variable snapshots and variable stacks.
This commit is contained in:
@@ -198,7 +198,7 @@ void function_load(const wcstring &cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
int function_exists_no_autoload(const wcstring &cmd, const env_vars_snapshot_t &vars) {
|
||||
int function_exists_no_autoload(const wcstring &cmd, const environment_t &vars) {
|
||||
if (parser_keywords_is_reserved(cmd)) return 0;
|
||||
scoped_rlock locker(functions_lock);
|
||||
return loaded_functions.find(cmd) != loaded_functions.end() ||
|
||||
|
||||
Reference in New Issue
Block a user