summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-18 19:24:47 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-18 19:27:38 +0200
commit427905cedd3868a5e0225c72c62c42a7e5cfa264 (patch)
tree0ac30cc477bff10485c9f0dee934d955c464de66 /py/obj.h
parentb31b5e0b5c2feac6bf5d8a93c3776cbf72e3528b (diff)
Add skeleton implementation of array.array and bytearray.
So far, only storage, initialization, repr() and buffer protocol is implemented - alredy suitable for passing binary data around.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 5691f09be..7479a5e4b 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -328,6 +328,8 @@ void mp_obj_slice_get(mp_obj_t self_in, machine_int_t *start, machine_int_t *sto
// zip
extern const mp_obj_type_t zip_type;
+// array
+extern const mp_obj_type_t array_type;
// functions
typedef struct _mp_obj_fun_native_t { // need this so we can define const objects (to go in ROM)