From 1fb031744f5584d1bd0c88d28fbe7e261832c7a8 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 3 Jan 2014 14:22:03 +0000 Subject: Change mp_compile so that it returns a function object for the module. --- unix-cpy/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unix-cpy/main.c') 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"); } } -- cgit v1.2.3