micropython/ports
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable.
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>
2022-05-03 22:28:14 +10:00
..
bare-arm
cc3200 all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
esp32 all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
esp8266 all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
javascript
mimxrt all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
minimal
nrf all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
pic16bit
powerpc
qemu-arm
renesas-ra all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
rp2 all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
samd
stm32 all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
teensy all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
unix all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
windows
zephyr all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00