summaryrefslogtreecommitdiff
path: root/py/parse.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-09-11 23:00:03 +1000
committerDamien George <damien@micropython.org>2020-09-11 23:00:03 +1000
commitacdb0608b7622cc7af0bdbfc89b2696583c948ae (patch)
treee487dcb46302ca2386ad569e58f08368338bb156 /py/parse.h
parent85f2b239d8ff8d29155c63799717e3f88b2f33f3 (diff)
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 <damien@micropython.org>
Diffstat (limited to 'py/parse.h')
-rw-r--r--py/parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parse.h b/py/parse.h
index 4ed8a7ad1..a6eb38004 100644
--- a/py/parse.h
+++ b/py/parse.h
@@ -86,7 +86,7 @@ bool mp_parse_node_is_const_false(mp_parse_node_t pn);
bool mp_parse_node_is_const_true(mp_parse_node_t pn);
bool mp_parse_node_get_int_maybe(mp_parse_node_t pn, mp_obj_t *o);
size_t mp_parse_node_extract_list(mp_parse_node_t *pn, size_t pn_kind, mp_parse_node_t **nodes);
-void mp_parse_node_print(mp_parse_node_t pn, size_t indent);
+void mp_parse_node_print(const mp_print_t *print, mp_parse_node_t pn, size_t indent);
typedef enum {
MP_PARSE_SINGLE_INPUT,