Factor and simplify Makefile's and mpconfig.

This commit is contained in:
Damien George
2014-01-07 14:54:15 +00:00
parent 880ce2d7fa
commit 136f67523b
11 changed files with 278 additions and 259 deletions

View File

@@ -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