| Age | Commit message (Collapse) | Author |
|
This replaces occurences of
foo_t *foo = m_new_obj(foo_t);
foo->base.type = &foo_type;
with
foo_t *foo = mp_obj_malloc(foo_t, &foo_type);
Excludes any places where base is a sub-field or when new0/memset is used.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
This is run with uncrustify 0.70.1, and black 19.10b0.
|
|
There were several different spellings of MicroPython present in comments,
when there should be only one.
|
|
|
|
This allows the mp_obj_t type to be configured to something other than a
pointer-sized primitive type.
This patch also includes additional changes to allow the code to compile
when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of
mp_uint_t, and various casts.
|
|
|
|
|
|
If you need the functionality of a namedtuple but will only make 1 or a
few instances, then use an attrtuple instead.
|