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/objdict.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/objdict.c')
-rw-r--r-- | py/objdict.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objdict.c b/py/objdict.c index 3f1b2087f..15e738dff 100644 --- a/py/objdict.c +++ b/py/objdict.c @@ -113,7 +113,7 @@ mp_obj_t dict_it_iternext(mp_obj_t self_in) { STATIC const mp_obj_type_t dict_it_type = { { &mp_const_type }, - "dict_iterator", + .name = MP_QSTR_iterator, .iternext = dict_it_iternext, }; @@ -342,7 +342,7 @@ STATIC mp_obj_t dict_view_it_iternext(mp_obj_t self_in) { STATIC const mp_obj_type_t dict_view_it_type = { { &mp_const_type }, - "dict_view_iterator", + .name = MP_QSTR_iterator, .iternext = dict_view_it_iternext, .methods = NULL, /* set operations still to come */ }; @@ -386,7 +386,7 @@ STATIC mp_obj_t dict_view_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { STATIC const mp_obj_type_t dict_view_type = { { &mp_const_type }, - "dict_view", + .name = MP_QSTR_dict_view, .print = dict_view_print, .binary_op = dict_view_binary_op, .getiter = dict_view_getiter, @@ -441,7 +441,7 @@ STATIC const mp_method_t dict_type_methods[] = { const mp_obj_type_t dict_type = { { &mp_const_type }, - "dict", + .name = MP_QSTR_dict, .print = dict_print, .make_new = dict_make_new, .unary_op = dict_unary_op, |