summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/main.c
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-03 22:55:16 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-03 22:55:16 +0000
commit97334c85d0b53ef1648eb76ec6e9e2b1efab1f97 (patch)
treed10f6b6b7ca3394e6f7dc31ca55e0df2b39abe02 /unix-cpy/main.c
parent25f417c08c2cdb5c4a7564d1e69766c0448d7984 (diff)
parentb7aa72710ee6798c6d2bc2632be24206e526fc1e (diff)
downloadmicropython-97334c85d0b53ef1648eb76ec6e9e2b1efab1f97.tar.gz
micropython-97334c85d0b53ef1648eb76ec6e9e2b1efab1f97.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'unix-cpy/main.c')
-rw-r--r--unix-cpy/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix-cpy/main.c b/unix-cpy/main.c
index 2b59df4f37..eba97f527b 100644
--- a/unix-cpy/main.c
+++ b/unix-cpy/main.c
@@ -8,8 +8,8 @@
#include "lexer.h"
#include "lexerunix.h"
#include "parse.h"
-#include "compile.h"
#include "obj.h"
+#include "compile.h"
#include "runtime0.h"
#include "runtime.h"
@@ -37,10 +37,10 @@ void do_file(const char *file) {
//printf("----------------\n");
//parse_node_show(pn, 0);
//printf("----------------\n");
- bool comp_ok = mp_compile(pn, false);
+ mp_obj_t module_fun = mp_compile(pn, false);
//printf("----------------\n");
- if (!comp_ok) {
+ if (module_fun == mp_const_none) {
printf("compile error\n");
}
}