Skip to content

Commit e0bc438

Browse files
committed
py/obj.h: Move declaration of mp_obj_list_init to objlist.h.
If this function is used then objlist.h is already included to get the definition of mp_obj_list_t.
1 parent 9f811e9 commit e0bc438

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/obj.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,6 @@ void mp_obj_tuple_del(mp_obj_t self_in);
744744
mp_int_t mp_obj_tuple_hash(mp_obj_t self_in);
745745

746746
// list
747-
struct _mp_obj_list_t;
748-
void mp_obj_list_init(struct _mp_obj_list_t *o, size_t n);
749747
mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
750748
mp_obj_t mp_obj_list_remove(mp_obj_t self_in, mp_obj_t value);
751749
void mp_obj_list_get(mp_obj_t self_in, size_t *len, mp_obj_t **items);

py/objlist.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ typedef struct _mp_obj_list_t {
3535
mp_obj_t *items;
3636
} mp_obj_list_t;
3737

38+
void mp_obj_list_init(mp_obj_list_t *o, size_t n);
39+
3840
#endif // MICROPY_INCLUDED_PY_OBJLIST_H

0 commit comments

Comments
 (0)