kopia lustrzana https://github.com/micropython/micropython
5b3f0b7f39
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
alloc.c | ||
coverage.c | ||
file.c | ||
gccollect.c | ||
input.c | ||
input.h | ||
main.c | ||
modffi.c | ||
modjni.c | ||
modmachine.c | ||
modos.c | ||
modsocket.c | ||
modtermios.c | ||
modtime.c | ||
moduselect.c | ||
mpconfigport.h | ||
mpconfigport.mk | ||
mpconfigport_fast.h | ||
mpconfigport_freedos.h | ||
mpconfigport_minimal.h | ||
mphalport.h | ||
qstrdefsport.h | ||
unix_mphal.c |