aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-01modffi: Add special 'C' code for passing a callback function pointer.Paul Sokolovsky
2014-06-30Merge pull request #710 from iabdalkader/assertDamien George
Fix assert_func warning/error
2014-06-30py: Improvements to native emitter.Damien George
Native emitter can now compile try/except blocks using nlr_push/nlr_pop. It probably only works for 1 level of exception handling. It doesn't work on Thumb (only x64). Native emitter can also handle some additional op codes. With this patch, 198 tests now pass using "-X emit=native" option to micropython.
2014-06-29stmhal: pyb.adc: Clarify that buffer with elements of any size can be used.Paul Sokolovsky
Based on forum post: http://forum.micropython.org/viewtopic.php?f=6&t=193
2014-06-29Merge pull request #730 from stinos/windows-mpconfigPaul Sokolovsky
windows: Sync mpconfigport.h with the unix' version
2014-06-29gendoc.py: Support modules w/o functions and/or classes.Paul Sokolovsky
I.e. don't assume that both are always present.
2014-06-29modffi: Support short types.Paul Sokolovsky
2014-06-29windows: Sync mpconfigport.h with the unix' versionstijn
- rearrange/add definitions that were not there so it's easier to compare both - use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway - define EWOULDBLOCK, it is missing from ingw32
2014-06-28stmhal: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-28py: Make unichar_charlen() accept/return machine_uint_t.Paul Sokolovsky
2014-06-28Merge pull request #729 from stinos/fix-include-orderPaul Sokolovsky
unix: Fix mpconfig.h not being included before misc.h
2014-06-28unix: Fix mpconfig.h not being included before misc.hstijn
This fixes count_lead_ones in misc.h not compiling due to unknown types
2014-06-28Merge branch 'unicode'Damien George
2014-06-28unix, stmhal: Add option for STR_UNICODE to mpconfigport.h.Damien George
Unicode is disabled by default for now, since FileIO.read(n) is currently not implemented for text-mode files, and this is an often function.
2014-06-28py: Add missing #endif.Damien George
2014-06-28tests: Write output in byte mode, not text mode.Damien George
This enables testing unicode and non-unicode implementations.
2014-06-28py: Small comments, name changes, use of machine_int_t.Damien George
2014-06-28Merge branch 'master' into unicodeDamien George
Conflicts: py/mpconfig.h
2014-06-28py: Add protection against printing too nested or recursive data structures.Paul Sokolovsky
With a test which cannot be automatically validated so far.
2014-06-27bare-arm: Hint of setting MICROPY_ERROR_REPORTING to REPORTING_TERSE.Paul Sokolovsky
Commented out so far, as enabled leads to dozen more bytes used actually (due to string pooling effects).
2014-06-27bare-arm: Disable array module and even bytearray type.Paul Sokolovsky
To squeeze few more hundreds of bytes.
2014-06-27py: Allow to disable array module and bytearray type.Paul Sokolovsky
array.array and bytearray share big deal of code, so to get real savings, both need to be disabled.
2014-06-27bare-arm: Enable link map file.Paul Sokolovsky
This port supposed to be demo of uPy minimality, so let people behold it in details.
2014-06-27py: Move stack_ctrl_init() to mp_init().Paul Sokolovsky
As stack checking is enabled by default, ports which don't call stack_ctrl_init() are broken now (report RuntimeError on startup). Save them trouble and just init stack control framework in interpreter init.
2014-06-27Merge pull request #720 from iabdalkader/mcu_namePaul Sokolovsky
Change MCU name config micro
2014-06-27Change MCU name config micromux
2014-06-27Merge pull request #717 from stinos/dead-codePaul Sokolovsky
unix: Remove unused CTRL-D definition
2014-06-27Merge pull request #703 from iabdalkader/micro_namesPaul Sokolovsky
Add MICROPY_HW_MICRO_NAME to boards config
2014-06-27tests: Add basic test for unicode file i/o.Paul Sokolovsky
2014-06-27streams: Reading by char count from unicode text streams is not implemented.Paul Sokolovsky
2014-06-27misc: Add count_lead_ones() function, useful for UTF-8 handling.Paul Sokolovsky
2014-06-27tests: Test for explicit start/end args to str methods for unicode.Paul Sokolovsky
2014-06-27objstrunicode: Refactor str_index_to_ptr() following objstr.Paul Sokolovsky
2014-06-27objstr: 64-bit issues.Paul Sokolovsky
2014-06-27objstrunicode: Signedness issues.Paul Sokolovsky
2014-06-27unicode: Make get_char()/next_char()/charlen() be 8-bit compatible.Paul Sokolovsky
Based on config define.
2014-06-27tests: Add tests for unicode find()/rfind()/index().Paul Sokolovsky
2014-06-27objstr: find(), rfind(), index(): Make return value be unicode-aware.Paul Sokolovsky
2014-06-27unicode: Add utf8_ptr_to_index().Paul Sokolovsky
Useful when we have pointer to char inside string, but need to return char index. (E.g. str.find()).
2014-06-27py: Add dedicated unicode header.Paul Sokolovsky
2014-06-27tests: Add test for unicode string iteration.Paul Sokolovsky
2014-06-27objstrunicode: Implement iterator.Paul Sokolovsky
2014-06-27objstrunicode: Re-add buffer protocol back for now, required for io.StringIO.Paul Sokolovsky
2014-06-27objstrunicode: Revamp len() handling for unicode, and optimize bool().Paul Sokolovsky
2014-06-27objstrunicode: Get rid of bytes checking, it's separate type.Paul Sokolovsky
2014-06-27py: Make MICROPY_PY_BUILTINS_STR_UNICODE=1 buildable.Paul Sokolovsky
2014-06-27py: Prune unneeded code from objstrunicode, reuse code in objstr.Paul Sokolovsky
2014-06-27vstr: Restore bytestr compatibility.Paul Sokolovsky
2014-06-27builtin: Restore bytestr compatibility.Paul Sokolovsky
2014-06-27lexer, vstr: Add unicode support.Chris Angelico