Skip to content

Commit 7fd1a6c

Browse files
committed
Expose array_new and array_subscr
1 parent 82ab998 commit 7fd1a6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/objarray.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ STATIC void array_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t
9292
#endif
9393

9494
#if MICROPY_PY_BUILTINS_BYTEARRAY || MICROPY_PY_ARRAY
95-
STATIC mp_obj_array_t *array_new(char typecode, size_t n) {
95+
mp_obj_array_t *array_new(char typecode, size_t n) {
9696
int typecode_size = mp_binary_get_size('@', typecode, NULL);
9797
mp_obj_array_t *o = m_new_obj(mp_obj_array_t);
9898
#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) {
396396
STATIC MP_DEFINE_CONST_FUN_OBJ_2(array_extend_obj, array_extend);
397397
#endif
398398

399-
STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) {
399+
mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) {
400400
if (value == MP_OBJ_NULL) {
401401
// delete item
402402
// TODO implement

0 commit comments

Comments
 (0)