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/compile.c | |
parent | aa7cf6f72f4e8a553f892629bb3338ab8c982d57 (diff) | |
download | micropython-58ebde46646dd49d22b2accfa9c7a78e15921e48.tar.gz micropython-58ebde46646dd49d22b2accfa9c7a78e15921e48.zip |
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/compile.c')
-rw-r--r-- | py/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/compile.c b/py/compile.c index cdd3a5b030..0c43d939e1 100644 --- a/py/compile.c +++ b/py/compile.c @@ -104,7 +104,7 @@ STATIC void compile_syntax_error(compiler_t *comp, mp_parse_node_t pn, const cha STATIC const mp_map_elem_t mp_constants_table[] = { // Extra constants as defined by a port - MICROPY_EXTRA_CONSTANTS + MICROPY_PORT_CONSTANTS }; STATIC const mp_map_t mp_constants_map = { @@ -119,7 +119,7 @@ STATIC const mp_map_t mp_constants_map = { STATIC mp_parse_node_t fold_constants(compiler_t *comp, mp_parse_node_t pn, mp_map_t *consts) { if (0) { // dummy -#if MICROPY_ENABLE_CONST +#if MICROPY_COMP_CONST } else if (MP_PARSE_NODE_IS_ID(pn)) { // lookup identifier in table of dynamic constants qstr qst = MP_PARSE_NODE_LEAF_ARG(pn); @@ -133,7 +133,7 @@ STATIC mp_parse_node_t fold_constants(compiler_t *comp, mp_parse_node_t pn, mp_m // fold some parse nodes before folding their arguments switch (MP_PARSE_NODE_STRUCT_KIND(pns)) { -#if MICROPY_ENABLE_CONST +#if MICROPY_COMP_CONST case PN_expr_stmt: if (!MP_PARSE_NODE_IS_NULL(pns->nodes[1])) { mp_parse_node_struct_t *pns1 = (mp_parse_node_struct_t*)pns->nodes[1]; |