diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-26 15:16:41 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-26 15:16:41 +0000 |
commit | 86c7fc7dd9ae93c96052898ed500032ae96b13aa (patch) | |
tree | 93421b9f0ffbd628b1d55cd19cdacc6eca65d413 /py/runtime.h | |
parent | 6f3e7fc505a59b2b084ca576c22b08287278d1f9 (diff) | |
download | micropython-86c7fc7dd9ae93c96052898ed500032ae96b13aa.tar.gz micropython-86c7fc7dd9ae93c96052898ed500032ae96b13aa.zip |
py: add list pop and sort, unpack_sequence, and keywords in method_call.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h index c39c598a82..db16809ec1 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -128,12 +128,15 @@ py_obj_t rt_call_function_0(py_obj_t fun); py_obj_t rt_call_function_1(py_obj_t fun, py_obj_t arg); py_obj_t rt_call_function_2(py_obj_t fun, py_obj_t arg1, py_obj_t arg2); py_obj_t rt_call_function_n(py_obj_t fun, int n_args, const py_obj_t *args); -py_obj_t rt_call_method_n(int n_args, const py_obj_t *args); +py_obj_t rt_call_function_n_kw(py_obj_t fun, uint n_args, uint n_kw, const py_obj_t *args); +py_obj_t rt_call_method_n(uint n_args, const py_obj_t *args); +py_obj_t rt_call_method_n_kw(uint n_args, uint n_kw, const py_obj_t *args); py_obj_t rt_build_tuple(int n_args, py_obj_t *items); py_obj_t rt_build_list(int n_args, py_obj_t *items); py_obj_t rt_list_append(py_obj_t list, py_obj_t arg); py_obj_t rt_build_set(int n_args, py_obj_t *items); py_obj_t rt_store_set(py_obj_t set, py_obj_t item); +void rt_unpack_sequence(py_obj_t seq, uint num, py_obj_t *items); py_obj_t rt_build_map(int n_args); py_obj_t rt_store_map(py_obj_t map, py_obj_t key, py_obj_t value); py_obj_t rt_load_attr(py_obj_t base, qstr attr); |