diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-15 13:37:17 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-15 13:37:17 -0700 |
commit | 93d57bd73a885df46f45a1e771a8f9568144fd6a (patch) | |
tree | 8a08e090c232692f7cdc7b31d87f976f7efad07e /src/function.h | |
parent | 60798798ef37fc0dcee3edece62ca11fb2d1ced8 (diff) |
Factor function environment preparation into its own function
Diffstat (limited to 'src/function.h')
-rw-r--r-- | src/function.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/function.h b/src/function.h index cd3f6f5a..1dd9d613 100644 --- a/src/function.h +++ b/src/function.h @@ -179,10 +179,13 @@ std::map<wcstring,env_var_t> function_get_inherit_vars(const wcstring &name); */ bool function_copy(const wcstring &name, const wcstring &new_name); - /** Returns whether this function shadows variables of the underlying function */ int function_get_shadows(const wcstring &name); +/** Prepares the environment for executing a function. +*/ +void function_prepare_environment(const wcstring &name, const wchar_t * const * argv, const std::map<wcstring, env_var_t> &inherited_vars); + #endif |