diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-10-09 17:10:29 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-10-10 00:16:26 +1100 |
commit | 880875bea1d825b8fa0d1c4a779ff767377f7655 (patch) | |
tree | 1845029fd301195bae073c78b3a8535560b3d286 /py/map.c | |
parent | fa12bfc227be47a10314576f02ee9d9cb2c1d67c (diff) |
py/objdict: Add mp_const_empty_dict_obj, use it for mp_const_empty_map.
Diffstat (limited to 'py/map.c')
-rw-r--r-- | py/map.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -40,17 +40,6 @@ #define DEBUG_printf(...) (void)0 #endif -// Fixed empty map. Useful when need to call kw-receiving functions -// without any keywords from C, etc. -const mp_map_t mp_const_empty_map = { - .all_keys_are_qstrs = 0, - .is_fixed = 1, - .is_ordered = 1, - .used = 0, - .alloc = 0, - .table = NULL, -}; - // This table of sizes is used to control the growth of hash tables. // The first set of sizes are chosen so the allocation fits exactly in a // 4-word GC block, and it's not so important for these small values to be |