Damien George
653e1756c0
various: Update early copyright years to match actual edit history.
2019-05-17 18:06:11 +10:00
Paul Sokolovsky
016d9a40fe
various: Add and update my copyright line based on git history.
...
For modules I initially created or made substantial contributions to.
2019-05-17 18:04:15 +10:00
stijn
90fae9172a
py/objarray: Add support for memoryview.itemsize attribute.
...
This allows figuring out the number of bytes in the memoryview object as
len(memview) * memview.itemsize.
The feature is enabled via MICROPY_PY_BUILTINS_MEMORYVIEW_ITEMSIZE and is
disabled by default.
2019-05-14 17:15:17 +10:00
Henrik Vendelbo
ab93321e31
py/persistentcode: Change "len" type to size_t for mp_obj_str_get_data.
2019-05-13 12:38:06 +10:00
Damien George
c0a1de3c21
py/misc.h: Rename _MP_STRINGIFY to not use leading underscore in ident.
...
Macro identifiers with a leading underscore are reserved.
2019-05-09 17:11:33 +10:00
Damien George
4268d0e1ac
py/objgenerator: Remove unneeded forward decl and clean up white space.
2019-05-09 13:49:07 +10:00
Damien George
dac9d47671
py/objgenerator: Fix handling of None passed as 2nd arg to throw().
...
Fixes issue #4527 .
2019-05-09 13:40:28 +10:00
Damien George
7e90e22ea5
mpy-cross: Add --version command line option to print version info.
...
Prints something like:
MicroPython v1.10-304-g8031b7a25 on 2019-05-02; mpy-cross emitting mpy v4
2019-05-07 13:54:20 +10:00
Jun Wu
089c9b71d1
py: remove "if (0)" and "if (false)" branches.
...
Prior to this commit, building the unix port with `DEBUG=1` and
`-finstrument-functions` the compilation would fail with an error like
"control reaches end of non-void function". This change fixes this by
removing the problematic "if (0)" branches. Not all branches affect
compilation, but they are all removed for consistency.
2019-05-06 18:28:28 +10:00
Yonatan Goldschmidt
ef9843653b
extmod/moducryptolib: Add AES-CTR support.
...
Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR. Disabled by
default.
2019-05-06 18:09:48 +10:00
Damien George
5ea38e4d74
py/native: Improve support for bool type in viper functions.
...
Variables with type bool now act more like an int, and there is proper
casting to/from Python objects.
2019-05-03 23:18:30 +10:00
Damien George
9ef784dcc6
py/asmthumb: Support asm_thumb code running on normal ARM processors.
...
With this change, @micropython.asm_thumb functions will work on standard
ARM processors (that are in ARM state by default), in scripts and
precompiled .mpy files.
Addresses issue #4675 .
2019-05-01 15:24:21 +10:00
Damien George
27d22d8712
py/mpprint: Support printing %ld and %lu formats on 64-bit archs.
...
Fixes issue #4702 .
2019-04-23 12:40:15 +10:00
Damien George
9ce25d7022
py/runtime: Fix mp_unpack_ex so seq can't be reclaimed by GC during use.
...
The issue described in the comment added here can be seen by forcing a
gc_collect() at the start of each call to gc_alloc().
2019-04-15 11:30:19 +10:00
Damien George
3fa06cf61e
py/objset: Remove unused forward declaration and clean up whitespace.
2019-04-15 11:14:22 +10:00
Damien George
1754c71f45
py/runtime: Optimise to not create temp float for int to power negative.
2019-04-15 11:04:59 +10:00
Damien George
673e154dfe
py/makedefs: Use io.open with utf-8 encoding when processing source.
...
In case (user) source code contains utf-8 encoded data and the default
locale is not utf-8.
See #4592 .
2019-04-12 11:34:52 +10:00
Romain Goyet
dce785cc3d
py/nlrthumb: Add support for iOS where the C func is _nlr_push_tail.
2019-03-26 16:48:11 +11:00
Andrew Leech
8977c7eb58
py/scheduler: Convert micropythyon.schedule() to a circular buffer.
...
This means the schedule operates on a first-in, first-executed manner
rather than the current last-in, first executed.
2019-03-26 16:35:42 +11:00
Damien George
440462b18e
py/runtime: Remove long-obsolete MICROPY_FSUSERMOUNT init code.
...
In 1808b2e8d5 it was replaced by MICROPY_VFS
and related code.
2019-03-20 00:16:37 +11:00
Damien George
5a6026c614
py/compile: Check that arch is set when compiling native, viper or asm.
2019-03-14 12:22:25 +11:00
Damien George
55fcb83a42
py/compile: Support multiple inline asm emitters.
2019-03-14 12:22:25 +11:00
Damien George
d9d92f27d7
py/compile: Add support to select the native emitter at runtime.
2019-03-14 12:22:25 +11:00
Damien George
0e4c24ec08
py/nativeglue: Rename native convert funs to match other native helpers.
2019-03-14 12:22:25 +11:00
Damien George
3b973a5658
py: Move mp_native_type_from_qstr() from emitnative.c to nativeglue.c.
2019-03-14 12:22:25 +11:00