summaryrefslogtreecommitdiffstatshomepage
path: root/py/vm.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 13:51:53 -0800
committerian-v <ianv888@gmail.com>2014-01-06 13:51:53 -0800
commit5fd8fd2c16076f683b629b513e8865e461d4c9a8 (patch)
tree9f10aab33ca9b4325cbe84c41b1e4d614d202021 /py/vm.c
parent7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (diff)
downloadmicropython-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/vm.c b/py/vm.c
index 02f3add75b..8e7ef7485b 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -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;
}
}