64 Commits (master)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Philip Peitsch edc92d18db py/map: Clear value when re-using slot with ordered dictionaries. 4 years ago
Yonatan Goldschmidt 2a6ba47110 py/obj: Add static safety checks to mp_obj_is_type(). 5 years ago
Damien George 8412568e7b py: Add wrapper macros so hot VM functions can go in fast code location. 3 years ago
Jim Mussared 11ef8f22fe py/map: Add an optional cache of (map+index) to speed up map lookups. 3 years ago
Jim Mussared 880875bea1 py/objdict: Add mp_const_empty_dict_obj, use it for mp_const_empty_map. 4 years ago
Jim Mussared 57fce3bdb2 py/objdict: Fix popitem for ordered dicts. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 054dd33eba py: Downcase MP_xxx_SLOT_IS_FILLED inline functions. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George b630dfcc1d py: Fix compiling with debug enabled and make more use of DEBUG_printf. 6 years ago
Damien George 136cb7f27c py/map: Don't include ordered-dict mutating code when not needed. 7 years ago
Paul Sokolovsky a35d923cdf py/map: Allow to trace rehashing operations. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 6c9fca2aa9 py/map: Remove unused new/free functions. 7 years ago
Damien George 0e420d48ee py/map: Replace always-false condition with assertion. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 9275c18270 py/map: Fix bugs with deletion of elements from OrderedDict. 8 years ago
Damien George af622eb2a6 py/map: Change mp_uint_t to size_t where appropriate. 8 years ago
Damien George 3ff16ff52e py: Declare constant data as properly constant. 9 years ago
Damien George 00137b8c11 py/map: Change hash-table allocation policy to be less aggressive. 9 years ago
Stephen Kyle b475327ffa py/map: Prevent map resize failure from destroying map. 9 years ago
Damien George 6dde019d93 py/map: In map lookup, check for fixed map independent of ordered map. 9 years ago
Damien George bbe8d51bd9 py/map: Add fast-path for hashing of map index when it is a qstr. 9 years ago
Damien George 83229d3ffe py: Use MP_OBJ_NULL instead of NULL when appropriate. 9 years ago
Damien George 593faf14c4 py/map: Store key/value in earliest possible slot in hash table. 9 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Damien George d1cee02783 py: Clarify API for map/set lookup when removing&adding at once. 10 years ago
Paul Sokolovsky 0ef01d0a75 py: Implement core of OrderedDict type. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George e37dcaafb4 py: Allow to properly disable builtin "set" object. 10 years ago
Paul Sokolovsky e5dbe1e283 map: Add empty fixed map. 10 years ago
Damien George 7860c2a68a py: Fix some macros defines; cleanup some includes. 10 years ago
Damien George 93965e726f py: Make map, dict, set use mp_int_t/mp_uint_t exclusively. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 10 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 186e463a9e py: Fix bug in map lookup of interned string vs non-interned. 11 years ago
Damien George 2bfd2dc770 py: Revert revert for allocation policy of set hash table. 11 years ago
Damien George c75427baaa py: Revert change to allocation policy for mp_set_t. 11 years ago
Paul Sokolovsky 5fedd0c3b7 py: Fix dict.copy() and low-level map/set allocation. 11 years ago
Damien George d0e824387e py: Make mp_map_lookup not allocate memory on removal. 11 years ago
Damien George 8b0535e23f py: Change module globals from mp_map_t* to mp_obj_dict_t*. 11 years ago
Damien George 95004e5114 py: Fix delete operation on map/dict and set objects. 11 years ago
Paul Sokolovsky 4a088f4b61 map: When removing a key, don't NULL the entry, but mark as deleted. 11 years ago
Paul Sokolovsky e3f58c8380 map: Add mp_map_dump() (#ifdef'ed) to be handy when debugging maps. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago