diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-21 20:32:59 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-21 20:32:59 +0100 |
commit | 58ebde46646dd49d22b2accfa9c7a78e15921e48 (patch) | |
tree | bdb130a761309e138cd9d3ff60f4639c897a8808 /py/scope.c | |
parent | aa7cf6f72f4e8a553f892629bb3338ab8c982d57 (diff) |
Tidy up some configuration options.
MP_ALLOC_* -> MICROPY_ALLOC_*
MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
MICROPY_EXTRA_* -> MICROPY_PORT_*
See issue #35.
Diffstat (limited to 'py/scope.c')
-rw-r--r-- | py/scope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/scope.c b/py/scope.c index ab29af78a..839e8216c 100644 --- a/py/scope.c +++ b/py/scope.c @@ -71,7 +71,7 @@ scope_t *scope_new(scope_kind_t kind, mp_parse_node_t pn, qstr source_file, uint } scope->raw_code = mp_emit_glue_new_raw_code(); scope->emit_options = emit_options; - scope->id_info_alloc = MP_ALLOC_SCOPE_ID_INIT; + scope->id_info_alloc = MICROPY_ALLOC_SCOPE_ID_INIT; scope->id_info = m_new(id_info_t, scope->id_info_alloc); return scope; @@ -92,8 +92,8 @@ id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added) { // make sure we have enough memory if (scope->id_info_len >= scope->id_info_alloc) { - scope->id_info = m_renew(id_info_t, scope->id_info, scope->id_info_alloc, scope->id_info_alloc + MP_ALLOC_SCOPE_ID_INC); - scope->id_info_alloc += MP_ALLOC_SCOPE_ID_INC; + scope->id_info = m_renew(id_info_t, scope->id_info, scope->id_info_alloc, scope->id_info_alloc + MICROPY_ALLOC_SCOPE_ID_INC); + scope->id_info_alloc += MICROPY_ALLOC_SCOPE_ID_INC; } // add new id to end of array of all ids; this seems to match CPython |