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.
This commit is contained in:
nhtshot 2015-02-23 15:05:32 -06:00 committed by Damien George
parent 71ebd4b7f0
commit 5d323defe4
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@
#endif #endif
// Whether to build functions that print debugging info: // Whether to build functions that print debugging info:
// mp_token_show // mp_lexer_show_token
// mp_bytecode_print // mp_bytecode_print
// mp_parse_node_print // mp_parse_node_print
#ifndef MICROPY_DEBUG_PRINTERS #ifndef MICROPY_DEBUG_PRINTERS

View File

@ -782,7 +782,7 @@ syntax_error:
// debugging: print the rule name that failed and the token // debugging: print the rule name that failed and the token
printf("rule: %s\n", rule->rule_name); printf("rule: %s\n", rule->rule_name);
#if MICROPY_DEBUG_PRINTERS #if MICROPY_DEBUG_PRINTERS
mp_token_show(lex); mp_lexer_show_token(lex);
#endif #endif
#endif #endif
} }