diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-24 12:23:37 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-24 12:23:37 +0000 |
commit | f704e7f20e34debbe33c776beaf3ca1bf830aa4f (patch) | |
tree | e4683a47f0d400bc00b0a5bf3bae74328b248380 /stmhal/pyexec.h | |
parent | 2f8beb8d88ff98025b87e4a1aac350096d5ed6ac (diff) |
stmhal: Improve REPL CTRL commands.
Diffstat (limited to 'stmhal/pyexec.h')
-rw-r--r-- | stmhal/pyexec.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/stmhal/pyexec.h b/stmhal/pyexec.h index cad15af6f..d191a2fc4 100644 --- a/stmhal/pyexec.h +++ b/stmhal/pyexec.h @@ -1,5 +1,12 @@ -void pyexec_raw_repl(void); -void pyexec_repl(void); +typedef enum { + PYEXEC_MODE_RAW_REPL, + PYEXEC_MODE_FRIENDLY_REPL, +} pyexec_mode_kind_t; + +extern pyexec_mode_kind_t pyexec_mode_kind; + +int pyexec_raw_repl(void); +int pyexec_friendly_repl(void); bool pyexec_file(const char *filename); MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj); |