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 /unix/main.c | |
parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/main.c b/unix/main.c index eecec301b..e8452fd8c 100644 --- a/unix/main.c +++ b/unix/main.c @@ -192,9 +192,9 @@ static MP_DEFINE_CONST_FUN_OBJ_1(test_get_obj, test_get); static MP_DEFINE_CONST_FUN_OBJ_2(test_set_obj, test_set); static const mp_method_t test_methods[] = { - { "get", &test_get_obj }, - { "set", &test_set_obj }, - { NULL, NULL }, + { MP_QSTR_get, &test_get_obj }, + { MP_QSTR_set, &test_set_obj }, + { MP_QSTR_NULL, NULL }, }; static const mp_obj_type_t test_type = { |