commit | 136f67523b10d24dd65cb25e49e07a7e4e5341a1 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Tue Jan 07 14:54:15 2014 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Tue Jan 07 14:54:15 2014 +0000 |
tree | 95a8e704f85c3813735d287afccc74a6df172f29 | |
parent | 880ce2d7fabc127b4bca7b6f2ea8b82d0977045f [diff] [blame] |
Factor and simplify Makefile's and mpconfig.
diff --git a/py/repl.c b/py/repl.c index 4241ef0..473313c 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 @@ } return n_paren > 0 || n_brack > 0 || n_brace > 0; } + +#endif // MICROPY_ENABLE_REPL_HELPERS