py: Rename remaining object types to be of the form mp_type_xxx.

For consistency with all other object types in the core.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-03-26 13:48:34 +11:00
parent 4fc2866f45
commit 9fef1c0bde
6 changed files with 20 additions and 20 deletions

View File

@@ -57,7 +57,7 @@ STATIC mp_obj_t it_iternext(mp_obj_t self_in) {
}
}
STATIC const mp_obj_type_t it_type = {
STATIC const mp_obj_type_t mp_type_it = {
{ &mp_type_type },
.name = MP_QSTR_iterator,
.getiter = mp_identity_getiter,
@@ -68,7 +68,7 @@ STATIC const mp_obj_type_t it_type = {
mp_obj_t mp_obj_new_getitem_iter(mp_obj_t *args, mp_obj_iter_buf_t *iter_buf) {
assert(sizeof(mp_obj_getitem_iter_t) <= sizeof(mp_obj_iter_buf_t));
mp_obj_getitem_iter_t *o = (mp_obj_getitem_iter_t *)iter_buf;
o->base.type = &it_type;
o->base.type = &mp_type_it;
o->args[0] = args[0];
o->args[1] = args[1];
o->args[2] = MP_OBJ_NEW_SMALL_INT(0);