Paul Sokolovsky
777232c9a5
esp8266: Disallow recursive calls to REPL.
...
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.
2016-04-01 12:53:50 +03:00
Paul Sokolovsky
2e75a17bab
esp8266: Fix issue when current repl line was garbage-collected.
...
Reference it from root pointers section.
2016-03-30 18:13:03 +03:00
Damien George
84b245f187
lib/utils: Add pyexec_frozen_module to load and execute frozen module.
...
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.
2015-12-26 12:32:33 +00:00
Paul Sokolovsky
f2ed736b29
lib/utils/printf: Add vsnprintf alias for Clang.
...
Was reported to break MacOSX build.
2015-12-12 20:19:42 +02:00
Paul Sokolovsky
1f0aaece3a
lib/utils/printf: Apply workaround for static linking with uclibc.
...
uclibc objects call __GI_vsnprintf().
2015-12-10 14:42:01 +02:00
Damien George
4e7107a572
py: Change mp_print_strn_t func type to use size_t for the str length.
2015-11-29 14:25:04 +00:00
Paul Sokolovsky
4892e4c5fc
lib/utils/printf: Use more conservative check for MICROPY_DEBUG_STDERR.
2015-11-23 22:38:48 +02:00
Paul Sokolovsky
1818da2ef3
lib/utils/printf: Fix issue with putchar define for some ports.
2015-11-22 02:46:32 +02:00
Paul Sokolovsky
8ee43e24f3
lib/utils/printf: Add extra prototypes.
2015-11-22 00:59:24 +02:00
Paul Sokolovsky
c3280d83e7
unix: Use printf() implementation in terms of mp_printf().
...
In other words, unix port now uses overriden printf(), instead of using
libc's. This should remove almost all dependency on libc stdio (which
is bloated).
2015-11-22 00:44:41 +02:00
Paul Sokolovsky
295ea12411
py/emitglue: Host definition of mp_verbose_flag.
...
This may not seem like the ideal place, but is actually the only place
in py/ where it gets referenced, so is just right.
2015-11-21 16:54:15 +02:00
Paul Sokolovsky
73ff0687f2
lib/utils/printf: Move from stmhal/ .
...
This file contains various MicroPython-specific helper functions, so isn't
good fit for lib/libc/.
2015-11-10 18:58:58 +02:00
Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
2015-11-09 13:13:09 +00:00
Damien George
dde0c204e7
lib/pyexec: For paste mode use "Ctrl" as the name of the key, not "CTRL".
2015-11-03 00:33:56 +00:00
Paul Sokolovsky
0ec51441de
stmhal: pyexec.c is common module, move to lib/utils/ .
2015-10-31 19:35:10 +03:00