From acdb0608b7622cc7af0bdbfc89b2696583c948ae Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 11 Sep 2020 23:00:03 +1000 Subject: py/parse: Pass in an mp_print_t to mp_parse_node_print. So the output can be redirected if needed. Signed-off-by: Damien George --- ports/unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/unix') diff --git a/ports/unix/main.c b/ports/unix/main.c index c38b7b0c2..0fe492a55 100644 --- a/ports/unix/main.c +++ b/ports/unix/main.c @@ -133,7 +133,7 @@ STATIC int execute_from_lexer(int source_kind, const void *source, mp_parse_inpu // allow to print the parse tree in the coverage build if (mp_verbose_flag >= 3) { printf("----------------\n"); - mp_parse_node_print(parse_tree.root, 0); + mp_parse_node_print(&mp_plat_print, parse_tree.root, 0); printf("----------------\n"); } #endif -- cgit v1.2.3