45 Commits (25fc41dd316c38df3e2a6cfe4b53322d76dc92fc)

Author SHA1 Message Date
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
xbe c93a22197b unix: Clean up includes. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Paul Sokolovsky 910843e86d Allow ports to define statically builtin functions. 11 years ago
Damien George d46ca25757 Fix some int casting that failed on 64 bit architecture. 11 years ago
Paul Sokolovsky 1e19b24ea0 io.File, socket types: Add fileno() method. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky 51ee44a718 unix file: Refactor and add sys.stdout/stdin/stderr. 11 years ago
Paul Sokolovsky decd597273 unix io.FileIO: Add iteration support. 11 years ago
Paul Sokolovsky 50a2d6ff59 Fix incorrect prototype of mp_builtin_open() after args refactor. 11 years ago
Damien George 20006dbba9 Make VM stack grow upwards, and so no reversed args arrays. 11 years ago
Paul Sokolovsky 9953ca432b Add unbuffered readline() implementation for Raw I/O files. 11 years ago
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
Paul Sokolovsky 5225450b9f Add generic impl of stream .readall() method. Use one for unix io.FileIO. 11 years ago
Damien George 6c73ca1e75 py: add variable argument exception constructor function. 11 years ago
Paul Sokolovsky e0e79ae6d6 unix: Add basic implementation of io.FileIO object. 11 years ago