aboutsummaryrefslogtreecommitdiff
path: root/py/objmap.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-29 13:43:38 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-29 13:43:38 +0000
commit3e1a5c10c5bf0a38c2ed3b9986b43b8cb8227b2f (patch)
tree76c6f10fcf7d669c52d2b9d84483e8c4f937b9d9 /py/objmap.c
parent07ddab529cb0953c473d30795e4dc3c6dfff0d89 (diff)
py: Rename old const type objects to mp_type_* for consistency.
Diffstat (limited to 'py/objmap.c')
-rw-r--r--py/objmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objmap.c b/py/objmap.c
index cc7eae235..efed6c93b 100644
--- a/py/objmap.c
+++ b/py/objmap.c
@@ -21,7 +21,7 @@ STATIC mp_obj_t map_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_
}
assert(n_args >= 2);
mp_obj_map_t *o = m_new_obj_var(mp_obj_map_t, mp_obj_t, n_args - 1);
- o->base.type = &map_type;
+ o->base.type = &mp_type_map;
o->n_iters = n_args - 1;
o->fun = args[0];
for (int i = 0; i < n_args - 1; i++) {
@@ -35,7 +35,7 @@ STATIC mp_obj_t map_getiter(mp_obj_t self_in) {
}
STATIC mp_obj_t map_iternext(mp_obj_t self_in) {
- assert(MP_OBJ_IS_TYPE(self_in, &map_type));
+ assert(MP_OBJ_IS_TYPE(self_in, &mp_type_map));
mp_obj_map_t *self = self_in;
mp_obj_t *nextses = m_new(mp_obj_t, self->n_iters);
@@ -50,7 +50,7 @@ STATIC mp_obj_t map_iternext(mp_obj_t self_in) {
return rt_call_function_n_kw(self->fun, self->n_iters, 0, nextses);
}
-const mp_obj_type_t map_type = {
+const mp_obj_type_t mp_type_map = {
{ &mp_type_type },
.name = MP_QSTR_map,
.make_new = map_make_new,