aboutsummaryrefslogtreecommitdiff
path: root/py/objslice.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-29 13:15:08 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-29 13:15:08 +0000
commit07ddab529cb0953c473d30795e4dc3c6dfff0d89 (patch)
treeba3cba6f7b35f7a3098d044b77a9d6cd61c2ec3a /py/objslice.c
parentda51a399cf628699546f77f320ef0388a268b49f (diff)
py: Change mp_const_* objects to macros.
Addresses issue #388.
Diffstat (limited to 'py/objslice.c')
-rw-r--r--py/objslice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/objslice.c b/py/objslice.c
index 46cce264a..0c28d07ed 100644
--- a/py/objslice.c
+++ b/py/objslice.c
@@ -19,14 +19,13 @@ void ellipsis_print(void (*print)(void *env, const char *fmt, ...), void *env, m
print(env, "Ellipsis");
}
-const mp_obj_type_t ellipsis_type = {
+const mp_obj_type_t mp_type_ellipsis = {
{ &mp_type_type },
.name = MP_QSTR_Ellipsis,
.print = ellipsis_print,
};
-STATIC const mp_obj_ellipsis_t ellipsis_obj = {{&ellipsis_type}};
-const mp_obj_t mp_const_ellipsis = (mp_obj_t)&ellipsis_obj;
+const mp_obj_ellipsis_t mp_const_ellipsis_obj = {{&mp_type_ellipsis}};
/******************************************************************************/
/* slice object */