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/objgenerator.c | |
parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) | |
download | micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.tar.gz micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.zip |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'py/objgenerator.c')
-rw-r--r-- | py/objgenerator.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objgenerator.c b/py/objgenerator.c index 7b4c320f75..f440923ee6 100644 --- a/py/objgenerator.c +++ b/py/objgenerator.c @@ -193,10 +193,10 @@ STATIC mp_obj_t gen_instance_close(mp_obj_t self_in) { STATIC MP_DEFINE_CONST_FUN_OBJ_1(gen_instance_close_obj, gen_instance_close); STATIC const mp_method_t gen_type_methods[] = { - { "close", &gen_instance_close_obj }, - { "send", &gen_instance_send_obj }, - { "throw", &gen_instance_throw_obj }, - { NULL, NULL }, // end-of-list sentinel + { MP_QSTR_close, &gen_instance_close_obj }, + { MP_QSTR_send, &gen_instance_send_obj }, + { MP_QSTR_throw, &gen_instance_throw_obj }, + { MP_QSTR_NULL, NULL }, // end-of-list sentinel }; const mp_obj_type_t gen_instance_type = { |