diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-15 11:34:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-15 11:34:50 +0000 |
commit | a71c83a1d1aeca1d81d7c673929f8e836dec131e (patch) | |
tree | 5c49441e19c3feffbc792eec7ecfbc3ca3036830 /py/objlist.c | |
parent | 8ac72b9d000ecc48a2d558bdb7c73c7f98d4be62 (diff) |
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type
structure is only used for printing error messages (to tell the type of
the bad argument), and printing objects that don't supply a .print method.
Diffstat (limited to 'py/objlist.c')
-rw-r--r-- | py/objlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objlist.c b/py/objlist.c index 5516a08f8..844f9cc81 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -347,7 +347,7 @@ STATIC const mp_method_t list_type_methods[] = { const mp_obj_type_t list_type = { { &mp_const_type }, - "list", + .name = MP_QSTR_list, .print = list_print, .make_new = list_make_new, .unary_op = list_unary_op, @@ -409,7 +409,7 @@ mp_obj_t list_it_iternext(mp_obj_t self_in) { STATIC const mp_obj_type_t list_it_type = { { &mp_const_type }, - "list_iterator", + .name = MP_QSTR_iterator, .iternext = list_it_iternext, }; |