diff options
| author | Emmanuel Blot | 2014-06-19 18:54:34 +0200 |
|---|---|---|
| committer | Emmanuel Blot | 2014-06-19 18:54:34 +0200 |
| commit | f6932d650620d3753b5a18df5131227276260f74 (patch) | |
| tree | 977c539a77da4fa73d547414b78c266e511cfc46 /py/emitinlinethumb.c | |
| parent | bf3366a48bca2808ae04ac49e5f5737481d28b57 (diff) | |
Prefix ARRAY_SIZE with micropython prefix MP_
Diffstat (limited to 'py/emitinlinethumb.c')
| -rw-r--r-- | py/emitinlinethumb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitinlinethumb.c b/py/emitinlinethumb.c index 79ed1c4a0..8acee6c3e 100644 --- a/py/emitinlinethumb.c +++ b/py/emitinlinethumb.c @@ -167,7 +167,7 @@ STATIC uint get_arg_reg(emit_inline_asm_t *emit, const char *op, mp_parse_node_t if (MP_PARSE_NODE_IS_ID(pn)) { qstr reg_qstr = MP_PARSE_NODE_LEAF_ARG(pn); const char *reg_str = qstr_str(reg_qstr); - for (uint i = 0; i < ARRAY_SIZE(reg_name_table); i++) { + for (uint i = 0; i < MP_ARRAY_SIZE(reg_name_table); i++) { const reg_name_t *r = ®_name_table[i]; if (reg_str[0] == r->name[0] && reg_str[1] == r->name[1] && reg_str[2] == r->name[2] && (reg_str[2] == '\0' || reg_str[3] == '\0')) { if (r->reg > max_reg) { @@ -286,7 +286,7 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, int n_args, m asm_thumb_b_n(emit->as, label_num); } else if (op_str[0] == 'b' && op_len == 3) { uint cc = -1; - for (uint i = 0; i < ARRAY_SIZE(cc_name_table); i++) { + for (uint i = 0; i < MP_ARRAY_SIZE(cc_name_table); i++) { if (op_str[1] == cc_name_table[i].name[0] && op_str[2] == cc_name_table[i].name[1]) { cc = cc_name_table[i].cc; } |
