micropython/extmod
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
..
axtls-include
btstack
lwip-include
nimble
uasyncio
webrepl
extmod.cmake
extmod.mk
machine_bitstream.c
machine_bitstream.h
machine_i2c.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
machine_i2c.h
machine_mem.c
machine_mem.h
machine_pinbase.c
machine_pinbase.h
machine_pulse.c
machine_pulse.h
machine_pwm.c
machine_pwm.h
machine_signal.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
machine_signal.h
machine_spi.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
machine_spi.h
misc.h
modbluetooth.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modbluetooth.h
modbtree.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modframebuf.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modlwip.c
modnetwork.c
modnetwork.h
modonewire.c
moduasyncio.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modubinascii.c
moducryptolib.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moductypes.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moduhashlib.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moduheapq.c
modujson.c
moduos.c
moduplatform.c
moduplatform.h
modurandom.c
modure.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moduselect.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modusocket.c
modussl_axtls.c
modussl_mbedtls.c
modutimeq.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moduwebsocket.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
moduwebsocket.h
moduzlib.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modwebrepl.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
mpbthci.c
mpbthci.h
network_cyw43.c
network_cyw43.h
network_ninaw10.c
uos_dupterm.c
utime_mphal.c
utime_mphal.h
vfs.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
vfs.h
vfs_blockdev.c
vfs_fat.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
vfs_fat.h
vfs_fat_diskio.c
vfs_fat_file.c
vfs_lfs.c
vfs_lfs.h
vfs_lfsx.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
vfs_lfsx_file.c
vfs_posix.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
vfs_posix.h
vfs_posix_file.c
vfs_reader.c
virtpin.c
virtpin.h