From 93d57bd73a885df46f45a1e771a8f9568144fd6a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 15 Aug 2015 13:37:17 -0700 Subject: Factor function environment preparation into its own function --- src/function.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/function.h') 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 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 &inherited_vars); + #endif -- cgit v1.2.3