summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcell.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-04 15:53:11 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-04 15:53:11 +0100
commit2801e6fad8b8b3ecdd9c8bc58f9515ff66eca46c (patch)
treef49a2102931919c96bcde3f1bfa16b0ec8b2e27d /py/objcell.c
parent7f59b4b2ca28179c72aa12f35fe59cb14017b5b0 (diff)
downloadmicropython-2801e6fad8b8b3ecdd9c8bc58f9515ff66eca46c.tar.gz
micropython-2801e6fad8b8b3ecdd9c8bc58f9515ff66eca46c.zip
py: Some trivial cosmetic changes, for code style consistency.
Diffstat (limited to 'py/objcell.c')
-rw-r--r--py/objcell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objcell.c b/py/objcell.c
index 9e43d7fb27..9adbc16aea 100644
--- a/py/objcell.c
+++ b/py/objcell.c
@@ -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;
}