Introduce class environment_t

This will be used as a base class for variable snapshots and variable stacks.
This commit is contained in:
ridiculousfish
2018-09-09 02:25:51 -07:00
parent 895c2c4af0
commit 391af6af0c
12 changed files with 47 additions and 31 deletions

View File

@@ -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() ||