summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
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
2016-09-22unix: Enable btree module for coverage build.Damien George
2016-09-22all: 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-18unix/modjni: array(): Support creation of object arrays.Paul Sokolovsky
2016-09-17unix/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-16unix/modjni: Implement subscription for object arrays.Paul Sokolovsky
2016-09-12unix: Fix build for when MICROPY_PY_SOCKET=0.Renato Aguiar
2016-09-05unix,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-05py: 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-04tests/extmod: Add a test for framebuf module, tested by coverage build.Damien George
2016-09-02tests/unix/extra_coverage: Add test for str/bytes with invalid hash.Damien George
2016-09-01py/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-31unix,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-24extmod/modubinascii: Make crc32() support configurable.Paul Sokolovsky
Disable by default, enable in unix port.
2016-08-15ports: 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-10unix/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-07py/objstr: Make .partition()/.rpartition() methods configurable.Paul Sokolovsky
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
2016-08-07unix/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-06unix: Enable websocket module.Paul Sokolovsky
2016-07-31unix/Makefile: And note why btree module is disabled for coverage build.Paul Sokolovsky
2016-07-30py/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-28unix/file: Use generic stream flush() method.Paul Sokolovsky
2016-07-27unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open().Paul Sokolovsky
2016-07-27unix/file: ioctl(): Check that file is open before operations.Paul Sokolovsky
2016-07-27unix/file: Implement MP_STREAM_FLUSH ioctl.Paul Sokolovsky
2016-07-26unix/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.