kopia lustrzana https://github.com/micropython/micropython
0e7bfc88c6
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> |
||
---|---|---|
.. | ||
variants | ||
.gitignore | ||
Makefile | ||
alloc.c | ||
coverage.c | ||
coveragecpp.cpp | ||
fatfs_port.c | ||
gccollect.c | ||
input.c | ||
input.h | ||
main.c | ||
modffi.c | ||
modjni.c | ||
modmachine.c | ||
modtermios.c | ||
modtime.c | ||
moduos.c | ||
moduselect.c | ||
modusocket.c | ||
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 |