From 18bef25a0cd99029ebfaa92a29187c56ea96a835 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 13 Apr 2014 06:17:29 +0300 Subject: objlist: Add support for statically allocated lists. Similar to similar support for lists. --- py/obj.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/obj.h') diff --git a/py/obj.h b/py/obj.h index 356e722dc..6e5796668 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); -- cgit v1.2.3