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 /stmhal/file.c | |
| parent | 69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff) | |
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stmhal/file.c')
| -rw-r--r-- | stmhal/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/file.c b/stmhal/file.c index 83bb6013f..210d26803 100644 --- a/stmhal/file.c +++ b/stmhal/file.c @@ -52,10 +52,10 @@ static MP_DEFINE_CONST_FUN_OBJ_1(file_obj_close_obj, file_obj_close); // TODO gc hook to close the file if not already closed static const mp_method_t file_methods[] = { - { "read", &file_obj_read_obj }, - { "write", &file_obj_write_obj }, - { "close", &file_obj_close_obj }, - {NULL, NULL}, + { MP_QSTR_read, &file_obj_read_obj }, + { MP_QSTR_write, &file_obj_write_obj }, + { MP_QSTR_close, &file_obj_close_obj }, + { MP_QSTR_NULL, NULL }, }; static const mp_obj_type_t file_obj_type = { |
