summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-13 06:17:29 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-13 07:02:56 +0300
commit18bef25a0cd99029ebfaa92a29187c56ea96a835 (patch)
tree281ded10656b4947b0e8c8c373f2876ca1bb8634 /py/obj.h
parentf130ca1f60fbbca95516b722ce0119e5f3ca2767 (diff)
downloadmicropython-18bef25a0cd99029ebfaa92a29187c56ea96a835.tar.gz
micropython-18bef25a0cd99029ebfaa92a29187c56ea96a835.zip
objlist: Add support for statically allocated lists.
Similar to similar support for lists.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 356e722dcb..6e5796668d 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -454,6 +454,8 @@ machine_int_t mp_obj_tuple_hash(mp_obj_t self_in);
mp_obj_t mp_obj_tuple_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args);
// list
+struct _mp_obj_list_t;
+void mp_obj_list_init(struct _mp_obj_list_t *o, uint n);
mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
void mp_obj_list_get(mp_obj_t self_in, uint *len, mp_obj_t **items);
void mp_obj_list_set_len(mp_obj_t self_in, uint len);