micropython/shared/runtime
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
..
gchelper.h
gchelper_generic.c shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
gchelper_native.c shared/runtime/gchelper_native: Fix pointer cast on x86_64. 2022-11-08 19:15:37 +11:00
gchelper_thumb1.s shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
gchelper_thumb2.s shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
interrupt_char.c
interrupt_char.h
mpirq.c shared/runtime: Use mp_printf consistently, instead of printf. 2023-01-24 16:57:26 +11:00
mpirq.h
pyexec.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
pyexec.h shared/runtime/pyexec: Don't allow Ctrl+C to interrupt frozen boot code. 2023-04-05 10:38:50 +10:00
semihosting.c
semihosting.h
softtimer.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
softtimer.h shared/runtime/softtimer: Move softtimer.[ch] to shared/runtime. 2022-07-19 12:28:26 +10:00
stdout_helpers.c
sys_stdio_mphal.c py/stream: Add mp_stream___exit___obj that calls mp_stream_close. 2023-07-21 18:49:03 +10:00