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/objlist.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 py/objlist.h (limited to 'py/objlist.h') 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; -- cgit v1.2.3