diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-26 20:15:40 +0000 |
commit | c12b2213c16ba8839981c362c4d5f133a84b374b (patch) | |
tree | 59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /py/objlist.c | |
parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'py/objlist.c')
-rw-r--r-- | py/objlist.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/py/objlist.c b/py/objlist.c index 3083e23bb..afc4f3cf8 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -329,18 +329,18 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(list_reverse_obj, list_reverse); STATIC MP_DEFINE_CONST_FUN_OBJ_KW(list_sort_obj, 0, mp_obj_list_sort); STATIC const mp_method_t list_type_methods[] = { - { "append", &list_append_obj }, - { "clear", &list_clear_obj }, - { "copy", &list_copy_obj }, - { "count", &list_count_obj }, - { "extend", &list_extend_obj }, - { "index", &list_index_obj }, - { "insert", &list_insert_obj }, - { "pop", &list_pop_obj }, - { "remove", &list_remove_obj }, - { "reverse", &list_reverse_obj }, - { "sort", &list_sort_obj }, - { NULL, NULL }, // end-of-list sentinel + { MP_QSTR_append, &list_append_obj }, + { MP_QSTR_clear, &list_clear_obj }, + { MP_QSTR_copy, &list_copy_obj }, + { MP_QSTR_count, &list_count_obj }, + { MP_QSTR_extend, &list_extend_obj }, + { MP_QSTR_index, &list_index_obj }, + { MP_QSTR_insert, &list_insert_obj }, + { MP_QSTR_pop, &list_pop_obj }, + { MP_QSTR_remove, &list_remove_obj }, + { MP_QSTR_reverse, &list_reverse_obj }, + { MP_QSTR_sort, &list_sort_obj }, + { MP_QSTR_NULL, NULL }, // end-of-list sentinel }; const mp_obj_type_t list_type = { |