Home
last modified time | relevance | path

Searched refs:lookup_kind (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dmap.c137 assert(!map->is_fixed || lookup_kind == MP_MAP_LOOKUP); in mp_map_lookup()
151 } else if (lookup_kind != MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_map_lookup()
179 if (MP_LIKELY(lookup_kind != MP_MAP_LOOKUP_ADD_IF_NOT_FOUND)) { in mp_map_lookup()
202 if (lookup_kind == MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_map_lookup()
224 if (lookup_kind == MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_map_lookup()
246 if (lookup_kind == MP_MAP_LOOKUP_REMOVE_IF_FOUND) { in mp_map_lookup()
265 if (lookup_kind == MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_map_lookup()
318 if (lookup_kind & MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_set_lookup()
332 if (lookup_kind & MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in mp_set_lookup()
349 if (lookup_kind & MP_MAP_LOOKUP_REMOVE_IF_FOUND) { in mp_set_lookup()
[all …]
A Dobjdict.c294 …C mp_obj_t dict_get_helper(size_t n_args, const mp_obj_t *args, mp_map_lookup_kind_t lookup_kind) { in dict_get_helper() argument
297 if (lookup_kind != MP_MAP_LOOKUP) { in dict_get_helper()
300 mp_map_elem_t *elem = mp_map_lookup(&self->map, args[1], lookup_kind); in dict_get_helper()
304 if (lookup_kind == MP_MAP_LOOKUP_REMOVE_IF_FOUND) { in dict_get_helper()
312 if (lookup_kind == MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) { in dict_get_helper()
317 if (lookup_kind == MP_MAP_LOOKUP_REMOVE_IF_FOUND) { in dict_get_helper()
A Dobj.h435 mp_map_elem_t *mp_map_lookup(mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t lookup_kind);
452 mp_obj_t mp_set_lookup(mp_set_t *set, mp_obj_t index, mp_map_lookup_kind_t lookup_kind);

Completed in 9 milliseconds