@@ -596,13 +596,13 @@ namespace chaiscript
596596
597597
598598 // / Pushes a new stack on to the list of stacks
599- void new_stack (Stack_Holder &t_holder)
599+ static void new_stack (Stack_Holder &t_holder)
600600 {
601601 // add a new Stack with 1 element
602602 t_holder.stacks .emplace_back (1 );
603603 }
604604
605- void pop_stack (Stack_Holder &t_holder)
605+ static void pop_stack (Stack_Holder &t_holder)
606606 {
607607 t_holder.stacks .pop_back ();
608608 }
@@ -1082,7 +1082,7 @@ namespace chaiscript
10821082
10831083 // / Returns true if a call can be made that consists of the first parameter
10841084 // / (the function) with the remaining parameters as its arguments.
1085- Boxed_Value call_exists (const std::vector<Boxed_Value> ¶ms)
1085+ Boxed_Value call_exists (const std::vector<Boxed_Value> ¶ms) const
10861086 {
10871087 if (params.empty ())
10881088 {
@@ -1160,20 +1160,20 @@ namespace chaiscript
11601160 m_state = t_state;
11611161 }
11621162
1163- void save_function_params (Stack_Holder &t_s, std::initializer_list<Boxed_Value> t_params)
1163+ static void save_function_params (Stack_Holder &t_s, std::initializer_list<Boxed_Value> t_params)
11641164 {
11651165 t_s.call_params .back ().insert (t_s.call_params .back ().begin (), std::move (t_params));
11661166 }
11671167
1168- void save_function_params (Stack_Holder &t_s, std::vector<Boxed_Value> &&t_params)
1168+ static void save_function_params (Stack_Holder &t_s, std::vector<Boxed_Value> &&t_params)
11691169 {
11701170 for (auto &¶m : t_params)
11711171 {
11721172 t_s.call_params .back ().insert (t_s.call_params .back ().begin (), std::move (param));
11731173 }
11741174 }
11751175
1176- void save_function_params (Stack_Holder &t_s, const std::vector<Boxed_Value> &t_params)
1176+ static void save_function_params (Stack_Holder &t_s, const std::vector<Boxed_Value> &t_params)
11771177 {
11781178 t_s.call_params .back ().insert (t_s.call_params .back ().begin (), t_params.begin (), t_params.end ());
11791179 }
@@ -1240,7 +1240,7 @@ namespace chaiscript
12401240 return m_stack_holder->stacks .back ();
12411241 }
12421242
1243- StackData &get_stack_data (Stack_Holder &t_holder)
1243+ static StackData &get_stack_data (Stack_Holder &t_holder)
12441244 {
12451245 return t_holder.stacks .back ();
12461246 }
0 commit comments