micropython/extmod
Jim Mussared 198311c780 py/stream: Add mp_stream___exit___obj that calls mp_stream_close.
There are enough places that implement __exit__ by forwarding directly to
mp_stream_close that this saves code size.

For the cases where __exit__ is a no-op, additionally make their
MP_STREAM_CLOSE ioctl handled as a no-op.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-07-21 18:49:03 +10:00
..
asyncio
axtls-include
btstack
lwip-include
mbedtls
nimble
extmod.cmake
extmod.mk
font_petme128_8x8.h
machine_bitstream.c
machine_bitstream.h
machine_i2c.c
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
machine_signal.h
machine_spi.c
machine_spi.h
machine_timer.c
misc.h
modasyncio.c
modbinascii.c
modbluetooth.c
modbluetooth.h
modbtree.c
modcryptolib.c
modframebuf.c
modhashlib.c
modheapq.c
modjson.c
modlwip.c
modnetwork.c
modnetwork.h
modonewire.c
modos.c
modplatform.c
modplatform.h
modrandom.c
modre.c
modselect.c
modsocket.c
modssl_axtls.c
modssl_mbedtls.c
modtime.c
modtime.h
moductypes.c
modwebrepl.c
modwebsocket.c
modwebsocket.h
mpbthci.c
mpbthci.h
network_cyw43.c
network_cyw43.h
network_lwip.c
network_ninaw10.c
network_wiznet5k.c
os_dupterm.c
utime_mphal.h
vfs.c
vfs.h
vfs_blockdev.c
vfs_fat.c
vfs_fat.h
vfs_fat_diskio.c
vfs_fat_file.c py/stream: Add mp_stream___exit___obj that calls mp_stream_close. 2023-07-21 18:49:03 +10:00
vfs_lfs.c
vfs_lfs.h
vfs_lfsx.c
vfs_lfsx_file.c py/stream: Add mp_stream___exit___obj that calls mp_stream_close. 2023-07-21 18:49:03 +10:00
vfs_posix.c
vfs_posix.h
vfs_posix_file.c py/stream: Add mp_stream___exit___obj that calls mp_stream_close. 2023-07-21 18:49:03 +10:00
vfs_reader.c
virtpin.c
virtpin.h