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. |
||
---|---|---|
.. | ||
modmachine.c | ||
modnetwork.c | ||
modnetwork.h | ||
modubinascii.c | ||
modubinascii.h | ||
moduhashlib.c | ||
moduos.c | ||
moduos.h | ||
modusocket.c | ||
modusocket.h | ||
modussl.c | ||
modutime.c | ||
modwipy.c | ||
modwlan.c | ||
modwlan.h | ||
pybadc.c | ||
pybadc.h | ||
pybi2c.c | ||
pybi2c.h | ||
pybpin.c | ||
pybpin.h | ||
pybrtc.c | ||
pybrtc.h | ||
pybsd.c | ||
pybsd.h | ||
pybsleep.c | ||
pybsleep.h | ||
pybspi.c | ||
pybspi.h | ||
pybtimer.c | ||
pybtimer.h | ||
pybuart.c | ||
pybuart.h | ||
pybwdt.c | ||
pybwdt.h |