summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
2017-04-26unix: Remove obsolete MICROPY_FATFS macro.Damien George
It doesn't do anything. The VFS feature is controlled by MICROPY_VFS and the FatFS driver, by MICROPY_VFS_FAT (which are set in mpconfigport.h).
2017-04-22mpy-cross, unix, windows, stmhal: Enable return-if-else optimisation.Damien George
Prior to making this a config option it was previously available on these (and all other) ports, and it makes sense to keep it enabled for mpy-cross as well as ports that have a decent amount of space for the code.
2017-04-12unix: Enabled high-quality float hashing in coverage build.Damien George
2017-04-11unix, windows: Use core-provided KeyboardInterrupt exception object.Damien George
2017-04-01all: Move BYTES_PER_WORD definition from ports to py/mpconfig.hDamien George
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
2017-03-31all: Use full path name when including mp-readline/timeutils/netutils.Damien George
This follows the pattern of how all other headers are now included, and makes it explicit where the header file comes from. This patch also removes -I options from Makefile's that specify the mp-readline/timeutils/ netutils directories, which are no longer needed.
2017-03-31unix: Convert mp_uint_t to size_t in alloc.c.Pavol Rusnak
2017-03-29unix: Convert mp_uint_t to size_t for use of mp_obj_list_get.Damien George
2017-03-25unix: Use mp_obj_str_get_str instead of mp_obj_str_get_data.Damien George
2017-03-23all/Makefile: Remove -ansi from GCC flags, its ignored anyway.Krzysztof Blazewicz
The -ansi flag is used for C dialect selection and it is equivalent to -std=c90. Because it goes right before -std=gnu99 it is ignored as for conflicting flags GCC always uses the last one.
2017-03-20unix/coverage: Enable scheduler and add tests for it.Damien George
2017-03-20unix: Use mp_handle_pending() in time.sleep().Damien George
2017-03-14tests: Improve binary.c test coverage.Rami Ali
2017-03-14unix/main: Refactor to put lexer constructors all in one place.Damien George
The lexer can now raise an exception on construction so it must go within an nlr handler block.
2017-03-05unix/moduselect: Properly implement ipoll object iteration.Paul Sokolovsky
TODO: There's another issue to care about: poll set being modified during iteration.
2017-03-03unix: Remove remaining, obsolete traces of GNU readline support.Damien George
2017-03-02unix/modmachine: Add Signal class to machine module.Damien George
2017-02-16py: Add iter_buf to getiter type method.Damien George
Allows to iterate over the following without allocating on the heap: - tuple - list - string, bytes - bytearray, array - dict (not dict.keys, dict.values, dict.items) - set, frozenset Allows to call the following without heap memory: - all, any, min, max, sum TODO: still need to allocate stack memory in bytecode for iter_buf.
2017-02-13unix/moduselect: Implement ipoll() method with no-allocation policy.Paul Sokolovsky
ipoll() allows to poll streams without allocating any memory: this method returns an iterator (a poll object itself), and the iterator yields preallocated "callee-owned tuple" with polling results for each active stream. The only operation a caller is allowed to do with this tuple is extracting values from it (storing the tuple as a whole somewhere is not allowed).
2017-02-09py/objtype: Implement __delattr__ and __setattr__.dmazzella
This patch implements support for class methods __delattr__ and __setattr__ for customising attribute access. It is controlled by the config option MICROPY_PY_DELATTR_SETATTR and is disabled by default.
2017-02-07unix/main: Properly handle MICROPYPATH starting with ':'.Paul Sokolovsky
In other words, where first path component is an empty string.
2017-02-06unix: Fix freedos port build problems.Nikita Melentev
2017-02-02py: Added optimised support for 3-argument calls to builtin.pow()Nicko van Someren
Updated modbuiltin.c to add conditional support for 3-arg calls to pow() using MICROPY_PY_BUILTINS_POW3 config parameter. Added support in objint_mpz.c for for optimised implementation.
2017-01-30unix/modos: Remove VfsFat from uos module, it's now in uos_vfs module.Damien George
2017-01-30extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.Damien George
Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
2017-01-30unix/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.Damien George
2017-01-30extmod: Remove MICROPY_FSUSERMOUNT and related files.Damien George
Replaced by MICROPY_VFS and the VFS sub-system.
2017-01-27unix/fatfs_port: Include new oofatfs header.Damien George
2017-01-27unix: Change to use new generic VFS sub-system in coverage build.Damien George
This patch includes a new module "uos_vfs" which can be used for testing the VFS syb-system.
2017-01-27extmod: Rename vfs_fat_file.h to vfs_fat.h.Damien George
And move declaration of mp_fat_vfs_type to this file.
2017-01-27unix: Get minimal version compiling again.Damien George
2017-01-27unix: Switch to OO version of FatFS library.Damien George
2017-01-22unix: Enable MICROPY_PY_BUILTINS_HELP_MODULES in coverage build.Damien George
2017-01-22unix: Enable builtin help function in coverage build.Damien George
2017-01-16tests: Improve frozen import test coverage.Rami Ali
2017-01-16unix/coverage: Move coverage #if guard back to top of file.Damien George
2017-01-16tests: Improve stream.c test coverage.Rami Ali
2017-01-08tests/unix/extra_coverage: Add tests for importing frozen packages.Damien George
2017-01-05unix/Makefile: Allow cache-map-lookup optimisation with frozen bytecode.Damien George
2017-01-05unix: Enable and add basic frozen str and frozen mpy in coverage build.Damien George
2017-01-05unix/Makefile: Split long line for coverage target, easier to modify.Damien George
2017-01-05tests/unix: Improve formatfloat.c test coverage using C.Rami Ali
2017-01-05tests: Improve warning.c test coverage.Rami Ali
2017-01-04all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
2016-12-31unix/moduselect: Fix nanbox build with recent changes.Paul Sokolovsky
2016-12-31unix/moduselect: If file object passed to .register(), return it in .poll().Paul Sokolovsky
This makes unix "uselect" compatible with baremetal "uselect". Previosuly, unix version accepted file/socket objects, but internally converted that to file descriptors, and that's what .poll() returned. To acheive new behavior, file-like objects are stored internally in an array, in addition to existing array of struct pollfd. This array is created only on first case of file-like object being passed to .register(). If only raw fd's are passed, there will be no additional memory used comparing to the original implementation.
2016-12-29tests/unix: Improve runtime_utils.c test coverage.Rami Ali
2016-12-22unix/Makefile: Make "coverage_test" target mirror Travis test actions.Damien George
2016-12-22unix/main: Allow to print the parse tree in coverage build.Damien George
Passing -v -v -v on the command line of the coverage build will now print the parse tree (as well as other things at this verbosity level).
2016-12-22unix: Enable utimeq module.Paul Sokolovsky