From 5d323defe4dab940494002e80c69cfb36d204a49 Mon Sep 17 00:00:00 2001 From: nhtshot Date: Mon, 23 Feb 2015 15:05:32 -0600 Subject: [PATCH] py: Update parse.c&mpconfig.h to reflect rename of mp_lexer_show_token. This function is only used when DEBUG_PRINTERS and USE_RULE_NAME are enabled. --- py/mpconfig.h | 2 +- py/parse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py/mpconfig.h b/py/mpconfig.h index bde8dfb9ef..ed42fbccc1 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -178,7 +178,7 @@ #endif // Whether to build functions that print debugging info: -// mp_token_show +// mp_lexer_show_token // mp_bytecode_print // mp_parse_node_print #ifndef MICROPY_DEBUG_PRINTERS diff --git a/py/parse.c b/py/parse.c index 6223968f5d..3f704317e2 100644 --- a/py/parse.c +++ b/py/parse.c @@ -782,7 +782,7 @@ syntax_error: // debugging: print the rule name that failed and the token printf("rule: %s\n", rule->rule_name); #if MICROPY_DEBUG_PRINTERS - mp_token_show(lex); + mp_lexer_show_token(lex); #endif #endif }