micropython/ports/unix
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
..
variants
.gitignore
Makefile
alloc.c
coverage.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
coveragecpp.cpp
fatfs_port.c
gccollect.c
input.c
input.h
main.c py/modsys: Introduce sys.implementation._machine constant. 2022-04-28 17:23:03 +10:00
modffi.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modjni.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modmachine.c
modtermios.c
modtime.c
moduos.c
moduselect.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
modusocket.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
mpbthciport.c
mpbtstackport.h
mpbtstackport_common.c
mpbtstackport_h4.c
mpbtstackport_usb.c
mpconfigport.h
mpconfigport.mk
mphalport.h
mpnimbleport.c
mpnimbleport.h
mpthreadport.c
mpthreadport.h
qstrdefsport.h
unix_mphal.c