aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-01-30 21:57:29 +1100
committerDamien George <damien.p.george@gmail.com>2019-02-12 14:54:51 +1100
commit054dd33ebad67f5c8f328036fd32c3871589a386 (patch)
tree7779aa9369ad4aa7c34850b60962bd505187bdf0 /py/objtype.c
parenteee1e8841a852f374b83e0a3e3b0ff7b66e54243 (diff)
py: Downcase MP_xxx_SLOT_IS_FILLED inline functions.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 8628f482f..3e65a32f0 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -594,7 +594,7 @@ STATIC void mp_obj_instance_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *des
mp_map_t *map = &self->members;
mp_obj_t attr_dict = mp_obj_new_dict(map->used);
for (size_t i = 0; i < map->alloc; ++i) {
- if (MP_MAP_SLOT_IS_FILLED(map, i)) {
+ if (mp_map_slot_is_filled(map, i)) {
mp_obj_dict_store(attr_dict, map->table[i].key, map->table[i].value);
}
}
@@ -1146,7 +1146,7 @@ mp_obj_t mp_obj_new_type(qstr name, mp_obj_t bases_tuple, mp_obj_t locals_dict)
// Check if the class has any special accessor methods
if (!(o->flags & TYPE_FLAG_HAS_SPECIAL_ACCESSORS)) {
for (size_t i = 0; i < o->locals_dict->map.alloc; i++) {
- if (MP_MAP_SLOT_IS_FILLED(&o->locals_dict->map, i)) {
+ if (mp_map_slot_is_filled(&o->locals_dict->map, i)) {
const mp_map_elem_t *elem = &o->locals_dict->map.table[i];
if (check_for_special_accessors(elem->key, elem->value)) {
o->flags |= TYPE_FLAG_HAS_SPECIAL_ACCESSORS;