diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-07 15:42:16 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-07 15:42:16 -0800 |
commit | 6d6bc9efc17c0fd4f28f935280db6d8dee100d4f (patch) | |
tree | d1be037346e6e2c4844e83f5435771eaf2670208 /py/map.h | |
parent | dfc0bac086a0277cc1c3d6a72ee906214bbbf9ac (diff) | |
parent | baa665406fef58cfb0be0df8d2798ed0961506da (diff) | |
download | micropython-6d6bc9efc17c0fd4f28f935280db6d8dee100d4f.tar.gz micropython-6d6bc9efc17c0fd4f28f935280db6d8dee100d4f.zip |
Merge pull request #108 from chipaca/dict_feats
Dictionary features that don't involve views or classmethods. First part of issue #99.
Diffstat (limited to 'py/map.h')
-rw-r--r-- | py/map.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,8 +26,9 @@ typedef struct _mp_set_t { int get_doubling_prime_greater_or_equal_to(int x); void mp_map_init(mp_map_t *map, mp_map_kind_t kind, int n); mp_map_t *mp_map_new(mp_map_kind_t kind, int n); -mp_map_elem_t* mp_map_lookup_helper(mp_map_t *map, mp_obj_t index, bool add_if_not_found); +mp_map_elem_t* mp_map_lookup_helper(mp_map_t *map, mp_obj_t index, bool add_if_not_found, bool remove_if_found); mp_map_elem_t* mp_qstr_map_lookup(mp_map_t *map, qstr index, bool add_if_not_found); +void mp_map_clear(mp_map_t *map); void mp_set_init(mp_set_t *set, int n); mp_obj_t mp_set_lookup(mp_set_t *set, mp_obj_t index, bool add_if_not_found); |