diff options
author | ian-v <ianv888@gmail.com> | 2014-01-06 13:51:53 -0800 |
---|---|---|
committer | ian-v <ianv888@gmail.com> | 2014-01-06 13:51:53 -0800 |
commit | 5fd8fd2c16076f683b629b513e8865e461d4c9a8 (patch) | |
tree | 9f10aab33ca9b4325cbe84c41b1e4d614d202021 /unix/main.c | |
parent | 7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (diff) | |
download | micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.tar.gz micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.zip |
Revert MP_BOOL, etc. and use <stdbool.h> instead
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/main.c b/unix/main.c index e3873489d1..a06dc36791 100644 --- a/unix/main.c +++ b/unix/main.c @@ -79,13 +79,13 @@ static void do_repl(void) { } } - mp_lexer_t *lex = mp_lexer_new_from_str_len("<stdin>", line, strlen(line), MP_FALSE); + mp_lexer_t *lex = mp_lexer_new_from_str_len("<stdin>", line, strlen(line), false); mp_parse_node_t pn = mp_parse(lex, MP_PARSE_SINGLE_INPUT); mp_lexer_free(lex); if (pn != MP_PARSE_NODE_NULL) { //mp_parse_node_show(pn, 0); - mp_obj_t module_fun = mp_compile(pn, MP_TRUE); + mp_obj_t module_fun = mp_compile(pn, true); if (module_fun != mp_const_none) { nlr_buf_t nlr; if (nlr_push(&nlr) == 0) { @@ -139,7 +139,7 @@ void do_file(const char *file) { //printf("----------------\n"); //parse_node_show(pn, 0); //printf("----------------\n"); - mp_obj_t module_fun = mp_compile(pn, MP_FALSE); + mp_obj_t module_fun = mp_compile(pn, false); //printf("----------------\n"); #if MICROPY_EMIT_CPYTHON @@ -166,7 +166,7 @@ void do_file(const char *file) { typedef struct _test_obj_t { mp_obj_base_t base; - MP_BOOL value; + bool value; } test_obj_t; static void test_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) { |