circuitpython/shared-bindings/terminalio
Jeff Epler 5aa203f13e
Restore CIRCUITPY-CHANGEs for stream protocols
We mark all protocols with their type using MP_PROTO_IMPLEMENT,
and checking in mp_get_stream{,_raise}.

This was not turning up as a problem in tests until a (new, not yet
commited) change to jpegio caused a segfault because a type implementing
a different protocol was passed in to mp_get_stream.

By using 0 (instead of MP_QSTR_protocol_stream) as the marker for
objects implementing the standard micropython stream protocol, the
number of CIRCUITPY-CHANGEs is minimized.
2023-12-24 10:41:54 -06:00
..
__init__.c wip: continuing compilation fixes; mp_obj_alloc everywhere 2023-08-07 20:45:57 -04:00
__init__.h Polish up comments 2019-01-31 11:42:15 -08:00
Terminal.c Restore CIRCUITPY-CHANGEs for stream protocols 2023-12-24 10:41:54 -06:00
Terminal.h status bar control 2022-08-30 15:23:44 -04:00