commit | 8eec8bcad95d5e60485635a2dbfd97886698d954 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Jan 12 23:23:10 2014 +0200 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Tue Jan 14 23:59:18 2014 +0200 |
tree | 08a86efc0e38d1a50d15f2c88c9a6e6b6fb90d93 | |
parent | ca318bba0d97c66d8fb14a089d8fa269a0e1b424 [diff] [blame] |
Add objtuple.h to allow embedding of tuples inside other objects. This is useful because tuple is closest analog of C static array.
diff --git a/py/objtuple.h b/py/objtuple.h new file mode 100644 index 0000000..9c672fe --- /dev/null +++ b/py/objtuple.h
@@ -0,0 +1,7 @@ +typedef struct _mp_obj_tuple_t { + mp_obj_base_t base; + machine_uint_t len; + mp_obj_t items[]; +} mp_obj_tuple_t; + +void tuple_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in);