Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-29 | tests/unix: Improve runtime_utils.c test coverage. | Rami Ali | |
2016-12-22 | unix/Makefile: Make "coverage_test" target mirror Travis test actions. | Damien George | |
2016-12-22 | unix/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-22 | unix: Enable utimeq module. | Paul Sokolovsky | |
2016-11-21 | unix/Makefile: Update freedos target for change of USELECT config name. | Damien George | |
2016-11-21 | unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX. | Paul Sokolovsky | |
To not conflict with recently made available globally baremetal moduselect. | |||
2016-11-16 | py: 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-14 | all: 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-08 | unix: Add symlinks for upip to make it frozen into binary. | Damien George | |
2016-11-08 | py: 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-07 | tools, 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-03 | windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounter | stijn | |
2016-11-02 | unix: fix symbol references for x86 Mac | Jan Pochyla | |
2016-10-29 | extmod/utime_mphal: Implement ticks_add(), add to all maintained ports. | Paul Sokolovsky | |
2016-10-29 | unix/mphalport.h: Add dummy definition of mp_hal_ticks_cpu(). | Paul Sokolovsky | |
To fix coverage build. | |||
2016-10-29 | unix/modtime: Switch ticks/sleep_ms/us() to utime_mphal. | Paul Sokolovsky | |
2016-10-29 | unix/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-29 | unix/modtime: Use ticks_diff() implementation from extmod/utime_mphal.c. | Paul Sokolovsky | |
2016-10-25 | unix/Makefile: Remove references to deprecated pip-micropython. | Paul Sokolovsky | |
2016-10-21 | py: 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-16 | esp8266, stmhal, unix: MAKE_FROZEN is consistently defined in mkenv.mk. | Paul Sokolovsky | |
2016-10-14 | py/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-07 | unix: Use common RAISE_ERRNO macro from mphalport.h. | Damien George | |
2016-10-07 | unix: Use mp_raise_OSError helper function. | Damien George | |
2016-09-23 | py/py.mk: Add support for building modussl_mbedtls. | Paul Sokolovsky | |
2016-09-22 | unix: Enable btree module for coverage build. | Damien George | |
2016-09-22 | all: Remove 'name' member from mp_obj_module_t struct. | Damien George | |
One can instead lookup __name__ in the modules dict to get the value. | |||
2016-09-18 | unix/modjni: array(): Support creation of object arrays. | Paul Sokolovsky | |
2016-09-17 | unix/modjni: Add array() top-level function to create Java array. | Paul Sokolovsky | |
Takes element primitive type encoded as a char per standard JNI encoding, and array size. TODO: Support object arrays. | |||
2016-09-16 | unix/modjni: Implement subscription for object arrays. | Paul Sokolovsky | |
2016-09-12 | unix: Fix build for when MICROPY_PY_SOCKET=0. | Renato Aguiar | |
2016-09-05 | unix,stmhal,esp8266: When find'ing frozen files follow symbolic links. | Damien George | |
It's useful to be able to use symbolic links to add files and directories to the set of scripts to be frozen. | |||
2016-09-05 | py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled. | Delio Brignoli | |
This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves. | |||
2016-09-04 | tests/extmod: Add a test for framebuf module, tested by coverage build. | Damien George | |
2016-09-02 | tests/unix/extra_coverage: Add test for str/bytes with invalid hash. | Damien George | |
2016-09-01 | py/mpprint: Fail an assertion with unsupported format specifiers. | Delio Brignoli | |
Arguments of an unknown type cannot be skipped and continuing to parse a format string after encountering an unknown format specifier leads to undefined behaviour. This patch helps to find use of unsupported formats. | |||
2016-08-31 | unix,stmhal,esp8266: When find'ing frozen files don't use extra slash. | Damien George | |
This extra forward slash for the starting-point directory is unnecessary and leads to additional slashes on Max OS X which mean that the frozen files cannot be imported. Fixes #2374. | |||
2016-08-24 | extmod/modubinascii: Make crc32() support configurable. | Paul Sokolovsky | |
Disable by default, enable in unix port. | |||
2016-08-15 | ports: Remove typedef of machine_ptr_t, it's no longer needed. | Damien George | |
This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file. | |||
2016-08-10 | unix/mpconfigport.h: Don't include stdio.h on MacOS. | ilovezfs | |
Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator" | |||
2016-08-07 | py/objstr: Make .partition()/.rpartition() methods configurable. | Paul Sokolovsky | |
Default is disabled, enabled for unix port. Saves 600 bytes on x86. | |||
2016-08-07 | unix/moduselect: Allow poll.register(), etc. accept fd-like objects. | Paul Sokolovsky | |
This includes file and socket objects, backed by Unix file descriptor. This improves compatibility with stmhal's uselect (and convenience of use), though not completely: return value from poll.poll() is still raw file descriptor. | |||
2016-08-06 | unix: Enable websocket module. | Paul Sokolovsky | |
2016-07-31 | unix/Makefile: And note why btree module is disabled for coverage build. | Paul Sokolovsky | |
2016-07-30 | py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting. | Paul Sokolovsky | |
To filter out even prototypes of mp_stream_posix_*() functions, which require POSIX types like ssize_t & off_t, which may be not available in some ports. | |||
2016-07-28 | unix/file: Use generic stream flush() method. | Paul Sokolovsky | |
2016-07-27 | unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open(). | Paul Sokolovsky | |
2016-07-27 | unix/file: ioctl(): Check that file is open before operations. | Paul Sokolovsky | |
2016-07-27 | unix/file: Implement MP_STREAM_FLUSH ioctl. | Paul Sokolovsky | |
2016-07-26 | unix/mpconfigport.h: Include stdio.h by default. | Paul Sokolovsky | |
This allows to use printf() in a any source file with unix port, for quick debugging. |