96 Commits (ca2b1d6b36b11706b537eba90144469ba28561d2)

Author SHA1 Message Date
Damien George 6abede2ca9 py/stream: Introduce and use efficient mp_get_stream to access stream_p. 6 years ago
Ayke van Laethem d43c737756 py/stream: Use uPy errno instead of system's for non-blocking check. 7 years ago
Damien George cf31d384f1 py/stream: Switch stream close operation from method to ioctl. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 7885a425d7 py/stream: Remove unnecessary checks for NULL return from vstr_add_len. 7 years ago
Paul Sokolovsky e3383e9352 py/stream: seek: Consistently handle negative offset for SEEK_SET. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 8 years ago
Paul Sokolovsky 59a1201da9 all: Remove readall() method, which is equivalent to read() w/o args. 8 years ago
Paul Sokolovsky 8a49905a2f py/stream: Typo fix in comment. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 3a0a771730 py: Add mp_raise_OSError(errno) helper function. 8 years ago
Damien George 79ec869f95 py/stream: Remove unnecessary check for NULL return from vstr_extend. 8 years ago
Krzysztof Blazewicz 6562076454 py/stream.c: use mp_obj_get_type in mp_get_stream_raise 8 years ago
Paul Sokolovsky 61e77a4e88 py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting. 8 years ago
Paul Sokolovsky 4f1b0292db py/stream: Add adapter methods with POSIX-compatible signatures. 8 years ago
Paul Sokolovsky a60b0263ba py/stream: Implement generic flush() method, in terms of C-level ioctl. 8 years ago
Paul Sokolovsky ad9b9c7621 py/stream: Implement 2- and 3-arg write() method as an extension to CPython. 8 years ago
Paul Sokolovsky 07209f8592 all: Rename mp_obj_type_t::stream_p to protocol. 9 years ago
Paul Sokolovsky 497660fcda py/stream: Add mp_stream_close() helper function. 9 years ago
Paul Sokolovsky 7f7c84b10a py/stream: Support both "exact size" and "one underlying call" operations. 9 years ago
Damien George 358e5d8bad py/stream: Move uPy func obj wrappers to below their respective funcs. 9 years ago
Damien George 657aef66ff py/stream: Simplify arg extraction logic for stream_ioctl. 9 years ago
Paul Sokolovsky 558fd5d228 py/stream: ioctl(): Properly support 2-arg form. 9 years ago
Paul Sokolovsky 6c3db26ab7 py/stream: Fix signed comparison issue. 9 years ago
Paul Sokolovsky 0c97e4c414 py/stream: Add Python-level ioctl() method. 9 years ago
Paul Sokolovsky 53ad5edc01 py/stream: Fix stupid thinko with variable naming/shadowing. 9 years ago
Paul Sokolovsky 4a02a8f74d py/stream: Fix object vs ptr usecase in mp_stream_writeall(). 9 years ago
Paul Sokolovsky d4c8e626f2 py/stream: Add mp_stream_writeall() helper function. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George e84325bd1d py: Add mp_get_stream_raise to factor out check for stream methods. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 4e7107a572 py: Change mp_print_strn_t func type to use size_t for the str length. 9 years ago
Paul Sokolovsky 7799410950 py/stream: Allow to reuse is_nonblocking_error(). 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Damien George c50772d19f py: Add mp_obj_get_int_truncated and use it where appropriate. 10 years ago
Damien George 0d3cb6726d py: Change vstr so that it doesn't null terminate buffer by default. 10 years ago
Paul Sokolovsky ca3dbb8d8b stream: readall(): Make sure there's a trailing NUL char. 10 years ago
Paul Sokolovsky 425f952a1e stream: Fix readall() implementation in respect to NUL terminator bytes. 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George be6d8be91e py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 10 years ago
Damien George 5694cc5490 py: Make stream seek correctly check for ioctl fn; add seek for textio. 10 years ago
Paul Sokolovsky 838eb1fa2d stream: Implement seek operation support via ioctl, wrapped in generic method. 10 years ago
Damien George d00d8ac95c py: Use mp_uint_t where appropriate in stream functions. 10 years ago
Paul Sokolovsky e2f8d98525 stream: Add optional 2nd "length" arg to .readinto() - extension to CPython. 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Damien George b7a4b0f86f py: Improve stream_read so it doesn't need to alloc 2 bits of heap. 10 years ago