Skip to content

Commit

Permalink
py/obj.h: Move declaration of mp_obj_list_init to objlist.h.
Browse files Browse the repository at this point in the history
If this function is used then objlist.h is already included to get the
definition of mp_obj_list_t.
  • Loading branch information
dpgeorge committed Mar 13, 2018
1 parent 9f811e9 commit e0bc438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions py/obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,6 @@ void mp_obj_tuple_del(mp_obj_t self_in);
mp_int_t mp_obj_tuple_hash(mp_obj_t self_in);

// list
struct _mp_obj_list_t;
void mp_obj_list_init(struct _mp_obj_list_t *o, size_t n);
mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
mp_obj_t mp_obj_list_remove(mp_obj_t self_in, mp_obj_t value);
void mp_obj_list_get(mp_obj_t self_in, size_t *len, mp_obj_t **items);
Expand Down
2 changes: 2 additions & 0 deletions py/objlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ typedef struct _mp_obj_list_t {
mp_obj_t *items;
} mp_obj_list_t;

void mp_obj_list_init(mp_obj_list_t *o, size_t n);

#endif // MICROPY_INCLUDED_PY_OBJLIST_H

0 comments on commit e0bc438

Please sign in to comment.