summaryrefslogtreecommitdiff
path: root/py/runtime.h
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.h
parentdbc0191d5f1cf51bdf628800ae24a70392be673f (diff)
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.h')
-rw-r--r--py/runtime.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/py/runtime.h b/py/runtime.h
index a36f1b1bd..f05a7d0a8 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -97,16 +97,19 @@ mp_obj_t mp_call_function_n_kw(mp_obj_t fun, mp_uint_t n_args, mp_uint_t n_kw, c
mp_obj_t mp_call_method_n_kw(mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args);
mp_obj_t mp_call_method_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args);
-typedef struct _call_args_t {
+typedef struct _mp_call_args_t {
mp_obj_t fun;
mp_uint_t n_args, n_kw, n_alloc;
mp_obj_t *args;
-} call_args_t;
+} mp_call_args_t;
+#if MICROPY_STACKLESS
// Takes arguments which are the most general mix of Python arg types, and
// prepares argument array suitable for passing to ->call() method of a
// function object (and mp_call_function_n_kw()).
-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);
+// (Only needed in stackless mode.)
+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);
+#endif
void mp_unpack_sequence(mp_obj_t seq, mp_uint_t num, mp_obj_t *items);
void mp_unpack_ex(mp_obj_t seq, mp_uint_t num, mp_obj_t *items);