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/objlist.h | |
parent | f130ca1f60fbbca95516b722ce0119e5f3ca2767 (diff) |
objlist: Add support for statically allocated lists.
Similar to similar support for lists.
Diffstat (limited to 'py/objlist.h')
-rw-r--r-- | py/objlist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/objlist.h b/py/objlist.h new file mode 100644 index 000000000..cc8d7de26 --- /dev/null +++ b/py/objlist.h @@ -0,0 +1,6 @@ +typedef struct _mp_obj_list_t { + mp_obj_base_t base; + machine_uint_t alloc; + machine_uint_t len; + mp_obj_t *items; +} mp_obj_list_t; |