Revert MP_BOOL, etc. and use <stdbool.h> instead

This commit is contained in:
ian-v
2014-01-06 13:51:53 -08:00
parent 7a16fadbf8
commit 5fd8fd2c16
61 changed files with 517 additions and 529 deletions

View File

@@ -10,7 +10,7 @@
typedef struct _mp_obj_bool_t {
mp_obj_base_t base;
MP_BOOL value;
bool value;
} mp_obj_bool_t;
static void bool_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
@@ -44,8 +44,8 @@ const mp_obj_type_t bool_type = {
.methods = NULL,
};
static const mp_obj_bool_t false_obj = {{&bool_type}, MP_FALSE};
static const mp_obj_bool_t true_obj = {{&bool_type}, MP_TRUE};
static const mp_obj_bool_t false_obj = {{&bool_type}, false};
static const mp_obj_bool_t true_obj = {{&bool_type}, true};
const mp_obj_t mp_const_false = (mp_obj_t)&false_obj;
const mp_obj_t mp_const_true = (mp_obj_t)&true_obj;