diff options
| author | Dave Astels <dastels@daveastels.com> | 2019-07-25 15:04:55 -0400 |
|---|---|---|
| committer | Dave Astels <dastels@daveastels.com> | 2019-07-25 15:04:55 -0400 |
| commit | 7fd1a6c8a80780e227a0f4a7bdd6fda57853814b (patch) | |
| tree | cb642e45c57ebdc7a8a8ea5bf759e3ccd13dac88 | |
| parent | 82ab998cd591bc8a4dea45e4ee0baf3601819834 (diff) | |
Expose array_new and array_subscr
| -rw-r--r-- | py/objarray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objarray.c b/py/objarray.c index 9114a63c5..61d55f255 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -92,7 +92,7 @@ STATIC void array_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t #endif #if MICROPY_PY_BUILTINS_BYTEARRAY || MICROPY_PY_ARRAY -STATIC mp_obj_array_t *array_new(char typecode, size_t n) { +mp_obj_array_t *array_new(char typecode, size_t n) { int typecode_size = mp_binary_get_size('@', typecode, NULL); mp_obj_array_t *o = m_new_obj(mp_obj_array_t); #if MICROPY_PY_BUILTINS_BYTEARRAY && MICROPY_PY_ARRAY @@ -396,7 +396,7 @@ STATIC mp_obj_t array_extend(mp_obj_t self_in, mp_obj_t arg_in) { STATIC MP_DEFINE_CONST_FUN_OBJ_2(array_extend_obj, array_extend); #endif -STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) { +mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) { if (value == MP_OBJ_NULL) { // delete item // TODO implement |
