diff options
| author | Damien George | 2014-10-12 20:23:47 +0100 |
|---|---|---|
| committer | Damien George | 2014-10-12 20:23:47 +0100 |
| commit | 0107e90328334fab9a85c1c72c905eed64afee4f (patch) | |
| tree | 42c69d95688bc866aeb551ecb2d60e2182293bc4 /stmhal/modos.c | |
| parent | c14a81662c1df812c0c6b4299f97966302f16477 (diff) | |
stmhal: Enable module weak links.
os, time, select modules are now prefixed with u, but are still
available (via weak links) as their original names.
ure and ujson now available as re and json via weak links.
Diffstat (limited to 'stmhal/modos.c')
| -rw-r--r-- | stmhal/modos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/modos.c b/stmhal/modos.c index 6a2100698..95446cdb0 100644 --- a/stmhal/modos.c +++ b/stmhal/modos.c @@ -330,7 +330,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(os_urandom_obj, os_urandom); #endif STATIC const mp_map_elem_t os_module_globals_table[] = { - { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_os) }, + { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_uos) }, { MP_OBJ_NEW_QSTR(MP_QSTR_chdir), (mp_obj_t)&os_chdir_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_getcwd), (mp_obj_t)&os_getcwd_obj }, @@ -362,8 +362,8 @@ STATIC const mp_obj_dict_t os_module_globals = { }, }; -const mp_obj_module_t os_module = { +const mp_obj_module_t mp_module_uos = { .base = { &mp_type_module }, - .name = MP_QSTR_os, + .name = MP_QSTR_uos, .globals = (mp_obj_dict_t*)&os_module_globals, }; |
