summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
2014-01-29py: Add compile option to enable/disable source line numbers.Damien George
2014-01-29Add qstr_info() function and bindings for unix port.Damien George
2014-01-28unix: Fix compile warnings for ffi module on 64-bit machine.Damien George
2014-01-29unix: Initial implementation of FFI module.Paul Sokolovsky
Foreign Function Interface module allows to load native dynamic libraries, call functions and access variables in them. This makes possible to write interface modules in pure Python. This module provides thin wrapper around libffi. ctypes compatibility might be possible to implement on top of this module (though ctypes allow to call functions without prototypes, which is not supported by libffi (i.e. implementation would be inefficient))).
2014-01-26Change -Og to -O0 in unix-cpy/Makefile; cast to small int in socket.c.Damien George
2014-01-26Merge pull request #226 from pfalcon/make-debugDamien George
unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.
2014-01-26unix socket: Add setsockopt() method.Paul Sokolovsky
2014-01-26unix socket: Add few more socket constants.Paul Sokolovsky
2014-01-26unix socket: Store module constants in data structure.Paul Sokolovsky
-147 bytes on x86.
2014-01-25unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.Paul Sokolovsky
Also, don't try to force debug info format, use native.
2014-01-25Implement mp_parse_node_free; print properly repr(string).Damien George
2014-01-25Add parse_node_free_struct() and use it to free parse tree after compilation.Paul Sokolovsky
TODO: Check lexer/parse/compile error path for leaks too.
2014-01-24Rework makefiles. Add proper dependency checking.Dave Hylands
2014-01-24unix main: Free input line.Paul Sokolovsky
Also, readline uses system malloc, so for symmetry, use the same for non-readline case.
2014-01-22Second stage of qstr revamp: uPy str object can be qstr or not.Damien George
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-20unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky
2014-01-20Don't preimport socket module.Paul Sokolovsky
2014-01-20unix socket: Add send() and recv() methods.Paul Sokolovsky
CPython _socket actually have only those and doesn't provide stream interface (higher-level CPython "socket" what adds this). +516 bytes x86.
2014-01-20unix io.FileIO: Add iteration support.Paul Sokolovsky
A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
2014-01-20Rename unix binary to 'micropython'.Damien George
2014-01-20unix: Implement sys.argv.Paul Sokolovsky
2014-01-19Change int to uint for n_args in function with variable arguments.Damien George
2014-01-19py: Add full traceback to exception printing.Damien George
2014-01-19Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-19Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky
2014-01-18Fix warnings about int/pointer casting.Damien George
2014-01-18Merge pull request #194 from pfalcon/socketDamien George
Add lean ("raw") socket module.
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-19Add lean ("raw") socket module.Paul Sokolovsky
2014-01-18Make VM stack grow upwards, and so no reversed args arrays.Damien George
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
2014-01-17Add long int implementation using C long long type, enable for unix port.Paul Sokolovsky
2014-01-15Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George
Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
2014-01-15Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George
Conflicts: tests/basics/tests/exception1.py
2014-01-15Merge branch 'master' of github.com:dpgeorge/micropythonDamien George
2014-01-15Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-14Merge pull request #170 from chipaca/masterDamien George
made DEBUG control CFLAGS in Makefiles other than stm as well.
2014-01-14Implemented int(str) in UNIXxyb
2014-01-13Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky
2014-01-13made DEBUG control CFLAGS in Makefiles oter than stm as well.John R. Lenton
2014-01-09py: Implement base class lookup, issubclass, isinstance.Damien George
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-08Make build output quieter.Dave Hylands
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
2014-01-08py: add variable argument exception constructor function.Damien George
Addresses issue #104.
2014-01-08unix: Add basic implementation of io.FileIO object.Paul Sokolovsky
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).
2014-01-07Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George
ian-v-cplusplus Conflicts: py/objcomplex.c