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 bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
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 py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
mimxrt all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
minimal ports: Recompile bytecode tests now that .mpy format changed. 2022-04-14 23:52:14 +10:00
nrf all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
pic16bit all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
powerpc ports: Recompile bytecode tests now that .mpy format changed. 2022-04-14 23:52:14 +10:00
qemu-arm qemu-arm/mpconfigport: Define MICROPY_PY_SYS_PLATFORM. 2022-04-28 17:23:03 +10:00
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 ports: Reformat more C and Python source code. 2022-04-20 16:17:35 +10:00
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 windows: Switch to VFS subsystem and use VfsPosix. 2022-03-10 00:26:36 +11:00
zephyr all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00