104 Commits (fe16e785fe76ca2c84b82512c427c7fa57176abe)

Author SHA1 Message Date
Damien George e08ca78f40 py/stream: Remove mp_stream_errno and use system errno instead. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George bfbd94401d py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t. 5 years ago
Paul Sokolovsky 8fea833e3f py: Update my copyright info on some files. 6 years ago
Damien George 9ab816d676 py/stream: Adjust mp_stream_posix_XXX to take void*, not mp_obj_t. 6 years ago
Damien George 34344a413f py/stream: Remove stray empty line at start of file. 6 years ago
Damien George 2c8d130f70 py/stream: Update comment for mp_stream_write_adaptor. 6 years ago
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