summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
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
2016-11-21unix/Makefile: Update freedos target for change of USELECT config name.Damien George
2016-11-21unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX.Paul Sokolovsky
To not conflict with recently made available globally baremetal moduselect.
2016-11-16py: Factor out persistent-code reader into separate files.Damien George
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
2016-11-14all: Remove readall() method, which is equivalent to read() w/o args.Paul Sokolovsky
Its addition was due to an early exploration on how to add CPython-like stream interface. It's clear that it's not needed and just takes up bytes in all ports.
2016-11-08unix: Add symlinks for upip to make it frozen into binary.Damien George
2016-11-08py: Move frozen bytecode Makefile rules from ports to common mk files.Damien George
Now, to use frozen bytecode all a port needs to do is define FROZEN_MPY_DIR to the directory containing the .py files to freeze, and define MICROPY_MODULE_FROZEN_MPY and MICROPY_QSTR_EXTRA_POOL.
2016-11-07tools, unix: Replace upip tarball with just source files.Paul Sokolovsky
To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
2016-11-03windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounterstijn
2016-11-02unix: fix symbol references for x86 MacJan Pochyla
2016-10-29extmod/utime_mphal: Implement ticks_add(), add to all maintained ports.Paul Sokolovsky
2016-10-29unix/mphalport.h: Add dummy definition of mp_hal_ticks_cpu().Paul Sokolovsky
To fix coverage build.
2016-10-29unix/modtime: Switch ticks/sleep_ms/us() to utime_mphal.Paul Sokolovsky
2016-10-29unix/mphalport.h: Add warning of mp_hal_delay_ms() implementation.Paul Sokolovsky
It's implemented in terms of usleep(), and POSIX doesn't guarantee that usleep() can sleep for more than a second. This restriction unlikely applies to any real-world system, but...
2016-10-29unix/modtime: Use ticks_diff() implementation from extmod/utime_mphal.c.Paul Sokolovsky
2016-10-25unix/Makefile: Remove references to deprecated pip-micropython.Paul Sokolovsky
2016-10-21py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.Damien George
In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros.
2016-10-16esp8266, stmhal, unix: MAKE_FROZEN is consistently defined in mkenv.mk.Paul Sokolovsky
2016-10-14py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.Damien George
Now there is just one function to allocate a new vstr, namely vstr_new (in addition to vstr_init etc). The caller of this function should know what initial size to allocate for the buffer, or at least have some policy or config option, instead of leaving it to a default (as it was before).
2016-10-07unix: Use common RAISE_ERRNO macro from mphalport.h.Damien George
2016-10-07unix: Use mp_raise_OSError helper function.Damien George
2016-09-23py/py.mk: Add support for building modussl_mbedtls.Paul Sokolovsky