summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-01 23:31:30 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-02 22:56:58 +0100
commit12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b (patch)
tree9a78cc4a98534d492f07c6c57cf9fcaa7e194c14 /py/runtime.c
parentdbc0191d5f1cf51bdf628800ae24a70392be673f (diff)
downloadmicropython-12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b.tar.gz
micropython-12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b.zip
py: Add finer configuration of static funcs when not in stackless mode.
Also rename call_args_t to mp_call_args_t.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c
index f6bc7aa846..2bb9a02641 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -577,7 +577,11 @@ mp_obj_t mp_call_method_n_kw(mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *a
return mp_call_function_n_kw(args[0], n_args + adjust, n_kw, args + 2 - adjust);
}
-void mp_call_prepare_args_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args, call_args_t *out_args) {
+// This function only needs to be exposed externally when in stackless mode.
+#if !MICROPY_STACKLESS
+STATIC
+#endif
+void mp_call_prepare_args_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args, mp_call_args_t *out_args) {
mp_obj_t fun = *args++;
mp_obj_t self = MP_OBJ_NULL;
if (have_self) {
@@ -723,7 +727,7 @@ void mp_call_prepare_args_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const
}
mp_obj_t mp_call_method_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args) {
- call_args_t out_args;
+ mp_call_args_t out_args;
mp_call_prepare_args_n_kw_var(have_self, n_args_n_kw, args, &out_args);
mp_obj_t res = mp_call_function_n_kw(out_args.fun, out_args.n_args, out_args.n_kw, out_args.args);