diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
commit | d17926db710189db97a49e9b2e72d782fc404231 (patch) | |
tree | 406396ee6f3010511a606dd4ea3ed5a817d959eb /py/objfilter.c | |
parent | 09d207785c77c85c957471b064ceebe0d2ee0a23 (diff) |
Rename rt_* to mp_*.
Mostly just a global search and replace. Except rt_is_true which
becomes mp_obj_is_true.
Still would like to tidy up some of the names, but this will do for now.
Diffstat (limited to 'py/objfilter.c')
-rw-r--r-- | py/objfilter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objfilter.c b/py/objfilter.c index 7780940a4..466c98220 100644 --- a/py/objfilter.c +++ b/py/objfilter.c @@ -22,7 +22,7 @@ STATIC mp_obj_t filter_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_filter_t *o = m_new_obj(mp_obj_filter_t); o->base.type = &mp_type_filter; o->fun = args[0]; - o->iter = rt_getiter(args[1]); + o->iter = mp_getiter(args[1]); return o; } @@ -30,14 +30,14 @@ STATIC mp_obj_t filter_iternext(mp_obj_t self_in) { assert(MP_OBJ_IS_TYPE(self_in, &mp_type_filter)); mp_obj_filter_t *self = self_in; mp_obj_t next; - while ((next = rt_iternext(self->iter)) != MP_OBJ_NULL) { + while ((next = mp_iternext(self->iter)) != MP_OBJ_NULL) { mp_obj_t val; if (self->fun != mp_const_none) { - val = rt_call_function_n_kw(self->fun, 1, 0, &next); + val = mp_call_function_n_kw(self->fun, 1, 0, &next); } else { val = next; } - if (rt_is_true(val)) { + if (mp_obj_is_true(val)) { return next; } } |