aboutsummaryrefslogtreecommitdiff
path: root/py/repl.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-07 14:54:15 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-07 14:54:15 +0000
commit136f67523b10d24dd65cb25e49e07a7e4e5341a1 (patch)
tree95a8e704f85c3813735d287afccc74a6df172f29 /py/repl.c
parent880ce2d7fabc127b4bca7b6f2ea8b82d0977045f (diff)
Factor and simplify Makefile's and mpconfig.
Diffstat (limited to 'py/repl.c')
-rw-r--r--py/repl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/repl.c b/py/repl.c
index 4241ef0e4..473313c1e 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -1,6 +1,9 @@
#include "misc.h"
+#include "mpconfig.h"
#include "repl.h"
+#if MICROPY_ENABLE_REPL_HELPERS
+
bool str_startswith_word(const char *str, const char *head) {
int i;
for (i = 0; str[i] && head[i]; i++) {
@@ -42,3 +45,5 @@ bool mp_repl_is_compound_stmt(const char *line) {
}
return n_paren > 0 || n_brack > 0 || n_brace > 0;
}
+
+#endif // MICROPY_ENABLE_REPL_HELPERS