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 /py/vm.c | |
parent | 7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (diff) | |
download | micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.tar.gz micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.zip |
Revert MP_BOOL, etc. and use <stdbool.h> instead
Diffstat (limited to 'py/vm.c')
-rw-r--r-- | py/vm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -65,7 +65,7 @@ mp_obj_t mp_execute_byte_code(const byte *code, const mp_obj_t *args, uint n_arg // fastn has items in normal order // sp points to top of stack which grows down -MP_BOOL mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **sp_in_out) { +bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **sp_in_out) { // careful: be sure to declare volatile any variables read in the exception handler (written is ok, I think) const byte *ip = *ip_in_out; @@ -472,7 +472,7 @@ MP_BOOL mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t nlr_pop(); *sp_in_out = sp; assert(exc_sp == &exc_stack[0] - 1); - return MP_FALSE; + return false; case MP_BC_YIELD_VALUE: nlr_pop(); @@ -481,7 +481,7 @@ MP_BOOL mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t fastn[1] = fast1; fastn[2] = fast2; *sp_in_out = sp; - return MP_TRUE; + return true; case MP_BC_IMPORT_NAME: DECODE_QSTR; @@ -499,7 +499,7 @@ MP_BOOL mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t printf("code %p, byte code 0x%02x not implemented\n", ip, op); assert(0); nlr_pop(); - return MP_FALSE; + return false; } } |