From f704e7f20e34debbe33c776beaf3ca1bf830aa4f Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 24 Mar 2014 12:23:37 +0000 Subject: stmhal: Improve REPL CTRL commands. --- stmhal/pyexec.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'stmhal/pyexec.h') 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); -- cgit v1.2.3