summaryrefslogtreecommitdiffstatshomepage
path: root/py/parse.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-27 13:38:15 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-29 14:25:04 +0000
commitcbf7674025814797f5c537d6d1c195efe58ccaaf (patch)
tree7c1e5d7956d3766dad4c194ab00024e2a954bcf9 /py/parse.c
parent94fe6e523d42ecc342c1f6a9734ed2edf232ddbd (diff)
downloadmicropython-cbf7674025814797f5c537d6d1c195efe58ccaaf.tar.gz
micropython-cbf7674025814797f5c537d6d1c195efe58ccaaf.zip
py: Add MP_ROM_* macros and mp_rom_* types and use them.
Diffstat (limited to 'py/parse.c')
-rw-r--r--py/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/parse.c b/py/parse.c
index c1947f76bb..61c98b9037 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -417,9 +417,9 @@ STATIC void push_result_token(parser_t *parser) {
}
#if MICROPY_COMP_MODULE_CONST
-STATIC const mp_map_elem_t mp_constants_table[] = {
+STATIC const mp_rom_map_elem_t mp_constants_table[] = {
#if MICROPY_PY_UCTYPES
- { MP_OBJ_NEW_QSTR(MP_QSTR_uctypes), (mp_obj_t)&mp_module_uctypes },
+ { MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
#endif
// Extra constants as defined by a port
MICROPY_PORT_CONSTANTS