diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-01 12:53:50 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-01 12:53:50 +0300 |
commit | 777232c9a5ce15ca7c7b0b3c52dd2a3b00bb1acc (patch) | |
tree | d5330f4b8cdddc93d27b65a7d67dc0d500913c05 /lib/utils/pyexec.h | |
parent | 3d4a5352086894414a291dac14fbfd6166cfae3e (diff) |
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.
Diffstat (limited to 'lib/utils/pyexec.h')
-rw-r--r-- | lib/utils/pyexec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/pyexec.h b/lib/utils/pyexec.h index cf44530c5..e0f62440e 100644 --- a/lib/utils/pyexec.h +++ b/lib/utils/pyexec.h @@ -42,6 +42,7 @@ int pyexec_file(const char *filename); int pyexec_frozen_module(const char *name); void pyexec_event_repl_init(void); int pyexec_event_repl_process_char(int c); +extern uint8_t pyexec_repl_active; MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj); |