summaryrefslogtreecommitdiff
path: root/py/runtime.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/runtime.c
parenteee1e8841a852f374b83e0a3e3b0ff7b66e54243 (diff)
py: Downcase MP_xxx_SLOT_IS_FILLED inline functions.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c
index c93d7d193..7f8ff84e5 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -761,7 +761,7 @@ void mp_call_prepare_args_n_kw_var(bool have_self, size_t n_args_n_kw, const mp_
mp_map_t *map = mp_obj_dict_get_map(kw_dict);
assert(args2_len + 2 * map->used <= args2_alloc); // should have enough, since kw_dict_len is in this case hinted correctly above
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)) {
// the key must be a qstr, so intern it if it's a string
mp_obj_t key = map->table[i].key;
if (!mp_obj_is_qstr(key)) {
@@ -1393,7 +1393,7 @@ void mp_import_all(mp_obj_t module) {
// TODO: Support __all__
mp_map_t *map = &mp_obj_module_get_globals(module)->map;
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)) {
// Entry in module global scope may be generated programmatically
// (and thus be not a qstr for longer names). Avoid turning it in
// qstr if it has '_' and was used exactly to save memory.