diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-13 06:17:29 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-13 07:02:56 +0300 |
commit | 18bef25a0cd99029ebfaa92a29187c56ea96a835 (patch) | |
tree | 281ded10656b4947b0e8c8c373f2876ca1bb8634 /py/obj.h | |
parent | f130ca1f60fbbca95516b722ce0119e5f3ca2767 (diff) | |
download | micropython-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |