69 Commits (b09cd0e1eca4f64ca452f68881c25533b7f2e8a0)

Author SHA1 Message Date
Damien George f1b6db2218 unix/file: If write syscall returns because of EINTR then try again. 9 years ago
Paul Sokolovsky 07209f8592 all: Rename mp_obj_type_t::stream_p to protocol. 9 years ago
Paul Sokolovsky a5d2af7949 unix/file: "encoding" arg to open() isn't kw-only. 9 years ago
Paul Sokolovsky e5fa163a4c unix/file: Parse "buffering" argument of open() builtin. 9 years ago
Paul Sokolovsky a63a4761cd unix/file: Stop assuming that O_RDWR == O_RDONLY | O_WRONLY. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Paul Sokolovsky 2c1620ce1f unix: Implement uos.dupterm(). Conditional on MICROPY_PY_OS_DUPTERM. 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 cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Ari Suutari 63b9e598a3 unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a"). 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 3926c72dd2 unix: Add target to build "minimal" uPy interpreter. 10 years ago
Damien George cd34207409 py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. 10 years ago
Damien George 6d7e47087f unix: Prefix includes with py/; remove need for -I../py. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 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
stijn 2fe4cf7761 Implement kwargs for builtin open() and _io.FileIO 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George adf0f2ae1a py: Change stream protocol API: fns return uint; is_text for text. 10 years ago
stijn 73ab8cc21d Add fsync for windows, i.e. _commit. See dce8876 10 years ago
Paul Sokolovsky dce8876dbe unix: file: No fsync() on Windows. 10 years ago
Paul Sokolovsky 122c9db3db unix: file: Implement .flush() method. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Paul Sokolovsky 9e29666bf9 py: Implement proper separation between io.FileIO and io.TextIOWrapper. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d5f5b2f766 py, stream: Implement readlines for a stream. 11 years ago
Damien George e69b7e8288 unix, file.c: adhere to coding conventions. 11 years ago
stijn a89e93e050 CPython compatibility: raise an error for operations on a closed file descriptor 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky fa6f0506c1 unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues. 11 years ago
Paul Sokolovsky acb13886fc unix: OSError's args[0] should be errno numeric value. 11 years ago
Paul Sokolovsky 1f2ca1c1f9 unix file: mingw32 has STDIN_FILENO and friends in stdio.h . 11 years ago
Paul Sokolovsky 5500cdeec7 py, unix: Convert sys module to static representation. 11 years ago
Paul Sokolovsky 72d70cb045 unix, stmhal: Consistently use "FileIO" as class name for file objects. 11 years ago
Damien George 27e735fd18 py: Replace stream_p with *stream_p in mp_obj_type_t. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky cd31d826bf unix: Use STATIC modifier to enable code size analysis via map file. 11 years ago
Paul Sokolovsky c61ce96590 unix file: Implement context manager protocol (for "with" statement). 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago