summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* unix: libffi include path now found using pkg-config.Damien George2014-02-01
| | | | Hopefully this works for other people as well :)
* Add mpconfigport.mk file to configure which modules to include into build.Paul Sokolovsky2014-02-01
| | | | | Proof of concept, controls "ffi" module as one which requires external dependencies.
* py: Add compile option to enable/disable source line numbers.Damien George2014-01-29
|
* Add qstr_info() function and bindings for unix port.Damien George2014-01-29
|
* unix: Fix compile warnings for ffi module on 64-bit machine.Damien George2014-01-28
|
* unix: Initial implementation of FFI module.Paul Sokolovsky2014-01-29
| | | | | | | | | | | 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))).
* Change -Og to -O0 in unix-cpy/Makefile; cast to small int in socket.c.Damien George2014-01-26
|
* Merge pull request #226 from pfalcon/make-debugDamien George2014-01-26
|\ | | | | unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.
| * unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.Paul Sokolovsky2014-01-25
| | | | | | | | Also, don't try to force debug info format, use native.
* | unix socket: Add setsockopt() method.Paul Sokolovsky2014-01-26
| |
* | unix socket: Add few more socket constants.Paul Sokolovsky2014-01-26
| |
* | unix socket: Store module constants in data structure.Paul Sokolovsky2014-01-26
|/ | | | -147 bytes on x86.
* Implement mp_parse_node_free; print properly repr(string).Damien George2014-01-25
|
* Add parse_node_free_struct() and use it to free parse tree after compilation.Paul Sokolovsky2014-01-25
| | | | TODO: Check lexer/parse/compile error path for leaks too.
* Rework makefiles. Add proper dependency checking.Dave Hylands2014-01-24
|
* unix main: Free input line.Paul Sokolovsky2014-01-24
| | | | | Also, readline uses system malloc, so for symmetry, use the same for non-readline case.
* Second stage of qstr revamp: uPy str object can be qstr or not.Damien George2014-01-22
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-21
|\ | | | | | | | | | | | | | | | | Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
| * unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky2014-01-20
| |
| * Don't preimport socket module.Paul Sokolovsky2014-01-20
| |
| * unix socket: Add send() and recv() methods.Paul Sokolovsky2014-01-20
| | | | | | | | | | | | | | CPython _socket actually have only those and doesn't provide stream interface (higher-level CPython "socket" what adds this). +516 bytes x86.
| * unix io.FileIO: Add iteration support.Paul Sokolovsky2014-01-20
| | | | | | | | | | A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
* | Revamp qstrs: they now include length and hash.Damien George2014-01-21
|/ | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* Rename unix binary to 'micropython'.Damien George2014-01-20
|
* unix: Implement sys.argv.Paul Sokolovsky2014-01-20
|
* Change int to uint for n_args in function with variable arguments.Damien George2014-01-19
|
* py: Add full traceback to exception printing.Damien George2014-01-19
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-19
|\
| * Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky2014-01-19
| |
* | py: Add module/function/class name to exceptions.Damien George2014-01-19
|/ | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
* Fix warnings about int/pointer casting.Damien George2014-01-18
|
* Merge pull request #194 from pfalcon/socketDamien George2014-01-18
|\ | | | | Add lean ("raw") socket module.
| * Add lean ("raw") socket module.Paul Sokolovsky2014-01-19
| |
* | Add source file name and line number to error messages.Damien George2014-01-18
|/ | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
| | | | | | | | | | | | | | | 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.
* Add long int implementation using C long long type, enable for unix port.Paul Sokolovsky2014-01-17
|
* Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George2014-01-15
|\ | | | | | | | | | | | | Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
| * Implemented int(str) in UNIXxyb2014-01-14
| |
* | Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George2014-01-15
|\ \ | | | | | | | | | | | | Conflicts: tests/basics/tests/exception1.py
| * | type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
| | |
* | | Merge branch 'master' of github.com:dpgeorge/micropythonDamien George2014-01-15
|\ \ \
| * | | Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky2014-01-15
| |/ /
* / / Convert parse errors to exceptions.Damien George2014-01-15
|/ / | | | | | | | | Parser no longer prints an error, but instead returns an exception ID and message.
* | Merge pull request #170 from chipaca/masterDamien George2014-01-14
|\ \ | | | | | | made DEBUG control CFLAGS in Makefiles other than stm as well.
| * | made DEBUG control CFLAGS in Makefiles oter than stm as well.John R. Lenton2014-01-13
| |/
* / Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky2014-01-13
|/
* py: Implement base class lookup, issubclass, isinstance.Damien George2014-01-09
|
* Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George2014-01-09
| | | | | Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
* Make build output quieter.Dave Hylands2014-01-08
| | | | | | Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
* py: add variable argument exception constructor function.Damien George2014-01-08
| | | | Addresses issue #104.