summaryrefslogtreecommitdiffstatshomepage
path: root/lib/utils/pyexec.c
Commit message (Collapse)AuthorAge
* all: Use the name MicroPython consistently in commentsAlexander Steffen2017-07-31
| | | | | There were several different spellings of MicroPython present in comments, when there should be only one.
* lib/utils/pyexec: Update event-driven REPL to match non-event REPL.Tom Collins2017-05-05
| | | | | Don't print dupe ">>> " prompt when starting event-driven REPL. Clear incomplete line in transition from raw to friendly REPL.
* lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.Damien George2017-03-14
|
* lib/utils/pyexec: Refactor to put lexer constructors all in one place.Damien George2017-03-14
| | | | | The lexer can now raise an exception on construction so it must go within an nlr handler block.
* lib/utils/pyexec: Allow to compile when the uPy compiler is disabled.Damien George2017-02-27
|
* lib/utils/pyexec: Only print help prompt if HELP feature is enabled.Damien George2017-01-22
|
* zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.Paul Sokolovsky2016-10-26
| | | | | With other ports. Other ports declare it in mphalport.h, it can be inline or macro.
* lib/utils/pyexec: Fix compilation warning of type vs format mismatch.Paul Sokolovsky2016-10-26
| | | | | | | This happens with some compilers on some architectures, which don't define size_t as unsigned int. MicroPython's printf() dooesn't support obscure format specifiers for size_t, so the obvious choice is to explicitly cast to unsigned, to match %u used in printf().
* lib/utils/pyexec: Add mp_hal_set_interrupt_char() prototype.Vincenzo Frascino2016-10-26
| | | | | | This patch removes a compilation warning in pyexec. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
* lib/utils/pyexec: Allow behaviour of SystemExit to be configurable.Damien George2016-10-17
| | | | | Setting the pyexec_system_exit variable to PYEXEC_FORCED_EXT allows SystemExit exceptions to terminate the pyexec functions.
* py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.Damien George2016-10-14
| | | | | | | 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).
* lib/utils/pyexec: Don't treat SystemExit as "forced exit".Paul Sokolovsky2016-10-12
| | | | | | "Forced exit" is treated as soft-reboot (Ctrl+D). But expected effect of calling sys.exit() is termination of the current script, not any further and more serious actions like mentioned soft reboot.
* lib/utils/pyexec: qstr_pool_info() requires size_t* parameters.Paul Sokolovsky2016-08-30
|
* lib/utils/pyexec: Use full path to readline.h header, per latest conventions.Paul Sokolovsky2016-07-21
|
* lib/utils/pyexec: Condition-out GC calls from pyexec.Colin Hogben2016-04-19
| | | | | | | | | A port which uses lib/utils/pyexec.c but which does not enable garbage collection should not need to implement the gc_collect function. This patch also moves the gc_collect call to after printing the qstr info. Since qstrs cannot be collected it should not make any difference to the printed statistics.
* py: Add ability to have frozen persistent bytecode from .mpy files.Damien George2016-04-13
| | | | | | | The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
* esp8266: Disallow recursive calls to REPL.Paul Sokolovsky2016-04-01
| | | | | | | | | Before this change, if REPL blocked executing some code, it was possible to still input new statememts and excuting them, all leading to weird, and portentially dangerous interaction. TODO: Current implementation may have issues processing input accumulated while REPL was blocked.
* esp8266: Fix issue when current repl line was garbage-collected.Paul Sokolovsky2016-03-30
| | | | Reference it from root pointers section.
* lib/utils: Add pyexec_frozen_module to load and execute frozen module.Damien George2015-12-26
| | | | | | This is a convenience function similar to pyexec_file. It should be used instead of raw mp_parse_compile_execute because the latter does not catch and report exceptions.
* lib/pyexec: Move header pyexec.h from stmhal directory.Damien George2015-11-09
|
* lib/pyexec: For paste mode use "Ctrl" as the name of the key, not "CTRL".Damien George2015-11-03
|
* stmhal: pyexec.c is common module, move to lib/utils/ .Paul Sokolovsky2015-10-31