py: Some trivial cosmetic changes, for code style consistency.

This commit is contained in:
Damien George
2015-04-04 15:53:11 +01:00
parent 7f59b4b2ca
commit 2801e6fad8
9 changed files with 19 additions and 19 deletions

View File

@@ -55,7 +55,7 @@ STATIC void cell_print(void (*print)(void *env, const char *fmt, ...), void *env
}
#endif
const mp_obj_type_t cell_type = {
STATIC const mp_obj_type_t mp_type_cell = {
{ &mp_type_type },
.name = MP_QSTR_, // cell representation is just value in < >
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
@@ -65,7 +65,7 @@ const mp_obj_type_t cell_type = {
mp_obj_t mp_obj_new_cell(mp_obj_t obj) {
mp_obj_cell_t *o = m_new_obj(mp_obj_cell_t);
o->base.type = &cell_type;
o->base.type = &mp_type_cell;
o->obj = obj;
return o;
}