summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexer.c
diff options
context:
space:
mode:
authorEmmanuel Blot <emmanuel.blot@free.fr>2014-06-19 18:54:34 +0200
committerEmmanuel Blot <emmanuel.blot@free.fr>2014-06-19 18:54:34 +0200
commitf6932d650620d3753b5a18df5131227276260f74 (patch)
tree977c539a77da4fa73d547414b78c266e511cfc46 /py/lexer.c
parentbf3366a48bca2808ae04ac49e5f5737481d28b57 (diff)
downloadmicropython-f6932d650620d3753b5a18df5131227276260f74.tar.gz
micropython-f6932d650620d3753b5a18df5131227276260f74.zip
Prefix ARRAY_SIZE with micropython prefix MP_
Diffstat (limited to 'py/lexer.c')
-rw-r--r--py/lexer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/lexer.c b/py/lexer.c
index a65df54ba6..f69c395e7e 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -694,10 +694,10 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, mp_token_t *tok, bool firs
// need to check for this special token in many places in the compiler.
// TODO improve speed of these string comparisons
//for (int i = 0; tok_kw[i] != NULL; i++) {
- for (int i = 0; i < ARRAY_SIZE(tok_kw); i++) {
+ for (int i = 0; i < MP_ARRAY_SIZE(tok_kw); i++) {
if (str_strn_equal(tok_kw[i], tok->str, tok->len)) {
- if (i == ARRAY_SIZE(tok_kw) - 1) {
- // tok_kw[ARRAY_SIZE(tok_kw) - 1] == "__debug__"
+ if (i == MP_ARRAY_SIZE(tok_kw) - 1) {
+ // tok_kw[MP_ARRAY_SIZE(tok_kw) - 1] == "__debug__"
tok->kind = (mp_optimise_value == 0 ? MP_TOKEN_KW_TRUE : MP_TOKEN_KW_FALSE);
} else {
tok->kind = MP_TOKEN_KW_FALSE + i;